Autorisations_-tendues/formulaires/editer_autorisations.html
2020-02-10 13:17:43 +01:00

48 lines
1.5 KiB
HTML

<div class="formulaire_spip formulaire_#FORM">
[<p class="reponse_formulaire reponse_formulaire_erreur">(#ENV*{message_erreur})</p>]
[<p class="reponse_formulaire reponse_formulaire_ok">(#ENV*{message_ok})</p>]
<form name="formulaire_#FORM" action="#ENV{action}" method="post"><div>
#ACTION_FORMULAIRE{#ENV{action}}
<table id="gestion_autorisations" class="table">
<thead>
<tr>
<th>Auteur</th>
<BOUCLE_nomAuth(DATA){source tableau, #ENV{auth_modele}}>
<td>#VALEUR{label}</td>
</BOUCLE_nomAuth>
</tr>
</thead>
<tbody>
<BOUCLE_auteurs(AUTEURS)
{id_auteur ?!IN #ENV{id_auteur}}
{statut ?!IN #ENV{statut}}
{pgp ?!IN #ENV{pgp}}
{webmestre?}
{tout}>
<tr id="auteur-#ID_AUTEUR" data-id_auteur="#ID_AUTEUR">
<td>
[(#PGP|=={boss}|oui)
<img class="boss" src="[(#CHEMIN{img/boss.png})]" alt="boss"/>
]
#NOM
<input type="hidden" name="Tid_auteur[]" value="#ID_AUTEUR">
</td>
<BOUCLE_valeurAuth(DATA){source tableau, #ENV{auth_modele}}>
[(#SET{autorisations,#AUTORISATIONS|json_decode{true}|table_valeur{#VALEUR{type}}})]
<td>
[(#PGP|!={boss}|oui)
<INCLURE{fond=inclure/auth_choix,id_auteur,type=#VALEUR{type},faire=#VALEUR{faire},autorisations=#GET{autorisations}}>
]
</td>
</BOUCLE_valeurAuth>
</tr>
</BOUCLE_auteurs>
</tbody>
</table>
<p class="boutons"><input type="submit" class="submit" value="Valider" ></p>
</div></form>
</div>