From 155494afea1dca8d062a8b05a61b4a629a09eb30 Mon Sep 17 00:00:00 2001 From: Peter Pfeufer Date: Sat, 9 Dec 2023 16:18:17 +0100 Subject: [PATCH] [CHANGE] Switch to BS5 base template --- allianceauth/srp/templates/srp/add.html | 25 +- allianceauth/srp/templates/srp/data.html | 275 +++++++++--------- .../srp/templates/srp/management.html | 220 +++++++------- allianceauth/srp/templates/srp/request.html | 18 +- allianceauth/srp/templates/srp/update.html | 17 +- 5 files changed, 292 insertions(+), 263 deletions(-) diff --git a/allianceauth/srp/templates/srp/add.html b/allianceauth/srp/templates/srp/add.html index 5b38500d..750d0284 100644 --- a/allianceauth/srp/templates/srp/add.html +++ b/allianceauth/srp/templates/srp/add.html @@ -1,16 +1,25 @@ -{% extends "allianceauth/base.html" %} +{% extends "allianceauth/base-bs5.html" %} + {% load bootstrap %} {% load i18n %} -{% block page_title %}{% translate "SRP Fleet Create" %}{% endblock page_title %} +{% block page_title %} + {% translate "SRP Fleet Create" %} +{% endblock page_title %} + +{% block header_nav_brand %} + {% translate "Ship Replacement Program" %} +{% endblock header_nav_brand %} + {% block extra_css %} {% include 'bundles/jquery-datetimepicker-css.html' %} {% endblock extra_css %} {% block content %} - -
-

{% translate "Create SRP Fleet" %}

+
+

+ {% translate "Create SRP Fleet" %} +

@@ -35,7 +44,6 @@
- {% endblock content %} {% block extra_javascript %} @@ -45,11 +53,6 @@ {% block extra_script %} $('#id_fleet_time').datetimepicker({ setlocale: '{{ LANGUAGE_CODE }}', - {% if NIGHT_MODE %} - theme: 'dark', - {% else %} - theme: 'default', - {% endif %} mask: true, format: 'Y-m-d H:i', minDate: 0 diff --git a/allianceauth/srp/templates/srp/data.html b/allianceauth/srp/templates/srp/data.html index 34aeb5c1..1de91772 100644 --- a/allianceauth/srp/templates/srp/data.html +++ b/allianceauth/srp/templates/srp/data.html @@ -1,140 +1,148 @@ {% extends "allianceauth/base-bs5.html" %} + {% load i18n %} - {% load humanize %} -{% block page_title %}{% translate "Srp Fleet Data" %}{% endblock page_title %} -{% block content %} -
-
-

{% translate "SRP Fleet Data" %} -
- {% if perms.auth.srp_management %} - {% if fleet_status == "Completed" %} - - {% translate "Mark Incomplete" %} - - {% else %} - - {% translate "Mark Completed" %} - - {% endif %} - {% endif %} -
-

- {% if srpfleetrequests %} -
- {% csrf_token %} -