feat: ajout pipeline pour filtrer le tableau de pdf

This commit is contained in:
Christophe 2023-11-09 15:21:53 +01:00
parent 999663fa9f
commit 64bfe8bc78
3 changed files with 10 additions and 1 deletions

View file

@ -133,7 +133,7 @@
<BOUCLE_options(DATA){source tableau, #VALEUR|table_valeur{contexte}}> <BOUCLE_options(DATA){source tableau, #VALEUR|table_valeur{contexte}}>
[(#SET{url_pdf,[(#GET{url_pdf}|parametre_url{#CLE,#VALEUR})]})] [(#SET{url_pdf,[(#GET{url_pdf}|parametre_url{#CLE,#VALEUR})]})]
</BOUCLE_options> </BOUCLE_options>
<label for="#GET{name}_#COMPTEUR_BOUCLE">[(#VALEUR|table_valeur{nom})] : <a href="#GET{url_pdf}">voir le PDF</a></label> <label for="#GET{name}_#COMPTEUR_BOUCLE">[(#VALEUR|table_valeur{nom}|html_entity_decode)] : <a href="#GET{url_pdf}">voir le PDF</a></label>
</div> </div>
</BOUCLE_pdf> </BOUCLE_pdf>
</div> </div>

View file

@ -75,6 +75,13 @@ function formulaires_gamumail_charger_dist($slug, $destinataires = 0, $Tclient =
} }
} }
$TFichierPdf = pipeline('gamumail_filtrer_tPDF', [
'args' => [
'TFichierPdf' => $TFichierPdf
],
'data' => $TFichierPdf
]
);
$gamuMail = []; $gamuMail = [];
if (!empty($slug)) { if (!empty($slug)) {
@ -88,6 +95,7 @@ function formulaires_gamumail_charger_dist($slug, $destinataires = 0, $Tclient =
$texte = extraire_multi($texte, $options['lang']); $texte = extraire_multi($texte, $options['lang']);
$sujet = extraire_multi($sujet, $options['lang']); $sujet = extraire_multi($sujet, $options['lang']);
} }
$valeurs = array( $valeurs = array(
"slug" => $slug, "slug" => $slug,
'sujet' => $sujet, 'sujet' => $sujet,

View file

@ -22,6 +22,7 @@
<pipeline nom="remplacements_slug" action='' /> <pipeline nom="remplacements_slug" action='' />
<pipeline nom="post_gamumail_ok" action='' /> <pipeline nom="post_gamumail_ok" action='' />
<pipeline nom="tpdf_charger_contexte" action='' /> <pipeline nom="tpdf_charger_contexte" action='' />
<pipeline nom="gamumail_filtrer_tPDF" action='' />
<pipeline nom="autoriser" inclure="gamumail_autorisations.php" /> <pipeline nom="autoriser" inclure="gamumail_autorisations.php" />