summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMartin Green <martin.speleo@gmail.com>2011-08-08 10:58:50 +0100
committerMartin Green <martin.speleo@gmail.com>2011-08-08 10:58:50 +0100
commite85c386375898845a87885d1bad7e2c38c8f23b5 (patch)
tree2fd770081ea7592062c7f4a4668a9f13bd6c3520 /templates
parentc66ecc4d7fd4436a34700f7c1d4a2d879e8aabc0 (diff)
downloadtroggle-e85c386375898845a87885d1bad7e2c38c8f23b5.tar.gz
troggle-e85c386375898845a87885d1bad7e2c38c8f23b5.tar.bz2
troggle-e85c386375898845a87885d1bad7e2c38c8f23b5.zip
=Make a common base for expoweb pages. Ignore any header information in expoweb except titles.
Diffstat (limited to 'templates')
-rw-r--r--templates/dataformat/flatfile.html2
-rw-r--r--templates/editflatpage.html8
-rw-r--r--templates/expobase.html13
-rw-r--r--templates/flatpage.html15
4 files changed, 23 insertions, 15 deletions
diff --git a/templates/dataformat/flatfile.html b/templates/dataformat/flatfile.html
index 048606e..07d03ca 100644
--- a/templates/dataformat/flatfile.html
+++ b/templates/dataformat/flatfile.html
@@ -1,9 +1,7 @@
{% autoescape off %}
<html>
<head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>{{ form.title }}</title>
-<link rel="stylesheet" type="text/css" href="css/main2.css" />
</head>
<body>
{{ form.html }}
diff --git a/templates/editflatpage.html b/templates/editflatpage.html
index 67290a7..547b94d 100644
--- a/templates/editflatpage.html
+++ b/templates/editflatpage.html
@@ -1,12 +1,14 @@
-{% extends "base.html" %}
+{% extends "expobase.html" %}
{% block title %}Edit {{ path }}{% endblock %}
-{% block head %}
+{% block extrahead %}
{% load csrffaker %}
<script src="{{ settings.TINY_MCE_MEDIA_URL }}tiny_mce.js" type="text/javascript"></script>
{% endblock %}
-{% block content %}
+{% block body %}
+<h1>Edit {{ path }}</h1>
<form action="" method="post">{% csrf_token %}
{{form.as_p}}
<p><input type="submit" value="Submit" /></p>
+{% include "menu.html" %}
</form>
{% endblock %}
diff --git a/templates/expobase.html b/templates/expobase.html
new file mode 100644
index 0000000..0ef74c1
--- /dev/null
+++ b/templates/expobase.html
@@ -0,0 +1,13 @@
+{% autoescape off %}
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<title>{% block title %}{% endblock %}</title>
+<link rel="stylesheet" type="text/css" href="css/main2.css" />
+{% block extrahead %}{% endblock %}
+</head>
+<body {% block bodyattrs %}{% endblock %}>
+{% block body %}{% endblock %}
+</body>
+</html>
+{% endautoescape %}
diff --git a/templates/flatpage.html b/templates/flatpage.html
index fddc69a..47863e3 100644
--- a/templates/flatpage.html
+++ b/templates/flatpage.html
@@ -1,12 +1,7 @@
-<html>
-<head>
-{{ head|safe }}
-</head>
-<body{% if homepage %} id="homepage"{% endif %}>
+{% extends "expobase.html" %}
+{% block title %}{{ title }}{% endblock %}
+{% block bodyattrs %}{% if homepage %} id="homepage"{% endif %}{% endblock %}
+{% block body %}
{{ body|safe }}
-
{% if homepage %}{% if editable %}<a href="{% url editflatpage path %}">Edit</a>{% endif %}{%else %}{% include "menu.html" %}{% endif %}
-
-
-</body>
-</html>
+{% endblock %}