From 9dcc51f2211385239b0272bdbf2466637c874f35 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Sun, 30 May 2021 10:34:01 +0300 Subject: Check-in fixes and improvements --- servo/templates/accounts/login.html | 2 +- servo/templates/checkin/newindex.html | 8 ++++---- servo/templates/default.html | 10 ++-------- servo/templates/orders/close.html | 1 + servo/templates/orders/toolbar.html | 5 ++++- 5 files changed, 12 insertions(+), 14 deletions(-) (limited to 'servo/templates') diff --git a/servo/templates/accounts/login.html b/servo/templates/accounts/login.html index e77c753..80daf06 100755 --- a/servo/templates/accounts/login.html +++ b/servo/templates/accounts/login.html @@ -13,7 +13,7 @@ {{ form.password }} -
+

{% if show_checkin %} {% trans "Check-in" %} diff --git a/servo/templates/checkin/newindex.html b/servo/templates/checkin/newindex.html index f1fc035..55a52fa 100644 --- a/servo/templates/checkin/newindex.html +++ b/servo/templates/checkin/newindex.html @@ -6,7 +6,7 @@ {% block main %} {% comment %} @@ -66,15 +66,15 @@ {% include "checkin/device_form.html" %}
{% include "checkin/customer_form.html" %}
- {% if request.user.is_authenticated %} + {% if request.user.is_authenticated and tags %}
diff --git a/servo/templates/default.html b/servo/templates/default.html index 15de430..d770655 100755 --- a/servo/templates/default.html +++ b/servo/templates/default.html @@ -64,19 +64,13 @@ {% with request.user as user %} {% endwith %} 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 %}
{% csrf_token %} +
{% 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 %}
  • {% trans "Receipt" %}
  • {% trans "Dispatch" context "noun" %}
  • + {% else %} +
  • {% trans "Receipt" %}
  • +
  • {% trans "Dispatch" context "noun" %}
  • {% endif %}
    @@ -61,7 +64,7 @@ {% if order.can_dispatch %} {% trans "Dispatch" %} {% else %} - {% trans "Dispatch" %} + {% trans "Dispatch" %} {% endif %} {% if perms.servo.change_order and order.can_close %} {% trans "Close" %} -- cgit v1.2.3