[PLUGINS] +clavettes et dependances
[lhc/web/clavette_www.git] / www / plugins / import_ics / prive / objets / liste / almanachs.html
1 [(#SET{defaut_tri,#ARRAY{
2 titre,1,
3 date,-1,
4 id_almanach,1,
5 points,-1
6 }})]<B_liste_almanachs>
7 #ANCRE_PAGINATION
8 <div class="liste-objets almanachs">
9 <table class='spip liste'>
10 [<caption><strong class="caption">(#ENV*{titre,#GRAND_TOTAL|singulier_ou_pluriel{almanach:info_1_almanach,almanach:info_nb_almanachs}})</strong></caption>]
11 <thead>
12 <tr class='first_row'>
13 <th class='picto' scope='col'></th>
14 <th class='statut' scope='col'>[(#TRI{statut,<span title="<:lien_trier_statut|attribut_html:>">#</span>,ajax})]</th>
15 <th class='titre' scope='col'>[(#TRI{titre,<:almanach:label_titre:>,ajax})]</th>
16 <th class='utilisations' scope='col'></th>
17 <th class='action' scope='col'></th>
18 <th class='date' scope='col'>[(#TRI{date,<:date:>,ajax})]</th>
19 <th class='id' scope='col'>[(#TRI{id_almanach,<:info_numero_abbreviation:>,ajax})]</th>
20 </tr>
21 </thead>
22 <tbody>
23 <BOUCLE_liste_almanachs(ALMANACHS){id_article?}{id_mot?}{id_auteur?}{where?}{statut?}{recherche?}{tri #ENV{par,num titre},#GET{defaut_tri}}{par titre}{pagination #ENV{nb,10}}>
24 <tr class='[(#COMPTEUR_BOUCLE|alterner{row_odd,row_even})]'>
25 <td class='picto'>[(#CHEMIN_IMAGE{almanach-16.png}|balise_img)]</td>
26 <td class='statut'>[(#STATUT|puce_statut{almanach,#ID_ALMANACH})]</td>
27 <td class='titre principale'>[(#LOGO_ALMANACH|image_reduire{20,26})]<a href="[(#ID_ALMANACH|generer_url_entite{almanach})]" title="<:info_numero_abbreviation|attribut_html:> #ID_ALMANACH">[(#RANG). ]#TITRE</a></td>
28 <td class='utilisations secondaire'>
29 <!--on compte le nombre d'événemnts liés à cet almanach et on regarde donc s'il est utilisé-->
30 <BOUCLE_combien(spip_almanachs_liens) {id_almanach}></BOUCLE_combien>
31 #SET{utilise,#TOTAL_BOUCLE}
32 [(#TOTAL_BOUCLE|singulier_ou_pluriel{almanach:un_evenement,almanach:plusieurs_evenements})]
33 <//B_combien>
34 </td>
35 <td class='action'>
36 [(#GET{utilise}|=={0}|oui)
37 [(#AUTORISER{supprimer, almanach, #ID_ALMANACH}|oui)
38 [(#BOUTON_ACTION{<:almanach:info_supprimer_almanach:>,#URL_ACTION_AUTEUR{supprimer_almanach,#ID_ALMANACH,#SELF},ajax,'','','(function(me){$(me).parents("tr").animateRemove();return true;})(this)'})]
39 ]
40 ]
41 </td>
42 <td class='date secondaire'>[(#DATE|affdate_jourcourt)]</td>
43 <td class='id'>[(#AUTORISER{modifier,almanach,#ID_ALMANACH}|?{
44 <a href="[(#URL_ECRIRE{almanach_edit,id_almanach=#ID_ALMANACH})]">#ID_ALMANACH</a>,
45 #ID_ALMANACH
46 })]</td>
47 </tr>
48 </BOUCLE_liste_almanachs>
49 </tbody>
50 </table>
51 [<p class='pagination'>(#PAGINATION{prive})</p>]
52 </div>
53 </B_liste_almanachs>[
54 <div class="liste-objets almanachs caption-wrap"><strong class="caption">(#ENV*{sinon,''})</strong></div>
55 ]<//B_liste_almanachs>