diff --git a/allianceauth/optimer/form_widgets.py b/allianceauth/optimer/form_widgets.py index 3cd313b8..e639e18b 100644 --- a/allianceauth/optimer/form_widgets.py +++ b/allianceauth/optimer/form_widgets.py @@ -3,6 +3,7 @@ Form Widgets """ from django import forms +from django.utils.safestring import mark_safe class DataListWidget(forms.TextInput): @@ -42,4 +43,4 @@ class DataListWidget(forms.TextInput): data_list += "" - return text_html + data_list + return mark_safe(text_html + data_list) diff --git a/allianceauth/optimer/templates/optimer/add.html b/allianceauth/optimer/templates/optimer/add.html index 4443fa0a..52f4b7ab 100644 --- a/allianceauth/optimer/templates/optimer/add.html +++ b/allianceauth/optimer/templates/optimer/add.html @@ -1,6 +1,6 @@ {% extends "allianceauth/base-bs5.html" %} -{% load bootstrap %} +{% load django_bootstrap5 %} {% load i18n %} {% get_current_language as LANGUAGE_CODE %} @@ -18,38 +18,48 @@ {% block content %}
-

{% translate "Create Fleet Operation" %}

+

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

-
-
-
+
+
+
+ {% translate "Fleet operation details" %} +
+
+ +
+
+
+
- {% endblock content %} {% block extra_javascript %} {% include 'bundles/jquery-datetimepicker-js.html' %} -{% 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 %} + +{% endblock %} diff --git a/allianceauth/optimer/templates/optimer/update.html b/allianceauth/optimer/templates/optimer/update.html index 9b94598b..cec34852 100644 --- a/allianceauth/optimer/templates/optimer/update.html +++ b/allianceauth/optimer/templates/optimer/update.html @@ -1,6 +1,6 @@ {% extends "allianceauth/base-bs5.html" %} -{% load bootstrap %} +{% load django_bootstrap5 %} {% load i18n %} {% get_current_language as LANGUAGE_CODE %} @@ -22,24 +22,30 @@ {% translate "Update Fleet Operation" %} -
-
-
- {% if no_fleet_id %} - - {% else %} +
+
+
+ {% translate "Fleet operation details" %} +
+
+ +
+
+
- {% endif %} +
-
{% endblock content %}