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