diff options
Diffstat (limited to 'ctrack/caf')
-rw-r--r-- | ctrack/caf/templates/caf/applicable_system_create_from_org.html | 10 |
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> |