diff options
author | Matthew Lemon <y@yulqen.org> | 2024-10-14 15:19:36 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-10-14 15:19:36 +0100 |
commit | 41cf37ac30e2efac6427a4f126954a442579bc41 (patch) | |
tree | 8a3d24d6f97805a8766dacaf19ff48ba0149c8f8 | |
parent | 79596dc88fddc7e4e51b8d983faace292ae6234a (diff) |
Reduces the size of the EP table for an organisation
-rw-r--r-- | engagements/templates/engagements/ep_org.html | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/engagements/templates/engagements/ep_org.html b/engagements/templates/engagements/ep_org.html index aa7b5a1..e6ea423 100644 --- a/engagements/templates/engagements/ep_org.html +++ b/engagements/templates/engagements/ep_org.html @@ -17,48 +17,48 @@ <h3 class="text-2xl font-semibold mb-4">2023</h3> <div class="overflow-x-auto"> - <table class="min-w-full divide-y divide-gray-200"> + <table class="divide-y divide-gray-200"> <thead class="bg-gray-50"> <tr> - <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Start Date</th> - <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">End Date</th> - <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Engagement</th> - <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Engagement Type</th> - <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Area/Theme</th> - <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Inspectors Involved</th> - <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">DSCs</th> - <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Travel Effort</th> - <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Planning and Regulation Effort</th> - <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Completion Status</th> + <th scope="col" class="px-2 py-1 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Start Date</th> + <th scope="col" class="px-2 py-1 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">End Date</th> + <th scope="col" class="px-2 py-1 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Engagement</th> + <th scope="col" class="px-2 py-1 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Engagement Type</th> + <th scope="col" class="px-2 py-1 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Theme</th> + <th scope="col" class="px-2 py-1 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Inspectors Involved</th> + <th scope="col" class="px-2 py-1 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">DSCs</th> + <th scope="col" class="px-2 py-1 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Travel Effort</th> + <th scope="col" class="px-2 py-1 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Planning and Regulation Effort</th> + <th scope="col" class="px-2 py-1 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Completion Status</th> </tr> </thead> <tbody class="bg-white divide-y divide-gray-200"> {% for e in engagements %} <tr class="{% cycle 'bg-white' 'bg-gray-50' %}"> - <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">{{ e.proposed_start_date|date:'j M Y' }}</td> - <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">{{ e.proposed_end_date|date:'j M Y' }}</td> - <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-blue-600 hover:underline"> + <td class="px-2 py-1 whitespace-nowrap text-sm text-gray-500">{{ e.proposed_start_date|date:'j M Y' }}</td> + <td class="px-2 py-1 whitespace-nowrap text-sm text-gray-500">{{ e.proposed_end_date|date:'j M Y' }}</td> + <td class="px-2 py-1 whitespace-nowrap text-sm font-medium text-blue-600 hover:underline"> <a href="{% url 'engagements:engagement_detail' e.pk %}">{{ e }}</a> </td> - <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">{{ e.friendly_type }}</td> - <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Area Theme</td> - <td class="px-6 py-4 text-sm text-gray-500"> - <ul class="list-disc list-inside"> - {% for inspector in e.officers.all %} + <td class="px-2 py-1 whitespace-nowrap text-sm text-gray-500">{{ e.friendly_type }}</td> + <td class="px-2 py-1 whitespace-nowrap text-sm text-gray-500">-</td> + <td class="px-2 py-1 text-sm text-gray-500"> + <ul class="list-none list-inside"> + {% for inspector in e.get_officers %} <li>{{ inspector }}</li> {% endfor %} </ul> </td> - <td class="px-6 py-4 text-sm text-gray-500"> + <td class="px-2 py-1 text-sm text-gray-500"> <ul class="list-disc list-inside"> {% for dsc in e.dscs %} <li><a href="#" class="text-blue-600 hover:underline">{{ dsc.short }}</a></li> {% endfor %} </ul> </td> - <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">TBC</td> - <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">TBC</td> - <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Incomplete</td> + <td class="px-2 py-1 whitespace-nowrap text-sm text-gray-500">TBC</td> + <td class="px-2 py-1 whitespace-nowrap text-sm text-gray-500">TBC</td> + <td class="px-2 py-1 whitespace-nowrap text-sm text-gray-500">Incomplete</td> </tr> {% endfor %} </tbody> |