[SPIP] +spip v3.0.17
[lhc/web/clavette_www.git] / www / plugins-dist / mots / prive / objets / liste / mots_associer.html
diff --git a/www/plugins-dist/mots/prive/objets/liste/mots_associer.html b/www/plugins-dist/mots/prive/objets/liste/mots_associer.html
new file mode 100644 (file)
index 0000000..87d66a8
--- /dev/null
@@ -0,0 +1,28 @@
+#SET{groupes_vus,'0'}
+[(#SET{_MAX_MOTS_LISTE,[(#VAL{_MAX_MOTS_LISTE}|defined|?{[(#VAL{_MAX_MOTS_LISTE}|constant)],50})]})]
+#SET{exclus,#ENV{objet_source}|lister_objets_lies{#ENV{objet},#ENV{id_objet},#ENV{_objet_lien}}}
+<BOUCLE_exclus(MOTS){id_mot IN #GET{exclus}}{tout}>[(#ID_GROUPE|unique|oui)#SET{groupes_vus,#GET{groupes_vus}|concat{',',#ID_GROUPE}} ]</BOUCLE_exclus>
+
+<B_groupes>
+       <ul>
+       <BOUCLE_groupes(GROUPES_MOTS){tables_liees==#ENV{objet}|table_objet}{par titre}
+               ><BOUCLE_compte(MOTS){id_groupe}{id_mot !IN #GET{exclus}} />#SET{total,#TOTAL_BOUCLE}<//B_compte>[
+       (#GET{total}|!={0}|et{#AUTORISER{afficherselecteurmots,groupemots,#ID_GROUPE,'',#ARRAY{objet,#ENV{objet},id_objet,#ENV{id_objet},comite,#COMITE,minirezo,#MINIREZO}}})
+       <li class="editer associer_mot groupe_mots[(#UNSEUL|=={oui}|oui)unseul][(#OBLIGATOIRE|=={oui}|oui)obligatoire][ (#ID_GROUPE|in_any{#GET{groupes_vus}|explode{','}}|?{'vu','nonvu'})]">
+               <label for="ajouter_lien-groupe#ID_GROUPE">#TITRE</label>
+
+               [(#GET{total}|<{#GET{_MAX_MOTS_LISTE}}|oui)
+                       [(#UNSEUL|=={oui}|oui)
+                               [(#INCLURE{fond=prive/objets/liste/mots_associer-select-unseul,env,exclus=#GET{exclus},id_groupe=#ID_GROUPE})]
+                       ]
+                       [(#UNSEUL|=={oui}|non)
+                               [(#INCLURE{fond=prive/objets/liste/mots_associer-select,env,exclus=#GET{exclus},id_groupe=#ID_GROUPE})]
+                       ]
+               ]
+               [(#GET{total}|<{#GET{_MAX_MOTS_LISTE}}|non)
+                       [(#INCLURE{fond=prive/objets/liste/mots_associer-recherche,env,exclus=#GET{exclus},id_groupe=#ID_GROUPE,unseul=#UNSEUL})]
+               ]
+       </li>
+       ]</BOUCLE_groupes>
+       </ul>
+</B_groupes>