From 6f0b853a6035edef02da456057fd0177088cdb1d Mon Sep 17 00:00:00 2001 From: Peter Pfeufer Date: Sat, 9 Dec 2023 17:19:47 +0100 Subject: [PATCH] [CHANGE] Switch to `django_bootstrap5` forms --- allianceauth/srp/templates/srp/add.html | 73 +++++++++++++-------- allianceauth/srp/templates/srp/request.html | 33 ++++++---- allianceauth/srp/templates/srp/update.html | 43 +++++++----- 3 files changed, 94 insertions(+), 55 deletions(-) diff --git a/allianceauth/srp/templates/srp/add.html b/allianceauth/srp/templates/srp/add.html index 750d0284..708fc2fe 100644 --- a/allianceauth/srp/templates/srp/add.html +++ b/allianceauth/srp/templates/srp/add.html @@ -1,6 +1,6 @@ {% extends "allianceauth/base-bs5.html" %} -{% load bootstrap %} +{% load django_bootstrap5 %} {% load i18n %} {% block page_title %} @@ -21,25 +21,38 @@ {% translate "Create SRP Fleet" %} -
-
-
- {% if completed == False %} - - {% else %} - - - - {% endif %} +
+
+
+ {% translate "SRP fleet details" %} +
+
+ +
+
+
+ {% if completed == False %} + + {% else %} + + + + {% endif %} +
@@ -48,13 +61,15 @@ {% block extra_javascript %} {% include 'bundles/jquery-datetimepicker-js.html' %} -{% endblock %} -{% block extra_script %} - $('#id_fleet_time').datetimepicker({ - setlocale: '{{ LANGUAGE_CODE }}', - mask: true, - format: 'Y-m-d H:i', - minDate: 0 - }); -{% endblock extra_script %} + +{% endblock %} diff --git a/allianceauth/srp/templates/srp/request.html b/allianceauth/srp/templates/srp/request.html index 80c8a086..08a0dfef 100644 --- a/allianceauth/srp/templates/srp/request.html +++ b/allianceauth/srp/templates/srp/request.html @@ -1,6 +1,6 @@ {% extends "allianceauth/base-bs5.html" %} -{% load bootstrap %} +{% load django_bootstrap5 %} {% load i18n %} {% block page_title %} @@ -17,16 +17,27 @@ {% translate "Create SRP Request" %} -
-
-
- +
+
+
+ {% translate "Your SRP request" %} +
+
+ +
+
+
+ +
diff --git a/allianceauth/srp/templates/srp/update.html b/allianceauth/srp/templates/srp/update.html index a4a0bff0..fe8eba41 100644 --- a/allianceauth/srp/templates/srp/update.html +++ b/allianceauth/srp/templates/srp/update.html @@ -1,6 +1,6 @@ {% extends "allianceauth/base-bs5.html" %} -{% load bootstrap %} +{% load django_bootstrap5 %} {% load i18n %} {% block page_title %} @@ -17,20 +17,33 @@ {% translate "Update AAR Link" %} -
-
-
- {% if no_fleet_id %} - - {% else %} - - {% endif %} +
+
+
+ {% translate "After Action Report" %} +
+
+ +
+
+
+ {% if no_fleet_id %} + + {% else %} + + {% endif %} +