aboutsummaryrefslogtreecommitdiffstats
path: root/servo/templates/orders/toolbar.html
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2021-05-30 10:34:01 +0300
committerFilipp Lepalaan <filipp@mac.com>2021-05-30 10:34:01 +0300
commit9dcc51f2211385239b0272bdbf2466637c874f35 (patch)
tree8ac9104abcfa817dc1092e5f338b8c90b4b8aaff /servo/templates/orders/toolbar.html
parent467f9fef717cbdc217aae63fef6481150e8e34a7 (diff)
downloadServo-9dcc51f2211385239b0272bdbf2466637c874f35.tar.gz
Servo-9dcc51f2211385239b0272bdbf2466637c874f35.tar.bz2
Servo-9dcc51f2211385239b0272bdbf2466637c874f35.zip
Check-in fixes and improvements
Diffstat (limited to 'servo/templates/orders/toolbar.html')
-rwxr-xr-xservo/templates/orders/toolbar.html5
1 files changed, 4 insertions, 1 deletions
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>