From 2b8945c513542244bda562556cfb883077b088ed Mon Sep 17 00:00:00 2001 From: Arona Jones Date: Fri, 16 Dec 2022 12:35:08 +0000 Subject: [PATCH] Update subhire detail template --- RIGS/templates/subhire_detail.html | 48 +++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/RIGS/templates/subhire_detail.html b/RIGS/templates/subhire_detail.html index a4309454..29bc78c3 100644 --- a/RIGS/templates/subhire_detail.html +++ b/RIGS/templates/subhire_detail.html @@ -1,14 +1,60 @@ {% extends request.is_ajax|yesno:"base_ajax.html,base_rigs.html" %} {% load markdown_tags %} +{% load button from filters %} {% block content %}
+
+ {% button 'edit' 'subhire_update' object.pk %} +
{% include 'partials/contact_details.html' %}
- {% include 'partials/event_details.html' %} +
+
Hire Details
+
+
+
Name
+
{{ object.name }}
+
Event Starts
+
{{ object.start_date|date:"D d M Y" }} {{ object.start_time|date:"H:i" }}
+ +
Event Ends
+
{{ object.end_date|date:"D d M Y" }} {{ object.end_time|date:"H:i" }}
+ +
Status
+
{{ object.get_status_display }}
+ +
PO
+
{{ object.po }}
+
+
+
+
+
+
+
Equipment Information
+
+
+
Description
+
{{ object.description }}
+
Insurance Value
+
£{{ object.insurance_value }}
+
+
+
+
+
+
+
Associated Events
+
+ {% for event in object.events.all %} + {{event}} + {%endfor%} +
+
{% if not request.is_ajax and perms.RIGS.view_event %}