template select multiple

This commit is contained in:
Fred Tempez 2023-11-21 11:23:10 +01:00
parent 06f74c1be7
commit 0e9fcf4148

View File

@ -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(
'<select %s>',