correction for mandatory fields in forms

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-08-26 09:06:42 +02:00
parent 8f64460647
commit 7f6ea29e15
19 changed files with 75 additions and 21 deletions

View File

@@ -3,7 +3,7 @@
{% if norow == false and field.type != 'hidden' %}
<div class="row g-0 formfield d-flex align-items-center">
{% if field.label is iterable %}
<label for="{{ id }}" class="col-sm-4 col-form-label pe-3">
<label for="{{ id }}" class="col-sm-6 col-form-label pe-3">
{% if em %}
<mark>
{% endif %}
@@ -15,7 +15,7 @@
{% endif %}
</label>
{% else %}
<label for="{{ id }}" class="col-sm-4 col-form-label pe-3">
<label for="{{ id }}" class="col-sm-6 col-form-label pe-3">
{% if em %}
<mark>
{% endif %}
@@ -27,7 +27,7 @@
{% endif %}
</label>
{% endif %}
<div class="col-sm-8">
<div class="col-sm-6">
{% endif %}
{% if field.type == 'text' or field.type == 'password' or field.type == 'number' or field.type == 'file' or field.type == 'email' or field.type == 'url' or field.type == 'hidden' or field.type == 'date' or field.type == 'datetime-local' %}
{{ _self.input(id, field) }}