]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/osqaadmin/edit_page.html
Merged pt_BR locale from https://github.com/OSQA/osqa/commit/676fdbc347f8f5e91a66b215...
[osqa.git] / forum / skins / default / templates / osqaadmin / edit_page.html
index 269cec874ffb2de174b1401ad69e0caa14ef225f..ea7c0a98369ffc85bee30a45c145ebc9d7263974 100644 (file)
@@ -1,6 +1,6 @@
 {% extends basetemplate %}
 
-{% load i18n %}
+{% load i18n extra_filters %}
 
 {% block subtitle %}{% trans "Editing page" %}{% endblock %}
 {% block pagename %}
 
 {% 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 %}