aboutsummaryrefslogtreecommitdiffstats
path: root/servo/templates
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-10-08 10:49:01 +0300
committerFilipp Lepalaan <filipp@mac.com>2015-10-08 10:49:01 +0300
commitba1315d8a611f1b891cfd6610fbd053077357cb7 (patch)
tree23988641efd2fefaf9af4cbe3b2f26a143bc6558 /servo/templates
parent2a7251afa0438b1472c66932a4c22d378ae15c28 (diff)
downloadServo-ba1315d8a611f1b891cfd6610fbd053077357cb7.tar.gz
Servo-ba1315d8a611f1b891cfd6610fbd053077357cb7.tar.bz2
Servo-ba1315d8a611f1b891cfd6610fbd053077357cb7.zip
Add Dispatch & Close
Diffstat (limited to 'servo/templates')
-rwxr-xr-xservo/templates/orders/dispatch.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/servo/templates/orders/dispatch.html b/servo/templates/orders/dispatch.html
index 41126c7..8802dca 100755
--- a/servo/templates/orders/dispatch.html
+++ b/servo/templates/orders/dispatch.html
@@ -12,6 +12,7 @@
</div>
<form method="post" action="" accept-charset="utf8">
{% csrf_token %}
+ {{ form.close }}
{{ formset.management_form }}
<div class="row-fluid">
<div class="span3">
@@ -92,6 +93,7 @@
<div class="form-actions">
<div class="pull-right">
<a class="btn btn-default" href="{{ order.get_absolute_url }}">{% trans "Cancel" %}</a>
+ <button type="submit" class="btn btn-default" id="btn_dispatch_close">{% trans "Dispatch and Close" %}</button>
<button type="submit" class="btn btn-primary">{% trans "Dispatch" %}</button>
</div>
</div>
@@ -108,6 +110,9 @@
{% block media %}
<script type="text/javascript">
+ $('#btn_dispatch_close').click(function(){
+ $('#id_invoice-close').val('True');
+ })
$('.clonerow').click(function() {
cloneMore('.formrow:last', 'payment', true);
});