From 0e9fcf4148e786dc3e4b73b83d74d215b75d1387 Mon Sep 17 00:00:00 2001 From: F TEMPEZ Date: Tue, 21 Nov 2023 11:23:10 +0100 Subject: [PATCH] template select multiple --- core/class/template.class.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/class/template.class.php b/core/class/template.class.php index 68dbfb3..9ce3ca4 100644 --- a/core/class/template.class.php +++ b/core/class/template.class.php @@ -684,7 +684,8 @@ class template 'label' => '', 'name' => $nameId, 'selected' => '', - 'font' => [] + 'font' => [], + 'multiple' => false ], $attributes); // Traduction de l'aide et de l'étiquette $attributes['label'] = helper::translate($attributes['label']); @@ -713,6 +714,11 @@ class template $attributes['class'] .= ' notice'; } $html .= self::notice($attributes['id'], $notice); + // Attribut multiple + if ($attributes['multiple'] === true) { + echo "ppp"; + $attributes['multiple'] = 'multiple'; + } // Début sélection $html .= sprintf( '