]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/osqaadmin/set.html
OSQA-711, change the markdown tips, _italic_ should stand for italic text rather...
[osqa.git] / forum / skins / default / templates / osqaadmin / set.html
index 04e20d857c6c6ec92f4349f96327e6cad3ac762c..3128d79565acc87da7649332f291d1402a669f70 100644 (file)
@@ -1,7 +1,6 @@
 {% extends basetemplate %}\r
 \r
-{% load i18n %}\r
-{% load extra_tags %}\r
+{% load i18n extra_tags extra_filters %}\r
 \r
 {% block subtitle %}{{ form.set.title }}{% endblock %}\r
 {% block pagename %}{{ form.set.title }}{% endblock %}\r
@@ -9,12 +8,19 @@
 \r
 {% block admincontent %}\r
     <form action="" method="POST" enctype="multipart/form-data" accept-charset="utf-8">\r
+        {% csrf_token %}\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|contained_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