]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/osqaadmin/set.html
OSQA-263
[osqa.git] / forum / skins / default / templates / osqaadmin / set.html
1 {% extends basetemplate %}\r
2 \r
3 {% load i18n extra_tags extra_filters %}\r
4 \r
5 {% block subtitle %}{{ form.set.title }}{% endblock %}\r
6 {% block pagename %}{{ form.set.title }}{% endblock %}\r
7 {% block description %}{{ form.set.description }}{% endblock %}\r
8 \r
9 {% block admincontent %}\r
10     <form action="" method="POST" enctype="multipart/form-data" accept-charset="utf-8">\r
11         <table id="admin_form" style="width: 100%">\r
12             {{ form.as_table }}\r
13             <tr>\r
14                 <th></th>\r
15                 <td>\r
16                     <input id="submit" name="submit" type="submit" value="{% trans "Save" %}" onclick="this.form.target=''; return true;" />\r
17                     {% if form.set.can_preview %}\r
18                         <input id="preview" name="preview" type="submit" value="{% trans "Preview" %}" onclick="this.form.target='_blank'; return true;" />\r
19                         {% if form.set.name|contained_in:unsaved %}\r
20                             <input id="reset" name="reset" type="submit" value="{% trans "Reset Changes" %}" onclick="this.form.target=''; return true;" />\r
21                         {% endif %}\r
22                     {% endif %}\r
23                 </td>\r
24             </tr>\r
25         </table>\r
26     </form>\r
27 {% endblock %}