Only show Location-Selector if locations > 1
This commit is contained in:
parent
97489af723
commit
e16169c4ed
@ -1,3 +1,3 @@
|
|||||||
body {
|
body {
|
||||||
padding-top: 55px;
|
padding-top: 60px;
|
||||||
}
|
}
|
||||||
|
@ -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 %}
|
||||||
|
Loading…
Reference in New Issue
Block a user