]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/osqaadmin/edit_page.html
Migrate to Django 1.6
[osqa.git] / forum / skins / default / templates / osqaadmin / edit_page.html
index 269cec874ffb2de174b1401ad69e0caa14ef225f..76ee1a7861e0d931cfb86ac06296a137c81d2ab1 100644 (file)
@@ -1,10 +1,10 @@
 {% extends basetemplate %}
 
-{% load i18n %}
+{% load i18n extra_filters %}
 
 {% block subtitle %}{% trans "Editing page" %}{% endblock %}
 {% block pagename %}
-    <a href="{% url admin_static_pages %}">{% trans "Static Pages" %}</a> &gt;
+    <a href="{% url "admin_static_pages" %}">{% trans "Static Pages" %}</a> &gt;
     {% if page %}{% trans "Editing page" %}{% else %}{% trans "Creating page" %}{% endif %}
 {% endblock %}
 {% block description %}
 
 {% block admincontent %}
     <form action="" method="post" accept-charset="utf-8">
+        {% csrf_token %}
         <table style="width: 100%">
         {{ form.as_table }}
         <tr>
             <th></th>
             <td>
-                <input id="submit" name="submit" type="submit" value="{% trans "Save" %}" />
+                {% if page %}
+                    <input id="submit" name="submit" type="submit" value="{% trans "Edit" %}" />
+                {% else %}
+                    <input id="submit" name="submit" type="submit" value="{% trans "Save" %}" />
+                {% endif %}
                 {% if published %}
                     <input id="unpublish" name="unpublish" type="submit" value="{% trans "Unpublish" %}" />
                 {% else %}