]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/osqaadmin/set.html
Some fixes in custom pages logic.
[osqa.git] / forum / skins / default / templates / osqaadmin / set.html
index 04e20d857c6c6ec92f4349f96327e6cad3ac762c..2377e84682445c51f1b66a2c9f5b75ed42275a2b 100644 (file)
             <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