aboutsummaryrefslogtreecommitdiffstats
path: root/servo/templates/orders
diff options
context:
space:
mode:
Diffstat (limited to 'servo/templates/orders')
-rwxr-xr-xservo/templates/orders/close.html1
-rwxr-xr-xservo/templates/orders/toolbar.html5
2 files changed, 5 insertions, 1 deletions
diff --git a/servo/templates/orders/close.html b/servo/templates/orders/close.html
index b80f862..a53db5e 100755
--- a/servo/templates/orders/close.html
+++ b/servo/templates/orders/close.html
@@ -12,6 +12,7 @@
{% block footer %}
<form action="{{ action }}" method="post" accept-charset="utf-8">
{% csrf_token %}
+ <button class="btn btn-default" data-dismiss="modal">{% trans "Cancel" %}</button>
<button class="btn btn-primary" type="submit">{% trans "Close" %}</button>
</form>
{% endblock footer %}
diff --git a/servo/templates/orders/toolbar.html b/servo/templates/orders/toolbar.html
index 286d93e..56fe851 100755
--- a/servo/templates/orders/toolbar.html
+++ b/servo/templates/orders/toolbar.html
@@ -26,6 +26,9 @@
{% if order.invoice_set.count %}
<li><a href="{% url 'orders-print_order' order.pk 'receipt' %}" class="window">{% trans "Receipt" %}</a></li>
<li><a href="{% url 'orders-print_order' order.pk 'dispatch' %}" class="window">{% trans "Dispatch" context "noun" %}</a></li>
+ {% else %}
+ <li class="disabled"><a href="#" title="{% trans 'Cannot print a receipt without an invoice' %}">{% trans "Receipt" %}</a></li>
+ <li class="disabled"><a href="#" title="{% trans 'Cannot print a dispatch without an invoice' %}">{% trans "Dispatch" context "noun" %}</a></li>
{% endif %}
</ul>
</div>
@@ -61,7 +64,7 @@
{% if order.can_dispatch %}
<a class="btn" href="{% url 'orders-dispatch' order.pk %}">{% trans "Dispatch" %}</a>
{% else %}
- <a class="btn disabled" href="#">{% trans "Dispatch" %}</a>
+ <a class="btn disabled" href="#" title="{%trans 'No parts or services for dispatch' %}">{% trans "Dispatch" %}</a>
{% endif %}
{% if perms.servo.change_order and order.can_close %}
<a class="btn" href="{% url 'orders-close' order.pk %}" data-modal="#modal"><i class="icon-lock"></i> {% trans "Close" %}</a>