Blocks in view: group.form.*

This commit is contained in:
xdrm-brackets 2017-11-08 14:16:51 +01:00
parent 937515997c
commit 8ac65dc399
3 changed files with 85 additions and 29 deletions

View File

@ -1,17 +1,24 @@
<form class='valid'> {% block form_tag %} <form class='valid'> {% endblock %}
<input id='create_name' type='text' placeholder='Nom'><br> {% block input %}
<span class='error-msg create_name'></span><br>
<select id='create_class'> <input id='create_name' type='text' placeholder='Nom'><br>
<option value='-' selected disabled>Type de groupe</option> <span class='error-msg create_name'></span><br>
<option value='0'>utilisateurs</option>
<option value='1'>machines</option>
</select>
<span class='error-msg create_class'></span><br> <select id='create_class'>
<option value='-' selected disabled>Type de groupe</option>
<option value='0'>utilisateurs</option>
<option value='1'>machines</option>
</select>
<span class='error-msg create_class'></span><br>
<button id='create_submit'>Créer</button> {% endblock %}
{% block submit %}
<button id='create_submit'>Créer</button>
{% endblock %}
</form> </form>

View File

@ -1,20 +1,44 @@
<form class='neutral'> {% block form_tag %} <form class='neutral'> {% endblock %}
<!-- Recherche de groupe --> <!-- Recherche de groupe -->
<input id='edit_search_keyword' type='text' class='search' placeholder='Recherche...'><br> {% block search %}
<input id='edit_search_id' type='hidden' value=''>
<!-- Indice du resultat --> {% block search_input %}
<span class='edit_search_view'>groupe <span class='edit_search_num'>0</span> sur <span class='edit_search_sum'>0</span></span><br><br>
<button id='edit_search_submit' class='search'>Trouver/Suivant</button><br> <input id='edit_search_keyword' type='text' class='search' placeholder='Recherche...'><br>
<input id='edit_search_id' type='hidden' value=''>
{% endblock %}
<!-- Indice du resultat -->
{% block search_submit %}
<span class='edit_search_view'>groupe <span class='edit_search_num'>0</span> sur <span class='edit_search_sum'>0</span></span><br><br>
<button id='edit_search_submit' class='search'>Trouver/Suivant</button><br>
{% endblock %}
{% endblock %}
<br><br><hr class='OR' data-label='PUIS' /><br><br> <br><br><hr class='OR' data-label='PUIS' /><br><br>
<!-- Modification de groupe --> <!-- Modification de groupe -->
<input id='edit_name' type='text' placeholder='Nom'><br> {% block edit %}
<span class='error-msg edit_name'></span><br>
<input id='edit_class' type='text' placeholder='Type de groupe' disabled><br> {% block edit_input %}
<button id='edit_submit' disabled>Modifier</button>
<input id='edit_name' type='text' placeholder='Nom'><br>
<span class='error-msg edit_name'></span><br>
{% endblock %}
{% block edit_submit %}
<input id='edit_class' type='text' placeholder='Type de groupe' disabled><br>
<button id='edit_submit' disabled>Modifier</button>
{% endblock %}
{% endblock %}
</form> </form>

View File

@ -1,18 +1,43 @@
<form class='invalid'> {% block form_tag %} <form class='invalid'> {% endblock %}
<!-- Recherche de groupe --> <!-- Recherche de groupe -->
<input id='remove_search_keyword' type='text' class='search' placeholder='Recherche...'><br> {% block search %}
<input id='remove_search_id' type='hidden' value=''>
<!-- Indice du resultat --> {% block search_input %}
<span class='remove_search_view'>groupe <span class='remove_search_num'>0</span> sur <span class='remove_search_sum'>0</span></span><br><br>
<button id='remove_search_submit' class='search'>Trouver/Suivant</button><br> <input id='remove_search_keyword' type='text' class='search' placeholder='Recherche...'><br>
<input id='remove_search_id' type='hidden' value=''>
{% endblock %}
<!-- Indice du resultat -->
{% block search_submit %}
<span class='remove_search_view'>groupe <span class='remove_search_num'>0</span> sur <span class='remove_search_sum'>0</span></span><br><br>
<button id='remove_search_submit' class='search'>Trouver/Suivant</button><br>
{% endblock %}
{% endblock %}
<br><br><hr class='OR' data-label='PUIS' /><br><br> <br><br><hr class='OR' data-label='PUIS' /><br><br>
<!-- Suppression de groupe --> <!-- Suppression de groupe -->
<input id='remove_name' type='text' placeholder='Nom' disabled><br> {% block remove %}
<input id='remove_class' type='text' placeholder='Type de groupe' disabled><br>
<button id='remove_submit' disabled>Supprimer</button> {% block remove_input %}
<input id='remove_name' type='text' placeholder='Nom' disabled><br>
<input id='remove_class' type='text' placeholder='Type de groupe' disabled><br>
{% endblock %}
{% block remove_submit %}
<button id='remove_submit' disabled>Supprimer</button>
{% endblock %}
{% endblock %}
</form> </form>