Only show Location-Selector if locations > 1
This commit is contained in:
		@@ -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 %}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user