From 3418ece690ca90d676a7d8ae654da7770ae312fb Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Thu, 17 Jun 2021 20:49:00 +0300 Subject: Add print options for tech name --- servo/templates/admin/settings.html | 1 + servo/templates/checkin/newindex.html | 4 ++-- servo/templates/orders/print_confirmation.html | 2 +- servo/templates/orders/print_receipt.html | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) (limited to 'servo/templates') diff --git a/servo/templates/admin/settings.html b/servo/templates/admin/settings.html index 35007d4..fd9452f 100644 --- a/servo/templates/admin/settings.html +++ b/servo/templates/admin/settings.html @@ -105,6 +105,7 @@ {% include "form_field_snippet.html" with field=form.checkin_group %} {% include "form_field_snippet.html" with field=form.checkin_queue %} {% include "form_field_snippet.html" with field=form.checkin_checklist %} + {% include "form_field_snippet.html" with field=form.checkin_tech_name %} {% include "form_field_snippet.html" with field=form.checkin_password %} {% include "form_field_snippet.html" with field=form.checkin_require_password %} {% include "form_field_snippet.html" with field=form.checkin_require_condition %} diff --git a/servo/templates/checkin/newindex.html b/servo/templates/checkin/newindex.html index 55a52fa..e2782e9 100644 --- a/servo/templates/checkin/newindex.html +++ b/servo/templates/checkin/newindex.html @@ -123,8 +123,8 @@ {% endif %} - {% bootstrap_field customer_form.checkin_location %} - {% bootstrap_field customer_form.checkout_location %} + {% bootstrap_field customer_form.checkin_location %} + {% bootstrap_field customer_form.checkout_location %} {% if request.user.is_authenticated %} {% bootstrap_field device_form.queue %} {% endif %} diff --git a/servo/templates/orders/print_confirmation.html b/servo/templates/orders/print_confirmation.html index da8fd33..8dd8bc4 100755 --- a/servo/templates/orders/print_confirmation.html +++ b/servo/templates/orders/print_confirmation.html @@ -191,7 +191,7 @@ - + diff --git a/servo/templates/orders/print_receipt.html b/servo/templates/orders/print_receipt.html index c4de827..0839b44 100755 --- a/servo/templates/orders/print_receipt.html +++ b/servo/templates/orders/print_receipt.html @@ -39,7 +39,7 @@

{% trans "Date of invoice" %}: {{ invoice.created_at|date:"SHORT_DATE_FORMAT" }}
{% trans "Payment method" %}: {{ invoice.get_payment_methods|join:", " }}
- {% trans "Sales Person" %}: {{ invoice.created_by.get_full_name }}
+ {% trans "Sales Person" %}: {{ invoice.created_by.get_print_name }}

{% endblock customer_pickup %} -- cgit v1.2.3
{{ order.created_by.get_full_name }}{{ order.created_by.get_print_name }}   {% now "SHORT_DATE_FORMAT" %}