]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/osqaadmin/set.html
Adds custom header and footer, and a preview mechanism.
[osqa.git] / forum / skins / default / templates / osqaadmin / set.html
index 2a3b26facfd7e01167b49912134537b2b6c0ea6c..c909f9bb6b463c81566b8b6bc55e5d7a315fd081 100644 (file)
@@ -1,19 +1,26 @@
-{% extends "osqaadmin/base.html" %}\r
+{% extends basetemplate %}\r
 \r
 {% load i18n %}\r
 {% load extra_tags %}\r
 \r
 {% block subtitle %}{{ form.set.title }}{% endblock %}\r
+{% block pagename %}{{ form.set.title }}{% endblock %}\r
 {% block description %}{{ form.set.description }}{% endblock %}\r
 \r
 {% block admincontent %}\r
-    <form action="" method="POST" enctype="multipart/form-data">\r
-        <table id="admin_form">\r
+    <form action="" method="POST" enctype="multipart/form-data" accept-charset="utf-8">\r
+        <table id="admin_form" style="width: 100%">\r
             {{ form.as_table }}\r
             <tr>\r
                 <th></th>\r
                 <td>\r
-                    <input id="submit" name="submit" type="submit" value="Save" />\r
+                    <input id="submit" name="submit" type="submit" value="{% trans "Save" %}" onclick="this.form.target=''; return true;" />\r
+                    {% if form.set.can_preview %}\r
+                        <input id="preview" name="preview" type="submit" value="{% trans "Preview" %}" onclick="this.form.target='_blank'; return true;" />\r
+                        {% if form.set.name in unsaved %}\r
+                            <input id="reset" name="reset" type="submit" value="{% trans "Reset Changes" %}" onclick="this.form.target=''; return true;" />\r
+                        {% endif %}\r
+                    {% endif %}\r
                 </td>\r
             </tr>\r
         </table>\r