1 | [(#REM) |
---|
2 | |
---|
3 | Surcharge de mots/prive/objets/liste/mots_associer-recherche.html |
---|
4 | |
---|
5 | Modfie le squelette comme suit : |
---|
6 | - liste les mots de toute la branche (et non juste du groupe) |
---|
7 | {branche_groupe} à la place de {id_groupe} |
---|
8 | - Ajoute une colonne pour le sous groupe |
---|
9 | |
---|
10 | ]#SET{selected,''} |
---|
11 | #SET{action,ajouter_lien} |
---|
12 | <BOUCLE_remplacer(MOTS){branche_groupe}{id_mot IN #ENV{exclus}}{0,1}>[(#UNSEUL|=={oui}|oui) |
---|
13 | <:mots:info_remplacer_mot{titre=#TITRE}:><br /> |
---|
14 | [(#SET{action,[(#VAL{remplacer_lien}|concat{[(#VAL{91}|chr)],'mot-',#ID_MOT,'-',#OBJET,'-',#ID_OBJET,[(#VAL{93}|chr)]})]})] |
---|
15 | ]</BOUCLE_remplacer> |
---|
16 | |
---|
17 | <input type="text" class="text" name="recherche[#ID_GROUPE]" value="[(#ENV*{recherche}|table_valeur{#ID_GROUPE})]" /> |
---|
18 | <input type="submit" class="submit" name="recherche[b#ID_GROUPE]" value="<:info_rechercher:>" /> |
---|
19 | <input type="hidden" name="debutmota#ID_GROUPE" value='#ENV{debutmota#ID_GROUPE,#VAL{debutmotamota#ID_GROUPE}|_request}' /> |
---|
20 | #SET{recherche,#ENV*{recherche}|table_valeur{#ID_GROUPE}} |
---|
21 | [(#GET{recherche}|non|et{#ENV*{recherche}|table_valeur{b#ID_GROUPE}}) |
---|
22 | #SET{recherche,'/./'} |
---|
23 | <input type="hidden" name="recherche#EVAL{chr(91)}b#ID_GROUPE#EVAL{chr(93)}" value='x' /> |
---|
24 | ] |
---|
25 | <B_liste_mot> |
---|
26 | #ANCRE_PAGINATION |
---|
27 | <div class="liste-objets liste-objets-associer mots"> |
---|
28 | <table class='spip liste'> |
---|
29 | [<caption><strong class="caption">(#ENV*{titre,#GRAND_TOTAL|singulier_ou_pluriel{info_1_mot_cle,info_nb_mots_cles}})</strong></caption>] |
---|
30 | <thead> |
---|
31 | <tr class='first_row'> |
---|
32 | <th class='picto' scope='col'></th> |
---|
33 | <th class='titre' scope='col'>[(#TRI{titre,<:info_titre:>,ajax})]</th> |
---|
34 | <th class='type' scope='col'>[(#TRI{titre,<:gma:sous_groupe:>,ajax})]</th> |
---|
35 | <th class='action' scope='col'> </th> |
---|
36 | </tr> |
---|
37 | </thead> |
---|
38 | <tbody> |
---|
39 | <BOUCLE_liste_mot(MOTS){branche_groupe}{id_mot !IN #ENV{exclus}}{recherche #GET{recherche}}{tri #ENV{par,titre},#GET{defaut_tri}}{par multi titre}{pagination 10 mota#ID_GROUPE}> |
---|
40 | <tr class="[(#COMPTEUR_BOUCLE|alterner{row_odd,row_even})]"> |
---|
41 | <td class='picto'>[(#VAL|puce_statut{mot,#ID_MOT,#ID_GROUPE})]</td> |
---|
42 | <td class='titre principale'>[(#LOGO_MOT|image_reduire{20,20})]<a href="[(#ID_MOT|generer_url_entite{mot})]" |
---|
43 | title="<:info_numero_abbreviation|attribut_html:> #ID_MOT">[(#RANG). ]#TITRE |
---|
44 | </td> |
---|
45 | <td> |
---|
46 | <BOUCLE_hier(HIERARCHIE_GROUPES_MOTS){tous}{1,n}{" > "}> |
---|
47 | #TITRE |
---|
48 | </BOUCLE_hier> |
---|
49 | </td> |
---|
50 | <td class='action'><button class="button link" name="#GET{action}[mot-#ID_MOT-#OBJET-#ID_OBJET]" value="+"><:mots:lien_ajouter_mot:> [(#CHEMIN_IMAGE{ajouter-12.png}|balise_img{'+'})]</button></td> |
---|
51 | </tr> |
---|
52 | </BOUCLE_liste_mot> |
---|
53 | </tbody> |
---|
54 | </table> |
---|
55 | [<p class='pagination'>(#PAGINATION{prive})</p>] |
---|
56 | </div> |
---|
57 | </B_liste_mot>[(#ENV*{recherche}|table_valeur{#ID_GROUPE}|oui) |
---|
58 | <div class="liste-objets liste-objets-associer mots caption-wrap"> |
---|
59 | <strong class="caption">[(#ENV*{titre,<:mots:info_aucun_mot_cle:>}) ]</strong> |
---|
60 | </div>] |
---|
61 | <//B_liste_mot> |
---|