aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/caf/templates
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2020-08-14 15:27:56 +0100
committerMatthew Lemon <matt@matthewlemon.com>2020-08-14 15:27:56 +0100
commit74ed83a719a8f34c3e989b84c96f6759ea2f182c (patch)
treefe0e246569c1ebe372fa8111c381a8e501767db0 /ctrack/caf/templates
parentbf9b0e6669d4c62e0db59004e5ecd2ff281eff4e (diff)
list of other systems on form to add system for org
Diffstat (limited to 'ctrack/caf/templates')
-rw-r--r--ctrack/caf/templates/caf/applicable_system_create_from_org.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/ctrack/caf/templates/caf/applicable_system_create_from_org.html b/ctrack/caf/templates/caf/applicable_system_create_from_org.html
index 8a94155..e4d3efa 100644
--- a/ctrack/caf/templates/caf/applicable_system_create_from_org.html
+++ b/ctrack/caf/templates/caf/applicable_system_create_from_org.html
@@ -32,9 +32,13 @@
<div class="card-body">
<h5 class="card-title">Other systems managed by <strong>{{ organisation.name }}:</strong></h5>
<ul class="list-group list-group-flush">
- <li class="list-group-item">baws</li>
- <li class="list-group-item">baws</li>
- <li class="list-group-item">baws</li>
+ {% if organisation.applicable_systems %}
+ {% for s in organisation.applicable_systems %}
+ <li class="list-group-item"><a href="{% url "caf:ass_detail" s.pk %}">{{ s.name }}</a></li>
+ {% endfor %}
+ {% else %}
+ <p>Doesn't have any systems</p>
+ {% endif %}
</ul>
</div>
</div>