]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/osqaadmin/static_pages.html
Merge pull request #26 from udacity/remove_dj_version
[osqa.git] / forum / skins / default / templates / osqaadmin / static_pages.html
1 {% extends basetemplate %}
2
3 {% load i18n %}
4
5 {% block subtitle %}{% trans "Static pages" %}{% endblock %}
6 {% block pagename %}{% trans "Static pages" %}{% endblock %}
7 {% block description %}{% trans "Allows you to create a set of static pages" %}{% endblock %}
8
9 {% block admincontent %}
10     <h1>{% trans "Select page to edit" %}</h1>
11     <ul class="object-tools">
12         <li><a class="addlink" href="{% url "admin_new_page" %}">{% trans "New page" %}</a></li>
13     </ul>
14     <div class="module">
15         <table style="width: 100%">
16             <caption>{% trans "Pages" %}</caption>
17             <tbody>
18                 {% for page in pages %}
19                     <tr>
20                         <th scope="row"><a href="{% url "admin_edit_page" id=page.id %}">{{ page.headline }}</a></th>
21                         <td style="width: 125px;"><a class="changelink" href="{% url "admin_edit_page" id=page.id %}">{% trans "Edit" %}</a></td>
22                         <td style="width: 125px;">
23                             <a onclick="return confirm('{% trans "Are you sure you want to delete this page?" %}');" class="deletelink" href="{% url "admin_delete_page" id=page.id %}">
24                                 {% trans "Delete" %}
25                             </a>
26                         </td>
27                     </tr>
28                 {% endfor %}
29             </tbody>
30         </table>
31     </div>
32
33 {% endblock %}