template select

This commit is contained in:
Fred Tempez 2023-11-21 11:56:37 +01:00
parent b23b1f2e06
commit 3cda662220
1 changed files with 8 additions and 1 deletions

View File

@ -686,7 +686,8 @@ class template
'label' => '',
'name' => $nameId,
'selected' => '',
'font' => []
'font' => [],
'multiple' => ''
], $attributes);
// Traduction de l'aide et de l'étiquette
$attributes['label'] = helper::translate($attributes['label']);
@ -715,6 +716,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>',
@ -744,6 +750,7 @@ class template
return $html;
}
/**
* Crée une bulle de dialogue
* @param string $text Texte de la bulle