Changeset 90555 in spip-zone


Ignore:
Timestamp:
Jun 27, 2015, 11:08:10 AM (6 years ago)
Author:
abelass@…
Message:

Mieux afficher les réservations liées

Location:
_plugins_/reservation_evenement/trunk/prive/objets/liste
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/reservation_evenement/trunk/prive/objets/liste/inc-reservations_reservations.html

    r90232 r90555  
    77#SET{chaine_defaut,reservation:type_lien}<B_liste_reservations>
    88#ANCRE_PAGINATION
     9<BOUCLE_liste_reservations_total(RESERVATIONS){id_auteur?}{id_mot?}{id_auteur?}{where?}{statut ?IN #ENV{statut}}{recherche?}{si #ENV{id_reservation_source}|>={0}|oui}>
     10</BOUCLE_liste_reservations_total>
     11#SET{grand_total,#GRAND_TOTAL}
     12</B_liste_reservations_total>
    913<div class="liste-objets reservations">
    10 <table class='spip liste'>
    11     [<caption><strong class="caption">(#ENV*{titre,#GRAND_TOTAL|singulier_ou_pluriel{reservation:info_1_reservation,reservation:info_nb_reservations}})</strong></caption>]
     14<table class='spip liste'>[(#GET{grand_total}|non)#SET{grand_total,#GRAND_TOTAL}]
     15    [<caption><strong class="caption">(#ENV*{titre,#GET{grand_total}|singulier_ou_pluriel{reservation:info_1_reservation,reservation:info_nb_reservations}})</strong></caption>]
    1216    <thead>
    1317        <tr class='first_row'>
     
    2125    </thead>
    2226    <tbody>
    23     <BOUCLE_liste_reservations(RESERVATIONS){id_auteur?}{id_mot?}{id_auteur?}{where?}{statut ?IN #ENV{statut}}{recherche?}{tri #ENV{par,num reference},#GET{defaut_tri}}{pagination #ENV{nb,10}}>
    24         <tr class='[(#COMPTEUR_BOUCLE|alterner{row_odd,row_even})]'>
     27    <BOUCLE_liste_reservations(RESERVATIONS){id_reservation_source ?=#ENV{id_reservation_source}}{id_auteur?}{id_mot?}{id_auteur?}{where?}{statut ?IN #ENV{statut}}{recherche?}{tri #ENV{par,num reference},#GET{defaut_tri}}{pagination #ENV{nb,10}}>
     28        <tr>
    2529            <td class='picto'>[(#CHEMIN_IMAGE{reservation-16.png}|balise_img)]</td>
    2630            <td class='statut'>[(#STATUT|puce_statut{reservation,#ID_RESERVATION})]</td>
     
    5256            })]</td>
    5357        </tr>
     58        [(#ENV{id_reservation_source}|=={0}|oui)
     59          <INCLURE{fond=prive/objets/liste/inc-reservations_reservations_liees,env,id_reservation_source=#ID_RESERVATION}/>
     60        ]
    5461    </BOUCLE_liste_reservations>
    5562    </tbody>
  • _plugins_/reservation_evenement/trunk/prive/objets/liste/reservations.html

    r79406 r90555  
    11#SET{id_evenement,#ARRAY}
    22#SET{date_debut,#ENV{date_debut,#ENV{date}}|affdate{Y-m-d 00:00:00}|agenda_dateplus{-1}}
     3#SET{id_reservation_source,''}
     4[(#ENV{recherche}|non)#SET{id_reservation_source,0}]
    35
    4 
    5 <INCLURE{fond=prive/objets/liste/inc-reservations_reservations,env,titre='',statut=#LISTE{ attente,attente_paiement,accepte,encours,refuse}}/>
     6<INCLURE{fond=prive/objets/liste/inc-reservations_reservations,env,titre='',statut=#LISTE{ attente,attente_paiement,accepte,encours,refuse},id_reservation_source=#GET{id_reservation_source}}/>
    67
    78<BOUCLE_liste_reservations(RESERVATIONS){id_auteur?}{id_mot?}{id_auteur?}{where?}{statut=poubelle}{recherche?}{0,1}>
     
    1213
    1314    <a class="ajax"  href="[(#SELF|parametre_url{afficher,''})]"><:reservation:icone_cacher:></a>
    14         [(#INCLURE{fond=prive/objets/liste/inc-reservations_reservations,env,titre='',statut=#LISTE{poubelle}})]
     15        [(#INCLURE{fond=prive/objets/liste/inc-reservations_reservations,env,titre='',statut=#LISTE{poubelle},id_reservation_source=#GET{id_reservation_source}})]
    1516    }
    1617    )]
Note: See TracChangeset for help on using the changeset viewer.