[CSS] +fix page header and title color
[lhc/web/www.git] / www / plugins / formidable / prive / objets / liste / formulaires_associer.html
1 [(#SET{defaut_tri,#ARRAY{
2 multi titre,1,
3 date_naissance,-1,
4 id_formulaire,1
5 }})
6 ]
7 #SET{exclus,#ENV**{exclus,#ENV{objet_source}|lister_objets_lies{#ENV{objet},#ENV{id_objet},#ENV{_objet_lien}}}}
8 #SET{debut,#ENV{debutgeoa,#EVAL{_request("debutgeoa");}}}
9 <B_liste_formulaires>
10 [(#REM) En cas de pagination indirecte @32, il faut refaire le set car la boucle
11 a mis a jour la valeur avec la page reelle]
12 #SET{debut,#ENV{debutgeoa,#EVAL{_request("debutgeoa");}}}
13 #SET{afficher_lettres,#TRI|=={'multi titre'}|oui}
14 #ANCRE_PAGINATION
15 <div class="liste-objets liste-objets-associer formulaires">
16 <table class="spip liste">
17 [<caption><span class="caption"><strong>(#ENV*{titre,#GRAND_TOTAL|singulier_ou_pluriel{formidable:info_1_formulaire,formidable:info_nb_formulaires}})</strong>
18 <span class="recherche">
19 <label for="recherche-#ENV{id}"><:info_rechercher_02:></label>
20 <input type="text" class="recherche" name="recherche" id="recherche-#ENV{id}" value="#ENV{recherche}" />
21 <input type="submit" class="tout_voir" name="tout_voir" value="<:info_tout_afficher:>" />
22 </span>
23 </span>
24 </caption>]
25 <thead>
26 #SET{p,''}
27 <BOUCLE_lettre(FORMULAIRES){tout}{!id_formulaire IN #GET{exclus}}{where?}{recherche?}{statut?}
28 {tri #ENV{par,multi titre},#GET{defaut_tri}}{id_formulaire==#GET{afficher_lettres}|?{'.*','A'}}>[
29 (#TITRE**|extraire_multi|initiale|unique|oui)
30 [(#SET{p,#GET{p}|concat{
31 #SELF|parametre_url{debutgeoa,@#ID_FORMULAIRE}|ancre_url{paginationgeoa}|afficher_initiale{#TITRE**|extraire_multi|initiale{},#COMPTEUR_BOUCLE,#GET{debut},#ENV{nb,10}}
32 }})]
33 ]#SAUTER{#ENV{nb,10}|moins{#COMPTEUR_BOUCLE|=={1}|?{2,1}}}</BOUCLE_lettre>[
34 (#SET{p,
35 #GET{p}|concat{
36 #REM|afficher_initiale{#REM,#TOTAL_BOUCLE,#GET{debut},#ENV{nb,10}}
37 }
38 })]</B_lettre>
39 [<tr><td colspan="3"><p class="pagination">(#GET{p})</p></td></tr>]
40
41 <tr class="first_row">
42 <th class="statut" scope="col">[(#TRI{statut,<span title="<:lien_trier_statut|attribut_html:>">#</span>,ajax})]</th>
43 <th class="titre" scope="col">[(#TRI{multi titre,<:formidable:editer_titre:>,ajax})]</th>
44 <th class="action" scope="col"></th>
45 </tr>
46 </thead>
47 <tbody>
48 <BOUCLE_liste_formulaires(FORMULAIRES){!id_formulaire IN #GET{exclus}}{where?}{recherche?}{statut?}
49 {tri #ENV{par,multi titre},#GET{defaut_tri}}{pagination #ENV{nb,10} forma}>
50 <tr class="[(#COMPTEUR_BOUCLE|alterner{row_odd,row_even})][ (#EXPOSE|unique)][ (#TITRE**|extraire_multi|initiale|=={#ENV{i}}|?{on}|unique)]">
51 <td class="statut">[(#STATUT|puce_statut{formulaire})]</td>
52 <td class="titre">[(#LOGO_FORMULAIRE|image_reduire{20,20})]<a href="[(#ID_FORMULAIRE|generer_url_entite{formulaire})]">#TITRE</a></td>
53 <td class="action">
54 <button type="submit" class="button link add" name="ajouter_lien\[formulaire-#ID_FORMULAIRE-#OBJET-#ID_OBJET\]" value="+"><:formidable:liens_ajouter_lien:> [(#CHEMIN_IMAGE{ajouter-12.png}|balise_img{'+'})]</button>
55 </td>
56 </tr>
57 </BOUCLE_liste_formulaires>
58 </tbody>
59 </table>
60 [<p class="pagination">(#PAGINATION{prive})</p>]
61 </div>
62 </B_liste_formulaires>[(#ENV{recherche}|oui)
63 <div class="liste-objets liste-objets-associer formulaires caption-wrap">
64 <span class="caption"><strong>[(#VAL{info_recherche_auteur_zero}|_T{#ARRAY{cherche_auteur,#ENV{recherche}}})]</strong>
65 <span class="recherche">
66 <label for="recherche-#ENV{id}"><:info_rechercher_02:></label>
67 <input type="text" class="recherche" name="recherche" id="recherche-#ENV{id}" value="#ENV{recherche}" />
68 <input type="submit" class="tout_voir" name="tout_voir" value="<:info_tout_afficher:>" />
69 </span>
70 </span>
71 </div>
72 ]<//B_liste_formulaires>