]> git.0d.be Git - django-panik-matos.git/blobdiff - matos/templates/matos/piece_form.html
remove unnecessary "back to" links, and add cancel buttons
[django-panik-matos.git] / matos / templates / matos / piece_form.html
index c19ce845b8694971b568c65dc60a7ed88a79a70f..67c5e43d54da6e7021c47a474bc1f88a6fc6c642 100644 (file)
@@ -7,7 +7,6 @@
     <span class="actions"><a href="{% url 'piece-view' pk=object.id %}">{% trans 'Back to Piece' %}</a></span>
   {% else %}
     <h2>{% trans 'New Piece' %}</h2>
-    <span class="actions"><a href="{% url 'pieces-list' %}">{% trans 'Back to inventory' %}</a></span>
   {% endif %}
 {% endblock %}
 
       {{ form.as_p }}
     </div>
     {% block buttons %}
-      <button>{% trans 'Save' %}</button>
+      <div class="buttons">
+        <button>{% trans 'Save' %}</button>
+        <a class="cancel" href="{% if object %}.{% else %}..{% endif %}">{% trans "Cancel" %}</a>
+      </div>
     {% endblock %}
   </form>
 {% endblock %}