From 0f80fb605aa75e5172487cfeec8c0529a9c51be2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=AFeul=20Rouquette?= <maieul@maieul.net> Date: Fri, 12 Mar 2021 21:20:40 +0100 Subject: [PATCH] Saisie champ : correction de la recherche du label de case lorsqu'on est dans un fielset + ne pas proposer les saisies de type explication + diverses corrections syntaxique. --- saisies/champ.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/saisies/champ.html b/saisies/champ.html index d1c9af4d..68416e64 100644 --- a/saisies/champ.html +++ b/saisies/champ.html @@ -15,12 +15,12 @@ ] [(#SET{tab,[(#ENV{formulaire}|saisies_lister_avec_type{#GET{forcer_type},'',true})]})] ] - <BOUCLE_parcours(POUR){tableau #GET{tab}}> - #SET{nom,#VALEUR|table_valeur{options}|table_valeur{nom}} - #SET{label,#VALEUR|table_valeur{options}|table_valeur{label}|sinon{#VALEUR|table_valeur{options/label_case}}sinon{#GET{nom}}} + <BOUCLE_parcours(DATA){source tableau, #GET{tab}}{valeur/saisie!='explication'}> + #SET{nom,#VALEUR{options/nom}} + #SET{label,#VALEUR{options/label}|sinon{#VALEUR{options/label_case}}|sinon{#GET{nom}}} #SET{enfants,#ARRAY} - <BOUCLE_enfants(POUR){tableau #VALEUR|table_valeur{'saisies'}}> - #SET{enfant,#ARRAY{#VALEUR|table_valeur{options}|table_valeur{nom},#VALEUR|table_valeur{options}|table_valeur{label}}} + <BOUCLE_enfants(DATA){source tableau, #VALEUR{saisies}} {valeur/saisie!='explication'}> + #SET{enfant,#ARRAY{#VALEUR{options/nom},#VALEUR{options/label}|sinon{#VALEUR{options/label_case}|sinon{#VALEUR{options/nom}}}}} #SET{enfants,#GET{enfants}|array_merge{#GET{enfant}}} <BOUCLE_petits_enfants(BOUCLE_enfants) /> </BOUCLE_enfants> -- GitLab