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
+3 -3
View File
@@ -137,13 +137,13 @@ class UserSettingsForm(forms.ModelForm):
self.helper.layout = Layout( self.helper.layout = Layout(
"language", "language",
"timezone", "timezone",
HTML("<hr />"), HTML('<hr class="hr my-3" />'),
"date_format", "date_format",
"datetime_format", "datetime_format",
"number_format", "number_format",
HTML("<hr />"), HTML('<hr class="hr my-3" />'),
"start_page", "start_page",
HTML("<hr />"), HTML('<hr class="hr my-3" />'),
"volume", "volume",
FormActions( FormActions(
NoClassSubmit("submit", _("Save"), css_class="btn btn-primary"), NoClassSubmit("submit", _("Save"), css_class="btn btn-primary"),
@@ -1,7 +1,7 @@
{% if field.help_text %} {% if field.help_text %}
{% if help_text_inline %} {% 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 %} {% 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 %}
{% endif %} {% endif %}