69 lines
2.1 KiB
HTML
69 lines
2.1 KiB
HTML
#CACHE{0}
|
|
<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">
|
|
[(#AUT_NOM|?{#SET{disabled,oui}, #SET{disabled,''}})]
|
|
|
|
<td>
|
|
<div>
|
|
[(#PGP|=={boss}|oui)
|
|
<img class="boss" src="[(#CHEMIN{img/boss.png})]" alt="boss"/>
|
|
#NOM
|
|
]
|
|
[(#PGP|=={boss}|non)
|
|
<a class="mediabox" href="[(#URL_PAGE{charger_aut_modele}
|
|
|parametre_url{id_auteur,#ID_AUTEUR}
|
|
|parametre_url{nom,#NOM}
|
|
|parametre_url{redirect,#SELF}
|
|
)]"
|
|
title="<:auted:charger_modele:>"
|
|
>
|
|
<i class="fa fa-upload"></i>
|
|
</a>
|
|
#NOM
|
|
<div class="nom_modele">#AUT_NOM</div>
|
|
]
|
|
</div>
|
|
|
|
[(#GET{disabled}|oui) <input type="hidden" value="#ID_AUTEUR" name="Tdisabled\[\]"/> ]
|
|
[(#PGP|!={boss}|oui) <input type="hidden" name="Tid_auteur\[\]" value="#ID_AUTEUR" placeholder="Nom modèle"> ]
|
|
</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},disabled=#GET{disabled}}>
|
|
]
|
|
</td>
|
|
</BOUCLE_valeurAuth>
|
|
</tr>
|
|
</BOUCLE_auteurs>
|
|
</tbody>
|
|
</table>
|
|
|
|
<p class="boutons"><input type="submit" class="submit" value="Valider" ></p>
|
|
</div></form>
|
|
</div>
|