aboutsummaryrefslogtreecommitdiffstats
path: root/servo/templates
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2021-05-24 17:03:06 +0300
committerFilipp Lepalaan <filipp@mac.com>2021-05-24 17:03:06 +0300
commit467f9fef717cbdc217aae63fef6481150e8e34a7 (patch)
treee738ef41beb2a4a441188a2cb5a202c8df25fa77 /servo/templates
parentd2394e47e6baed4f878103477862d1bcc27b816a (diff)
downloadServo-467f9fef717cbdc217aae63fef6481150e8e34a7.tar.gz
Servo-467f9fef717cbdc217aae63fef6481150e8e34a7.tar.bz2
Servo-467f9fef717cbdc217aae63fef6481150e8e34a7.zip
Checkin fixes
Diffstat (limited to 'servo/templates')
-rw-r--r--servo/templates/checkin/newindex.html2
-rwxr-xr-xservo/templates/default.html4
2 files changed, 6 insertions, 0 deletions
diff --git a/servo/templates/checkin/newindex.html b/servo/templates/checkin/newindex.html
index 96c8042..f1fc035 100644
--- a/servo/templates/checkin/newindex.html
+++ b/servo/templates/checkin/newindex.html
@@ -99,6 +99,7 @@
{% bootstrap_field device_form.condition %}
</div>
<div class="col-md-6">
+ {% if questions %}
{% bootstrap_field device_form.pop %}
<table class="table">
<thead>
@@ -121,6 +122,7 @@
{% endfor %}
</tbody>
</table>
+ {% endif %}
{% bootstrap_field customer_form.checkin_location %}
{% bootstrap_field customer_form.checkout_location %}
{% if request.user.is_authenticated %}
diff --git a/servo/templates/default.html b/servo/templates/default.html
index de363f4..15de430 100755
--- a/servo/templates/default.html
+++ b/servo/templates/default.html
@@ -72,7 +72,11 @@
<li><a href="{% url 'admin-settings' %}"><i class="icon-cog"></i> {% trans "System Settings" %}</a></li>
{% endif %}
<li class="divider"></li>
+ {% if show_checkin %}
<li><a href="{% url 'checkin-index' %}"><i class="icon-check"></i> {% trans "Go to check-in" %}</a></li>
+ {% else %}
+ <li class="disabled"><a href="#"><i class="icon-check"></i> {% trans "Go to check-in" %}</a></li>
+ {% endif %}
<li><a href="{% url 'accounts-logout' %}" data-modal="#modal"><i class="icon-off"></i> {% trans "Log out" %}...</a></li>
</ul>
{% endwith %}