From: Ludovic CHEVALIER Date: Tue, 9 Feb 2021 14:41:06 +0000 (+0100) Subject: [SKEL] +surcharge des notifications du plugin reservation. Possibilité X-Git-Tag: v3.3.0 X-Git-Url: http://git.cyclocoop.org/?p=lhc%2Fweb%2Fwww.git;a=commitdiff_plain;h=refs%2Ftags%2Fv3.3.0 [SKEL] +surcharge des notifications du plugin reservation. Possibilité d'ajouter un lien de visio-conférence quand on accepte une inscription --- diff --git a/www/plugins/skel_lhc/inclure/reservation.html b/www/plugins/skel_lhc/inclure/reservation.html new file mode 100644 index 00000000..ee6a6424 --- /dev/null +++ b/www/plugins/skel_lhc/inclure/reservation.html @@ -0,0 +1,94 @@ +[(#REM) On peut donner soit un id_reservation, soit un tableau contenant la reservation] + + [(#REM) Si on trouve une reservation on prend ça comme base ] + #SET{details, #ARRAY} #SET{total,0} + + + #SET{urlvisio,#URLVISIO} + + #SET{details, #GET{details}|push{ + #ARRAY{ + descriptif,#QUANTITE|>{1}|?{#QUANTITE×}|concat{#DESCRIPTIF*|extraire_multi|supprimer_numero}, + quantite, #QUANTITE, + prix_ht, #PRIX_HT, + statut,#STATUT, + urlvisio,#GET{urlvisio} + } + } + } + + [(#SET{total_ht,[(#GET{total_ht}|plus{#PRIX_HT*})]})] + [(#SET{total,[(#GET{total}|plus{#PRIX*})]})] + + #SET{reservation,#ARRAY{ + details, #GET**{details} + } + } + +#SET{reservation,#ENV{reservation}} + + +[ (#REM) Affichage du detail dans une table si format html demande ] + + [(#REM) Version texte ] + + [[ + - (#VALEUR|table_valeur{descriptif}|trim|supprimer_tags)] : + [(#VALEUR|table_valeur{prix}|appliquer_filtre{prix_formater,[(#VALEUR|table_valeur{prix})]})] + + + [<:prix:label_total_ttc:> : #GET{total}|appliquer_filtre{prix_formater})] + + + + + + [(#GET{total}|floatval|>{0.00}|oui) + ] + + + + + + + + [(#GET{total}|floatval|>{0.00}|oui) + + ] + + + + + + + + [(#GET{total}|floatval|>{0.00}|oui) + + [(#GET{total}|!={#GET{total_ht}}|oui) + + + + + + + #SET{taxe, #GET{total}|moins{#GET{total_ht}}} + + + + ] + + + + + + + ] +
<:reservation:designation:><:reservation:montant:><:reservation:label_statut:>
[(#VALEUR{descriptif})]#VALEUR{prix_ht} + [(#VAL{reservation}|re_statut_titre{#VALEUR{statut}})] +
+ + [<:skel_lhc:lien_visioconf:>] + +
[(#PLUGIN{prix}|?{<:prix:label_total_ht:>,<:reservation:total: <:reservations_detail:label_prix_ht:>})][(#GET{total_ht}|appliquer_filtre{prix_formater,#GET{total_ht}})]
<:reservations_detail:label_taxes:>[(#GET{taxe}|appliquer_filtre{prix_formater,#GET{taxe}})]
[(#PLUGIN{prix}|?{<:prix:label_total_ttc:>,<:reservation:total:>})][(#GET{total}|appliquer_filtre{prix_formater,#GET{total}})]
+ + diff --git a/www/plugins/skel_lhc/lang/skel_lhc_fr.php b/www/plugins/skel_lhc/lang/skel_lhc_fr.php index d0a086e9..bd5e1345 100644 --- a/www/plugins/skel_lhc/lang/skel_lhc_fr.php +++ b/www/plugins/skel_lhc/lang/skel_lhc_fr.php @@ -6,6 +6,8 @@ $GLOBALS[$GLOBALS['idx_lang']] = array( // A 'actualites_ateliers' => 'Actualités des ateliers', + // L + 'lien_visioconf' => 'Lien de visioconférence', ); ?> diff --git a/www/plugins/skel_lhc/paquet.xml b/www/plugins/skel_lhc/paquet.xml index 3966ee87..d9586bf8 100755 --- a/www/plugins/skel_lhc/paquet.xml +++ b/www/plugins/skel_lhc/paquet.xml @@ -1,7 +1,7 @@ 2011-2021 +