Only show Location-Selector if locations > 1

This commit is contained in:
Robert Einsle 2017-02-17 18:30:28 +01:00
parent 97489af723
commit e16169c4ed
2 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,3 @@
body {
padding-top: 55px;
padding-top: 60px;
}

View File

@ -8,6 +8,7 @@
{% block title %}Location Data{% endblock %}
{% block content %}
{% if not locations|length_is:"1" %}
<form action="." method="post" id="location-form">
{% csrf_token %}
<div id="location-selector" class="alert">
@ -18,6 +19,7 @@
</select>
</div>
</form>
{% endif %}
{% if clients %}
{% for cli in clients %}
{% for i in range %} {{ cli|display_client:i }} {% endfor %}