diff options
Diffstat (limited to 'servo/templates/orders/dispatch.html')
-rwxr-xr-x | servo/templates/orders/dispatch.html | 5 |
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); }); |