From 247058a30f32c615a5db25c3d93b3262589857da Mon Sep 17 00:00:00 2001 From: Peter Pfeufer Date: Sat, 9 Dec 2023 15:38:05 +0100 Subject: [PATCH] [CHANGE] Switch to BS5 base template --- .../optimer/templates/optimer/add.html | 14 +- .../optimer/templates/optimer/management.html | 130 +++++++++++------- .../optimer/templates/optimer/update.html | 46 ++++--- 3 files changed, 115 insertions(+), 75 deletions(-) diff --git a/allianceauth/optimer/templates/optimer/add.html b/allianceauth/optimer/templates/optimer/add.html index 9b9ddecd..4443fa0a 100644 --- a/allianceauth/optimer/templates/optimer/add.html +++ b/allianceauth/optimer/templates/optimer/add.html @@ -1,15 +1,23 @@ -{% extends "allianceauth/base.html" %} +{% extends "allianceauth/base-bs5.html" %} + {% load bootstrap %} {% load i18n %} {% get_current_language as LANGUAGE_CODE %} -{% block page_title %}{% translate "Create Operation" %}{% endblock page_title %} +{% block page_title %} + {% translate "Create Operation" %} +{% endblock page_title %} + +{% block header_nav_brand %} + {% translate "Fleet Operation Timers" %} +{% endblock header_nav_brand %} + {% block extra_css %} {% include 'bundles/jquery-datetimepicker-css.html' %} {% endblock extra_css %} {% block content %} -
+

{% translate "Create Fleet Operation" %}

diff --git a/allianceauth/optimer/templates/optimer/management.html b/allianceauth/optimer/templates/optimer/management.html index ef8bb90b..5673cc48 100644 --- a/allianceauth/optimer/templates/optimer/management.html +++ b/allianceauth/optimer/templates/optimer/management.html @@ -1,41 +1,62 @@ -{% extends "allianceauth/base.html" %} +{% extends "allianceauth/base-bs5.html" %} + {% load i18n %} {% get_current_language as LANGUAGE_CODE %} -{% block page_title %}{% translate "Fleet Operation Management" %}{% endblock page_title %} -{% block extra_css %}{% endblock extra_css %} +{% block page_title %} + {% translate "Fleet Operation Management" %} +{% endblock page_title %} + +{% block header_nav_brand %} + {% translate "Fleet Operation Timers" %} +{% endblock header_nav_brand %} {% block content %} -
-

{% translate "Fleet Operation Timers" %} -
- {% if perms.auth.optimer_management %} - {% translate "Create Operation" %} - {% endif %} -
-

- -
-
- {% translate "Current Eve Time:" %} -
- -
+
+
+ {% if perms.auth.optimer_management %} + {% translate "Create Operation" %} + {% endif %}
-

{% translate "Next Fleet Operations" %}

- {% if future_timers %} - {% include "optimer/fleetoptable.html" with timers=future_timers %} - {% else %} -
{% translate "No upcoming timers." %}
- {% endif %} +
+
+ {% translate "Current Eve Time:" %} + +
+
-

{% translate "Past Fleet Operations" %}

- {% if past_timers %} - {% include "optimer/fleetoptable.html" with timers=past_timers %} - {% else %} -
{% translate "No past timers." %}
- {% endif %} +
+
+
+ {% translate "Next Fleet Operations" %} +
+
+ +
+ {% if future_timers %} + {% include "optimer/fleetoptable.html" with timers=next_timers %} + {% else %} +
{% translate "No upcoming timers." %}
+ {% endif %} +
+
+ +
+
+
+ {% translate "Past Fleet Operations" %} +
+
+ +
+ {% if past_timers %} + {% include "optimer/fleetoptable.html" with timers=past_timers %} + {% else %} +
{% translate "No past timers." %}
+ {% endif %} +
+
{% include 'bundles/moment-js.html' with locale=True %} @@ -43,23 +64,23 @@ {% endblock %} - -{% block extra_script %} - - $('#id_start').datetimepicker({ - setlocale: '{{ LANGUAGE_CODE }}', - {% if NIGHT_MODE %} - theme: 'dark', - {% else %} - theme: 'default', - {% endif %} - mask: true, - format: 'Y-m-d H:i', - minDate: 0 - }); - -{% endblock extra_script %}