]> err.no Git - peojumk/commitdiff
Add UI for marking invoices as paid
authorTollef Fog Heen <tfheen@err.no>
Wed, 1 Aug 2012 18:38:37 +0000 (20:38 +0200)
committerTollef Fog Heen <tfheen@err.no>
Wed, 1 Aug 2012 18:38:37 +0000 (20:38 +0200)
templates/invoice/invoice_detail.html

index 146b82a96247a15c182bbe7c4c05d188f8daecef..40d2d21d1b2bdcc9212fd4b3bd1b9e9a34c66d9b 100644 (file)
@@ -7,5 +7,11 @@
 {% include "invoice/invoice_inner_detail.html" with rowclass="row-fluid" %}
 
 <a class="btn" href="{% url invoice:invoice_print_view invoice.id %}">Print</a>
-
+{% if nextstate %}
+<form class="form-inline" action="{% url invoice:invoice_update invoice.id %}" method="post">
+{% csrf_token %}
+<input type="hidden" name="status" value="{{ nextstate }}">
+<input type="submit" class="btn btn-primary" value="Mark as {{nextstate_str}}">
+</form>
+{% endif %}
 {% endblock %}