Field position management

This commit is contained in:
William Bouzourène 2025-02-11 13:44:53 +01:00
parent bc8a7d5fee
commit 3b9ca37baa
6 changed files with 138 additions and 12 deletions

View file

@ -25,8 +25,9 @@
<table class="table">
<thead>
<tr>
<th class="w-75">Nom</th>
<th class="w-50">Nom</th>
<th class="w-25">Type de champ</th>
<th class="w-25"></th>
</tr>
</thead>
<tbody>
@ -45,6 +46,18 @@
{% endif %}
{% endfor %}
</td>
<td class="text-end">
<div class="btn-group">
<a class="btn btn-sm btn-outline-primary" href="/admin/fields/{{ Field.ID }}/move-up">
<i class="bi-arrow-up me-1"></i>
Monter
</a>
<a class="btn btn-sm btn-outline-primary" href="/admin/fields/{{ Field.ID }}/move-down">
<i class="bi-arrow-down me-1"></i>
Descendre
</a>
</div>
</td>
</tr>
{% endif %}
{% endfor %}
@ -57,8 +70,9 @@
<table class="table">
<thead>
<tr>
<th class="w-75">Nom</th>
<th class="w-50">Nom</th>
<th class="w-25">Type de champ</th>
<th class="w-25"></th>
</tr>
</thead>
<tbody>
@ -77,6 +91,18 @@
{% endif %}
{% endfor %}
</td>
<td class="text-end">
<div class="btn-group">
<a class="btn btn-sm btn-outline-primary" href="/admin/fields/{{ Field.ID }}/move-up">
<i class="bi-arrow-up me-1"></i>
Monter
</a>
<a class="btn btn-sm btn-outline-primary" href="/admin/fields/{{ Field.ID }}/move-down">
<i class="bi-arrow-down me-1"></i>
Descendre
</a>
</div>
</td>
</tr>
{% endif %}
{% endfor %}