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,4 +1,6 @@
<form class='valid'> {% block form_tag %} <form class='valid'> {% endblock %}
{% block input %}
<input id='create_name' type='text' placeholder='Nom'><br> <input id='create_name' type='text' placeholder='Nom'><br>
<span class='error-msg create_name'></span><br> <span class='error-msg create_name'></span><br>
@ -11,7 +13,12 @@
<span class='error-msg create_class'></span><br> <span class='error-msg create_class'></span><br>
{% endblock %}
{% block submit %}
<button id='create_submit'>Créer</button> <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 -->
{% block search %}
{% block search_input %}
<input id='edit_search_keyword' type='text' class='search' placeholder='Recherche...'><br> <input id='edit_search_keyword' type='text' class='search' placeholder='Recherche...'><br>
<input id='edit_search_id' type='hidden' value=''> <input id='edit_search_id' type='hidden' value=''>
{% endblock %}
<!-- Indice du resultat --> <!-- 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> <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> <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 -->
{% block edit %}
{% block edit_input %}
<input id='edit_name' type='text' placeholder='Nom'><br> <input id='edit_name' type='text' placeholder='Nom'><br>
<span class='error-msg edit_name'></span><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> <input id='edit_class' type='text' placeholder='Type de groupe' disabled><br>
<button id='edit_submit' disabled>Modifier</button> <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 -->
{% block search %}
{% block search_input %}
<input id='remove_search_keyword' type='text' class='search' placeholder='Recherche...'><br> <input id='remove_search_keyword' type='text' class='search' placeholder='Recherche...'><br>
<input id='remove_search_id' type='hidden' value=''> <input id='remove_search_id' type='hidden' value=''>
{% endblock %}
<!-- Indice du resultat --> <!-- 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> <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> <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 -->
{% block remove %}
{% block remove_input %}
<input id='remove_name' type='text' placeholder='Nom' disabled><br> <input id='remove_name' type='text' placeholder='Nom' disabled><br>
<input id='remove_class' type='text' placeholder='Type de groupe' 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> <button id='remove_submit' disabled>Supprimer</button>
{% endblock %}
{% endblock %}
</form> </form>