]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/osqaadmin/set.html
Adds the hability to hard delete nodes in the bulk manager, and renames the tool.
[osqa.git] / forum / skins / default / templates / osqaadmin / set.html
index 04e20d857c6c6ec92f4349f96327e6cad3ac762c..5cc427d366fd6ca7141a18487d3eabef12e32520 100644 (file)
@@ -1,7 +1,6 @@
 {% extends basetemplate %}\r
 \r
 {% extends basetemplate %}\r
 \r
-{% load i18n %}\r
-{% load extra_tags %}\r
+{% load i18n extra_tags extra_filters %}\r
 \r
 {% block subtitle %}{{ form.set.title }}{% endblock %}\r
 {% block pagename %}{{ form.set.title }}{% endblock %}\r
 \r
 {% block subtitle %}{{ form.set.title }}{% endblock %}\r
 {% block pagename %}{{ form.set.title }}{% endblock %}\r
             <tr>\r
                 <th></th>\r
                 <td>\r
             <tr>\r
                 <th></th>\r
                 <td>\r
-                    <input id="submit" name="submit" type="submit" value="Save" />\r
+                    <input id="submit" name="submit" type="submit" value="{% trans "Save" %}" onclick="this.form.target=''; return true;" />\r
+                    {% if form.set.can_preview %}\r
+                        <input id="preview" name="preview" type="submit" value="{% trans "Preview" %}" onclick="this.form.target='_blank'; return true;" />\r
+                        {% if form.set.name|contained_in:unsaved %}\r
+                            <input id="reset" name="reset" type="submit" value="{% trans "Reset Changes" %}" onclick="this.form.target=''; return true;" />\r
+                        {% endif %}\r
+                    {% endif %}\r
                 </td>\r
             </tr>\r
         </table>\r
                 </td>\r
             </tr>\r
         </table>\r