Changed the edit template to show a Submit button instead of Save Changes when "creating" an entity.
authorLennard de Rijk <ljvderijk@gmail.com>
Fri, 13 Mar 2009 13:26:03 +0000
changeset 1828 3db2a7be7239
parent 1827 c03995a6a88e
child 1829 c9f30de8804f
Changed the edit template to show a Submit button instead of Save Changes when "creating" an entity. This is because Save Changes confuses people, it has the tendency to imply a partial save. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/templates/soc/models/edit.html
--- a/app/soc/templates/soc/models/edit.html	Fri Mar 13 03:11:42 2009 +0000
+++ b/app/soc/templates/soc/models/edit.html	Fri Mar 13 13:26:03 2009 +0000
@@ -47,9 +47,15 @@
   <tr>
     {% block submit_buttons %}
     {% block save_button %}
+    {% if entity %}
    <td> 
     <input style="font-weight: bold" type="submit" value="Save Changes"/></span>
    </td>
+    {% else %}
+       <td> 
+    <input style="font-weight: bold" type="submit" value="Submit"/></span>
+   </td>
+   {% endif %}
    {% endblock %}
    <td>
    {% if edit_cancel_redirect %}