source: spip-zone/_core_/plugins/petitions/prive/squelettes/contenu/controler_petition.html @ 51568

Last change on this file since 51568 was 51568, checked in by cedric@…, 10 years ago

Tri sur la page de moderation pour faciliter la relance des plus anciennes

File size: 2.6 KB
Line 
1<h1 class="grostitre"><:petitions:titre_page_controle_petition:>[(#VAL{signatures}|bouton_spip_rss{#ARRAY{id_article,#ID_ARTICLE}})]</h1>
2#SET{self,#SELF|parametre_url{id_article|debut_id_signature,''}}
3
4#SET{self,#SELF|parametre_url{ad_email|url_site|debut_id_signature|statut,''}}
5
6[(#SET{statut,[(#ENV{statut})]%})]
7
8[(#ENV{statut}|=={prop}|oui)
9        #SET{prop,#ARRAY{0,publie,1,poubelle}}
10        #SET{statut,'%'}
11]
12
13<BOUCLE_repart(ARTICLES){id_article}>
14#BOITE_OUVRIR{'','note'}
15<a class='annule_filtre' href='[(#GET{self}|parametre_url{id_article,''})]' title="<:petitions:tout_voir|attribut_html:>">[(#CHEMIN_IMAGE{fermer-16.png}|balise_img|inserer_attribut{alt,<:petitions:tout_voir:>})]</a>
16<p><:petitions:signatures_article:> <a href='[(#ID_ARTICLE|generer_url_entite{article})]'>#TITRE</a></p>
17<BOUCLE_lapetition(PETITIONS){id_article}{0,1}>
18        [(#BOUTON_ACTION{<:petitions:icone_supprimer_signatures:>,#URL_ACTION_AUTEUR{traiter_lot_signature,supprimer,#SELF}|parametre_url{id_petition,#ID_PETITION,'&'},'ajax',<:petitions:alerte_confirmer_suppression_signatures:>})]
19</BOUCLE_lapetition>
20#BOITE_FERMER
21</BOUCLE_repart>
22
23[<div class='source'>
24[(#ENV{ad_email}|ou{#ENV{url_site}}|ou{#ENV{id_signature}})
25<a class='annule_filtre ajax' href='#GET{self}' title="<:petitions:tout_voir|attribut_html:>">[(#CHEMIN{images/annuler-recherche.png}|balise_img|inserer_attribut{alt,<:petitions:tout_voir:>})]</a>]
26<div class='par'><:petitions:filtre:> (#ENV{ad_email}|sinon{#ENV{url_site}})</div>
27</div>]
28
29[(#INCLURE{fond=prive/squelettes/inclure/boutons-filtres-statut-signature, env})]
30[<h2><:resultats_recherche:> &#171;&nbsp;(#ENV{recherche})&nbsp;&#187;</h2>]
31#FORMULAIRE_RECHERCHE_ECRIRE{#GET{self},ajax}
32
33
34<B_signatures>
35<h3>[(#GRAND_TOTAL|singulier_ou_pluriel{petitions:une_signature,petitions:nombre_signatures}|sinon{<:petitions:aucune_signature:>})]</h3>
36
37<p class='tri'> [(#TRI{id_signature,ID,ajax})] | [(#TRI{date_time,<:date:>,ajax})] </p>
38
39[<p class='pagination'>(#PAGINATION{prive})</p>]
40<ul class='liste-items signatures'>
41<BOUCLE_signatures(SIGNATURES)
42        {id_signature?}
43        {id_article ?}
44        {tri id_signature,inverse}
45        {pagination #ENV{nb,10}}
46        {statut LIKE #GET{statut}}
47        {statut ?!IN #GET{prop}}
48        {nom_email?}
49        {ad_email?}
50        {url_site?}
51        {recherche?}>
52
53<li class="item signature statut_[(#STATUT|match{^(publie|poubelle)$}|?{#STATUT,prop})][ (#COMPTEUR_BOUCLE|alterner{'','odd'})]" id='signature#ID_SIGNATURE' data-id="#ID_SIGNATURE">
54[(#INCLURE{fond=prive/modeles/signature,id_signature,self})]
55</li>
56</BOUCLE_signatures>
57</ul>
58[<p class='pagination'>(#PAGINATION{prive})</p>]
59</B_signatures>
60
61<h3><:petitions:aucune_signature:></h3>
62
63<//B_signatures>
Note: See TracBrowser for help on using the repository browser.