]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/osqaadmin/edit_page.html
Makes tips on the ask a question page editable in the admin.
[osqa.git] / forum / skins / default / templates / osqaadmin / edit_page.html
1 {% extends basetemplate %}
2
3 {% load i18n extra_filters %}
4
5 {% block subtitle %}{% trans "Editing page" %}{% endblock %}
6 {% block pagename %}
7     <a href="{% url admin_static_pages %}">{% trans "Static Pages" %}</a> &gt;
8     {% if page %}{% trans "Editing page" %}{% else %}{% trans "Creating page" %}{% endif %}
9 {% endblock %}
10 {% block description %}
11     {% if page %}{{ page.title }}{% else %}{% trans "New page" %}{% endif %}
12     ({% if published %}{% trans "Published" %}{% else %}{% trans "Unpublished" %}{% endif %})    
13 {% endblock %}
14
15 {% block admincontent %}
16     <form action="" method="post" accept-charset="utf-8">
17         <table style="width: 100%">
18         {{ form.as_table }}
19         <tr>
20             <th></th>
21             <td>
22                 {% if page %}
23                     <input id="submit" name="submit" type="submit" value="{% trans "Edit" %}" />
24                 {% else %}
25                     <input id="submit" name="submit" type="submit" value="{% trans "Save" %}" />
26                 {% endif %}
27                 {% if published %}
28                     <input id="unpublish" name="unpublish" type="submit" value="{% trans "Unpublish" %}" />
29                 {% else %}
30                     <input id="publish" name="publish" type="submit" value="{% trans "Publish" %}" />
31                 {% endif %}
32             </td>
33         </tr>
34         </table>
35     </form>
36 {% endblock %}