summaryrefslogtreecommitdiffstats
path: root/engagements/templates
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-10-16 10:06:37 +0100
committerMatthew Lemon <y@yulqen.org>2024-10-16 10:06:37 +0100
commit7f7debbe0d5d5bbbe4182207137b651be100e408 (patch)
tree73eb9bd9faefb2641f997a6c3f43814d2b0b9633 /engagements/templates
parent3c724c0a25a8cfa34befbbb88bff1236cc88ec20 (diff)
Fixes miss-named list view function
Diffstat (limited to 'engagements/templates')
-rw-r--r--engagements/templates/engagements/organisation_list.html79
1 files changed, 79 insertions, 0 deletions
diff --git a/engagements/templates/engagements/organisation_list.html b/engagements/templates/engagements/organisation_list.html
new file mode 100644
index 0000000..4328067
--- /dev/null
+++ b/engagements/templates/engagements/organisation_list.html
@@ -0,0 +1,79 @@
+{% extends "core/base.html" %}
+
+{% block content %}
+
+<div class="flex py-4">
+ <div class="w-full px-4 py-8 my-5 bg-white shadow-md rounded-lg">
+ <header class="bg-blue-100 p-4">
+ <h2 class="text-2xl font-bold">Organisations</h2>
+ </header>
+ <div class="p-4 mb-4">
+ <div class="overflow-x-auto">
+ <table class="w-full divide-y divide-gray-200">
+ <thead class="bg-gray-50">
+ <tr>
+ <th scope="col" class="px-2 py-1 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Organisation</th>
+ <th scope="col" class="px-2 py-1 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Team</th>
+ <th scope="col" class="px-2 py-1 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Is Regulated?</th>
+ <th scope="col" class="px-2 py-1 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Responsible Persons</th>
+ <th scope="col" class="px-2 py-1 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Accountable Persons</th>
+ <th scope="col" class="px-2 py-1 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Information Holders</th>
+ </tr>
+ </thead>
+ <tbody class="divide-y divide-gray-200">
+ {% for obj in object_list %}
+ <tr>
+ <td class="px-2 py-1 whitespace-nowrap text-m">{{ obj.name }}</td>
+ <td class="px-2 py-1 whitespace-nowrap text-m">{{ obj.lead_team }}</td>
+ <td class="text-center px-2 py-1 whitespace-nowrap text-m">
+ {% if obj.is_regulated_entity %}
+ &#9989;
+ {% else %}
+ &#10060;
+ {% endif %}
+ </td>
+ <td class="px-2 py-1 whitespace-nowrap text-m">
+ {% if obj.rp.all %}
+ <ul>
+ {% for p in obj.rp.all %}
+ <li>{{ p.first_name }} {{p.last_name }}</li>
+ {% endfor %}
+ </ul>
+ {% else %}
+ <p>-</p>
+ {% endif %}
+ </td>
+ <td class="px-2 py-1 whitespace-nowrap text-m">
+ {% if obj.ap.all %}
+ <ul>
+ {% for p in obj.ap.all %}
+ <li>{{ p.first_name }} {{p.last_name }}</li>
+ {% endfor %}
+ </ul>
+ {% else %}
+ <p>-</p>
+ {% endif %}
+ </td>
+ <td class="px-2 py-1 whitespace-nowrap text-m">
+ {% if p.obj.ih.all %}
+ <ul>
+ {% for p in obj.ih.all %}
+ <li>{{ p.first_name }} {{p.last_name }}</li>
+ {% endfor %}
+ </ul>
+ {% else %}
+ <p>-</p>
+ {% endif %}
+ </td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+
+ </div>
+
+ </div>
+ </div>
+</div>
+
+{% endblock content %}