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 { body {
padding-top: 55px; padding-top: 60px;
} }

View File

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