Rework forms
This commit is contained in:
parent
aa6d89aac8
commit
efafb845f3
14 changed files with 1539 additions and 679 deletions
|
|
@ -14,36 +14,132 @@
|
|||
<hr>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<b>Nom</b><br>
|
||||
{{ Section.Name }}
|
||||
<div class="row mb-3">
|
||||
<div class="col-md-2">
|
||||
Nom
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<input
|
||||
type="text"
|
||||
class="form-control"
|
||||
value="{{ Section.Name }}"
|
||||
disabled
|
||||
readonly
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<b>Nom technique</b><br>
|
||||
{{ Section.ShortName }}
|
||||
<div class="row mb-3">
|
||||
<div class="col-md-2">
|
||||
Nom technique
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<input
|
||||
type="text"
|
||||
class="form-control"
|
||||
value="{{ Section.ShortName }}"
|
||||
disabled
|
||||
readonly
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<b>Section parente</b><br>
|
||||
{% if Section.ParentSectionID %}
|
||||
{{ Section.ParentSection.Name }}
|
||||
{% else %}
|
||||
N/A
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<b>Contient des membres</b><br>
|
||||
{% if Section.ContainsMembers %}Oui{% else %}Non{% endif %}
|
||||
<div class="row mb-3">
|
||||
<div class="col-md-2">
|
||||
Section parente
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
{% if Section.ParentSectionID %}
|
||||
<input
|
||||
type="text"
|
||||
class="form-control"
|
||||
value="{{ Section.ParentSection.Name }}"
|
||||
disabled
|
||||
readonly
|
||||
>
|
||||
{% 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 %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<b>Contient des contacts</b><br>
|
||||
{% if Section.ContainsContacts %}Oui{% else %}Non{% endif %}
|
||||
<div class="row mb-3">
|
||||
<div class="col-md-2">
|
||||
Peut contenir des membres
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
{% if Section.ContainsMembers %}
|
||||
<div class="input-group">
|
||||
<span class="input-group-text">
|
||||
<i class="bi-check-lg text-success"></i>
|
||||
</span>
|
||||
<input
|
||||
type="text"
|
||||
class="form-control"
|
||||
value="Oui"
|
||||
disabled
|
||||
>
|
||||
</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 %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt-3">
|
||||
<div class="row mb-3">
|
||||
<div class="col-md-2">
|
||||
Peut contenir des contacts
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
{% if Section.ContainsContacts %}
|
||||
<div class="input-group">
|
||||
<span class="input-group-text">
|
||||
<i class="bi-check-lg text-success"></i>
|
||||
</span>
|
||||
<input
|
||||
type="text"
|
||||
class="form-control"
|
||||
value="Oui"
|
||||
disabled
|
||||
>
|
||||
</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 %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="my-4">
|
||||
<a class="btn btn-md btn-primary" href="/admin/sections/{{ Section.ID }}/edit">
|
||||
<i class="bi-pencil-square"></i>
|
||||
Modifier
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue