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

Last change on this file was 110561, checked in by bruno@…, 3 years ago

Ajout d'autorisations pour les pages qui listent les objets ref #3055

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