aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMR Lemon <matt@matthewlemon>2020-04-25 16:49:27 +0100
committerMR Lemon <matt@matthewlemon>2020-04-25 16:49:27 +0100
commit7f9a5657a523f520af1193c10b27aa244741df43 (patch)
tree0e09dcb038095193cae88908261ff32ead471edc
parentdeaa85227e47dd70301f88caca87edb0ad3f8adf (diff)
nicer organisation list
-rw-r--r--ctrack/organisations/templates/organisations/organisation_list.html73
1 files changed, 37 insertions, 36 deletions
diff --git a/ctrack/organisations/templates/organisations/organisation_list.html b/ctrack/organisations/templates/organisations/organisation_list.html
index 67c62b8..55f0915 100644
--- a/ctrack/organisations/templates/organisations/organisation_list.html
+++ b/ctrack/organisations/templates/organisations/organisation_list.html
@@ -1,42 +1,43 @@
{% extends "base.html" %}
{% block content %}
- <div class="container">
-
- <div class="row">
- <h2>Organisations</h2>
- </div>
-
- <div class="row">
- <div class="col-sm-12">
- <table class="table table-sm">
- <thead>
- <tr>
- <th>Organisation</th>
- <th>Sub-mode</th>
- <th>Lead Inspector</th>
- <th>Point of Contact</th>
- </tr>
- </thead>
- {% for org in organisation_list %}
- <tr>
- <td><a href="{% url "organisations:detail" org.slug %}">{{ org.name }}</a></td>
- <td>{{ org.submode }}</td>
- <td>LEAD INSPECTOR</td>
- <td>
- {% if org.primary_contacts %}
- <ul style="list-style-type:none; float:left; padding: 0">
- {% for p in org.primary_contacts %}
- <li>{{ p }} | {{ p.mobile }}</li>
- {% endfor %}
- </ul>
- {% else %}
- No contact listed
- {% endif %}
- </td>
- </tr>
- {% endfor %}
- </table>
+ <div class="container mt-3">
+ <div class="row">
+ <div class="col-md-12 pl-0 my-2">
+ <h4>Organisations | <small><a href="{% url "organisations:create" %}">Create new...</a></small></h4>
+ <div class="row">
+ <div class="col-md-12 border bg-light my-2">
+ <table class="table table-sm">
+ <thead>
+ <tr>
+ <th>Organisation</th>
+ <th>Sub-mode</th>
+ <th>Lead Inspector</th>
+ <th>Point of Contact</th>
+ </tr>
+ </thead>
+ {% for org in organisation_list %}
+ <tr>
+ <td><a href="{% url "organisations:detail" org.slug %}">{{ org.name }}</a></td>
+ <td>{{ org.submode }}</td>
+ <td>LEAD INSPECTOR</td>
+ <td>
+ {% if org.primary_contacts %}
+ <ul style="list-style-type:none; float:left; padding: 0">
+ {% for p in org.primary_contacts %}
+ <li>{{ p }} | {{ p.mobile }}</li>
+ {% endfor %}
+ </ul>
+ {% else %}
+ No contact listed
+ {% endif %}
+ </td>
+ </tr>
+ {% endfor %}
+ </table>
+ </div>
+ </div>
+ </div>
</div>
</div>