Rework forms

This commit is contained in:
William Bouzourène 2025-01-12 17:14:39 +01:00
parent aa6d89aac8
commit efafb845f3
Signed by: bouzoure
SSH key fingerprint: SHA256:19MbXpLua4rUtk8tunMesD8KUKb91LXLHg8E/qTooww
14 changed files with 1539 additions and 679 deletions

View file

@ -14,40 +14,97 @@
<hr>
</div>
<div class="mb-3">
<b>Nom du champ</b><br>
{{ Field.Name }}
<div class="row mb-3">
<div class="col-md-2">
Nom du champ
</div>
<div class="col-md-10">
<input
type="text"
class="form-control"
value="{{ Field.Name }}"
disabled
readonly
>
</div>
</div>
<div class="mb-3">
<b>Population</b><br>
{% for Key, Value in PersonTypes %}
{% if Key == Field.PersonType %}
{{ Value }}
<div class="row mb-3">
<div class="col-md-2">
Population
</div>
<div class="col-md-10">
{% for Key, Value in PersonTypes %}
{% if Key == Field.PersonType %}
<input
type="text"
class="form-control"
value="{{ Value }}"
disabled
readonly
>
{% endif %}
{% endfor %}
</div>
</div>
<div class="row mb-3">
<div class="col-md-2">
Type de champ
</div>
<div class="col-md-10">
{% for Key, Value in FieldTypes %}
{% if Key == Field.FieldType %}
<input
type="text"
class="form-control"
value="{{ Value }}"
disabled
readonly
>
{% endif %}
{% endfor %}
</div>
</div>
<div class="row mb-3">
<div class="col-md-2">
Liste
</div>
<div class="col-md-10">
<div class="input-group">
{% if Field.ListID %}
<input
type="text"
class="form-control"
value="{{ Field.List.Name }}"
readonly
disabled
>
<span class="input-group-text">
<a href="/admin/lists/{{ Field.List.ID }}">
Afficher
<i class="bi-box-arrow-up-right ms-1"></i>
</a>
</span>
</div>
{% else %}
<div class="input-group">
<span class="input-group-text">
<i class="bi-x-lg text-danger"></i>
</span>
<input
type="text"
class="form-control"
value="Non"
disabled
>
</div>
{% endif %}
{% endfor %}
</div>
</div>
<div class="mb-3">
<b>Type de champ</b><br>
{% for Key, Value in FieldTypes %}
{% if Key == Field.FieldType %}
{{ Value }}
{% endif %}
{% endfor %}
</div>
{% if Field.ListID %}
<div class="mb-3">
<b>Liste</b><br>
<a href="/admin/lists/{{ Field.List.ID }}">
{{ Field.List.Name }}
</a>
</div>
{% endif %}
<div class="mt-3">
<div class="my-4">
<a class="btn btn-md btn-primary" href="/admin/fields/{{ Field.ID }}/edit">
<i class="bi-pencil-square"></i>
Modifier