aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/caf
diff options
context:
space:
mode:
authorMR Lemon <matt@matthewlemon>2020-04-25 16:55:29 +0100
committerMR Lemon <matt@matthewlemon>2020-04-25 16:55:29 +0100
commitc877b91ddbe63c51ba92984f6f95850da9ae75c8 (patch)
treea240badc5305fad70872e410a82c15ddddbbb32b /ctrack/caf
parent7f9a5657a523f520af1193c10b27aa244741df43 (diff)
better caf list
Diffstat (limited to 'ctrack/caf')
-rw-r--r--ctrack/caf/templates/caf/caf_list.html63
1 files changed, 33 insertions, 30 deletions
diff --git a/ctrack/caf/templates/caf/caf_list.html b/ctrack/caf/templates/caf/caf_list.html
index a5e4bbc..493fb29 100644
--- a/ctrack/caf/templates/caf/caf_list.html
+++ b/ctrack/caf/templates/caf/caf_list.html
@@ -5,37 +5,40 @@
{% block title %} CAF - All CAF Summary {% endblock %}
{% block content %}
- <div class="container">
+ <div class="container mt-3">
<div class="row">
- <h2>CAF List</h2>
- </div>
- <div class="row">
- <div class="col-sm-12">
- <table id="datatable" class="display compact cell-border" style="width:100%">
- <thead>
- <tr>
- <th>Organisation</th>
- <th>Link</th>
- <th>Sub Mode</th>
- <th>Applicable Systems</th>
- </tr>
- </thead>
- {% for caf in object_list %}
- <tr>
- <td><a href="{% url "organisations:detail" slug=caf.organisation.slug %}">{{ caf.organisation }}</a></td>
- <td><a href="{% url 'caf:detail' pk=caf.pk %}">{{ caf.version }}</a></td>
- <td>{{ caf.sub_mode }}</td>
- <td>
- <ul>
- {% for applicable_system in caf.applicable_systems.all %}
- <li><a href="{% url "caf:ass_detail" applicable_system.pk %}">{{ applicable_system.name }}</a></li>
- {% endfor %}
- </ul>
- </td>
- </tr>
- {% endfor %}
-
- </table>
+ <div class="col-md-12 pl-0 my-2">
+ <h4>CAF List</h4>
+ <div class="row">
+ <div class="col-md-12 bg-light my-2 py-2">
+ <table id="datatable" class="display compact cell-border" style="width:100%">
+ <thead>
+ <tr>
+ <th>Organisation</th>
+ <th>Link</th>
+ <th>Sub Mode</th>
+ <th>Applicable Systems</th>
+ </tr>
+ </thead>
+ {% for caf in object_list %}
+ <tr>
+ <td><a href="{% url "organisations:detail" slug=caf.organisation.slug %}">{{ caf.organisation }}</a>
+ </td>
+ <td><a href="{% url 'caf:detail' pk=caf.pk %}">{{ caf.version }}</a></td>
+ <td>{{ caf.sub_mode }}</td>
+ <td>
+ <ul>
+ {% for applicable_system in caf.applicable_systems.all %}
+ <li><a href="{% url "caf:ass_detail" applicable_system.pk %}">{{ applicable_system.name }}</a>
+ </li>
+ {% endfor %}
+ </ul>
+ </td>
+ </tr>
+ {% endfor %}
+ </table>
+ </div>
+ </div>
</div>
</div>
</div>