You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

31 lines
1.2 KiB

#SET{presents,#ENV{id}|roles_presents_sur_id{#ENV{objet_source},#ENV{objet},#ENV{id_objet},#ENV{_objet_lien}}}
<div class="roles-btn-group">
<a data-toggle="roles-dropdown" href="#" title="<:roles:modifier_roles_title:>" class="roles-btn roles-dropdown-toggle">[(#ENV{libelle,<:roles:modifier_roles:>})]
<span class="caret"></span>
</a>
<ul class="roles-dropdown-menu">
<B_roles_presents>
<li class='roles-dropdown-header'><:roles:enlever_role:></li>
<BOUCLE_roles_presents(DATA){source table,#ENV{_roles/roles/choix}}{valeur IN #GET{presents}}>
<li>
<button type="submit" name="supprimer_lien\[#ENV{cle}-#VALEUR\]" class="link roles-btn delete">
[(#CHEMIN_IMAGE{supprimer-8.png}|balise_img{'X'})] [(#VALEUR|role{#ENV{table_source}})]
</button>
</li>
</BOUCLE_roles_presents>
<li class="divider"></li>
</B_roles_presents>
<B_roles_absents>
<li class='roles-dropdown-header'><:roles:ajouter_role:></li>
<BOUCLE_roles_absents(DATA){source table,#ENV{_roles/roles/choix}}{valeur !IN #GET{presents}}>
<li>
<button type="submit" name="ajouter_lien\[#ENV{cle}-#VALEUR\]" class="link roles-btn delete">
[(#CHEMIN_IMAGE{inserer-8.png}|balise_img{'+'})] [(#VALEUR|role{#ENV{table_source}})]
</button>
</li>
</BOUCLE_roles_absents>
</ul>
</div>