forked from ZwiiCMS-Team/ZwiiCampus
template select multiple
This commit is contained in:
parent
06f74c1be7
commit
0e9fcf4148
@ -684,7 +684,8 @@ class template
|
|||||||
'label' => '',
|
'label' => '',
|
||||||
'name' => $nameId,
|
'name' => $nameId,
|
||||||
'selected' => '',
|
'selected' => '',
|
||||||
'font' => []
|
'font' => [],
|
||||||
|
'multiple' => false
|
||||||
], $attributes);
|
], $attributes);
|
||||||
// Traduction de l'aide et de l'étiquette
|
// Traduction de l'aide et de l'étiquette
|
||||||
$attributes['label'] = helper::translate($attributes['label']);
|
$attributes['label'] = helper::translate($attributes['label']);
|
||||||
@ -713,6 +714,11 @@ class template
|
|||||||
$attributes['class'] .= ' notice';
|
$attributes['class'] .= ' notice';
|
||||||
}
|
}
|
||||||
$html .= self::notice($attributes['id'], $notice);
|
$html .= self::notice($attributes['id'], $notice);
|
||||||
|
// Attribut multiple
|
||||||
|
if ($attributes['multiple'] === true) {
|
||||||
|
echo "ppp";
|
||||||
|
$attributes['multiple'] = 'multiple';
|
||||||
|
}
|
||||||
// Début sélection
|
// Début sélection
|
||||||
$html .= sprintf(
|
$html .= sprintf(
|
||||||
'<select %s>',
|
'<select %s>',
|
||||||
|
Loading…
Reference in New Issue
Block a user