[PLUGINS] +set de base
[lhc/web/www.git] / www / plugins / formidable_1_0 / prive / objets / liste / formulaires_reponses.html
diff --git a/www/plugins/formidable_1_0/prive/objets/liste/formulaires_reponses.html b/www/plugins/formidable_1_0/prive/objets/liste/formulaires_reponses.html
new file mode 100644 (file)
index 0000000..9d310c0
--- /dev/null
@@ -0,0 +1,48 @@
+[(#SET{defaut_tri,#ARRAY{
+       date,-1,
+       titre,1,
+       id_formulaires_reponse,1
+}})
+]<B_reponses>
+[(#BOITE_OUVRIR{'','simple'})]
+#ANCRE_PAGINATION
+<div class="liste-objets formulaires_reponses">
+<table class="liste spip">
+[<caption><strong class="caption">(#ENV*{titre})</strong></caption>]
+       <thead>
+               <tr class="first_row">
+                       <th class="statut" scope='col'>[(#TRI{statut,<span>#</span>,ajax})]</th>
+                       <th class="date" scope='col'>[(#TRI{date,<:date:>,ajax})]</th>
+                       <th class="auteur" scope='col'>[(#TRI{id_auteur,<:formidable:reponses_auteur:>,ajax})]</th>
+                       <th class="ip" scope='col'>[(#TRI{ip,<:formidable:reponses_ip:>,ajax})]</th>
+                       <th class="action" scope='col'></th>
+               </tr>
+       </thead>
+       <tbody>
+       <BOUCLE_reponses(FORMULAIRES_REPONSES){id_formulaire}{id_auteur?}{statut?}{tri #ENV{order,date},#GET{defaut_tri}}{pagination #ENV{nb,10}}>
+               <tr class="[(#COMPTEUR_BOUCLE|alterner{row_odd,row_even})]">
+                       <td class="statut">[(#ID_FORMULAIRES_REPONSE|puce_changement_statut{#STATUT, #ID_FORMULAIRE, formulaires_reponse})]</td>
+                       <td class="date">[(#DATE|affdate_jourcourt|concat{#DATE|affdate{", H:i"}})]</td>
+                       <td class="auteur">
+                               <BOUCLE_auteur(AUTEURS){id_auteur}{tout}>
+                               <a href="[(#ID_AUTEUR|generer_url_entite{auteur})]">#NOM</a>
+                               </BOUCLE_auteur>
+                               <:formidable:reponses_anonyme:>
+                               <//B_auteur>
+                       </td>
+                       <td class="ip">#IP</td>
+                       <td class="action">
+                               <a href="[(#URL_ECRIRE{formulaires_reponse}|parametre_url{id_formulaires_reponse,#ID_FORMULAIRES_REPONSE})]" title="<:formidable:reponses_voir_detail:>">
+                                       <img src="#CHEMIN{images/formulaire-reponse-24.png}" alt="<:formidable:reponses_voir_detail:>" />
+                               </a>
+                       </td>
+               </tr>
+       </BOUCLE_reponses>
+       </tbody>
+</table>
+[<p class="pagination">(#PAGINATION{prive})</p>]
+</div>
+#BOITE_FERMER
+</B_reponses>[
+<div class="liste-objets formulaires_reponses"><strong class="caption">(#ENV*{sinon,''})</strong></div>
+]<//B_reponses>