Improve forms

This commit is contained in:
William Bouzourène 2025-01-15 16:35:33 +01:00
parent 8226329b61
commit 6f3b7c6dc3
11 changed files with 83 additions and 14 deletions

View file

@ -62,6 +62,7 @@
required
value="{{ Person.LastName }}"
autofocus
autocomplete="off"
>
</div>
</div>
@ -78,6 +79,7 @@
name="first_name"
required
value="{{ Person.FirstName }}"
autocomplete="off"
>
</div>
</div>
@ -93,6 +95,7 @@
type="email"
name="email"
value="{{ Person.Email }}"
autocomplete="off"
>
</div>
</div>
@ -108,6 +111,7 @@
type="text"
name="phone"
value="{{ Person.Phone }}"
autocomplete="off"
>
</div>
</div>
@ -123,6 +127,7 @@
type="text"
name="mobile"
value="{{ Person.Mobile }}"
autocomplete="off"
>
</div>
</div>
@ -139,6 +144,7 @@
name="address1"
value="{{ Person.Address1 }}"
placeholder="Ligne 1"
autocomplete="off"
>
</div>
</div>
@ -152,6 +158,7 @@
name="address2"
value="{{ Person.Address2 }}"
placeholder="Ligne 2"
autocomplete="off"
>
</div>
</div>
@ -166,6 +173,7 @@
placeholder="Code postal"
pattern="[0-9]{4}"
value="{{ Person.PostalCode }}"
autocomplete="off"
>
</div>
<div class="col-md-7 col-lg-8">
@ -176,6 +184,7 @@
name="city"
value="{{ Person.City }}"
placeholder="Lieu"
autocomplete="off"
>
</div>
</div>
@ -190,6 +199,7 @@
name="section"
id="section"
required
autocomplete="off"
>
{% for Section in Sections %}
<option
@ -226,6 +236,7 @@
class="form-control"
type="text"
name="field_{{ Field.ID }}"
autocomplete="off"
{% for FieldValue in FieldValues %}
{% if FieldValue.FieldID == Field.ID %}
@ -241,6 +252,7 @@
class="form-control"
name="field_{{ Field.ID }}"
rows="4"
autocomplete="off"
>{% for FieldValue in FieldValues %}{% if FieldValue.FieldID == Field.ID %}{{ FieldValue.ValueString }}{% endif %}{% endfor %}</textarea>
{% endif %}
@ -250,6 +262,7 @@
class="form-control"
type="number"
name="field_{{ Field.ID }}"
autocomplete="off"
{% for FieldValue in FieldValues %}
{% if FieldValue.FieldID == Field.ID %}
@ -265,6 +278,7 @@
class="form-control"
type="date"
name="field_{{ Field.ID }}"
autocomplete="off"
{% for FieldValue in FieldValues %}
{% if FieldValue.FieldID == Field.ID %}
@ -279,6 +293,7 @@
id="field_{{ Field.ID }}"
class="form-select"
name="field_{{ Field.ID }}"
autocomplete="off"
>
<option value="0">--- Aucun ---</option>
{% for ListItem in Field.List.ListItems %}
@ -305,6 +320,7 @@
class="form-check-input me-2"
id="field_{{ Field.ID }}_{{ ListItem.ID }}"
name="field_{{ Field.ID }}_{{ ListItem.ID }}"
autocomplete="off"
>
<label
for="field_{{ Field.ID }}_{{ ListItem.ID }}"