fix: user settings form

This commit is contained in:
Herculino Trotta
2025-12-14 12:47:36 -03:00
parent 8f06c06d32
commit f918351303
2 changed files with 5 additions and 5 deletions

View File

@@ -137,13 +137,13 @@ class UserSettingsForm(forms.ModelForm):
self.helper.layout = Layout(
"language",
"timezone",
HTML("<hr />"),
HTML('<hr class="hr my-3" />'),
"date_format",
"datetime_format",
"number_format",
HTML("<hr />"),
HTML('<hr class="hr my-3" />'),
"start_page",
HTML("<hr />"),
HTML('<hr class="hr my-3" />'),
"volume",
FormActions(
NoClassSubmit("submit", _("Save"), css_class="btn btn-primary"),

View File

@@ -1,7 +1,7 @@
{% if field.help_text %}
{% if help_text_inline %}
<span id="{{ field.auto_id }}_helptext" class="label text-wrap">{{ field.help_text|safe}}</span>
<span id="{{ field.auto_id }}_helptext" class="label text-wrap block">{{ field.help_text|safe}}</span>
{% else %}
<p {% if field.auto_id %}id="{{ field.auto_id }}_helptext" {% endif %}class="label text-wrap">{{ field.help_text|safe }}</p>
<p {% if field.auto_id %}id="{{ field.auto_id }}_helptext" {% endif %}class="label text-wrap block">{{ field.help_text|safe }}</p>
{% endif %}
{% endif %}