mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
LSformElement : add no_value_label parameter
This commit is contained in:
parent
6d9688ac9b
commit
1dbf87cf0a
2 changed files with 9 additions and 1 deletions
|
@ -27,6 +27,7 @@
|
|||
'html_options' => array(
|
||||
// Options HTML liées au type HTML de l'attribut
|
||||
),
|
||||
'no_value_label' => '[No set value label]',
|
||||
'multiple' => 0,
|
||||
'required' => 1,
|
||||
'generate_function' => 'fonction1',
|
||||
|
@ -124,6 +125,13 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>no_value_label</term>
|
||||
<listitem>
|
||||
<simpara>Label affiché lorsque l'attribut n'a pas de valeur (facultatif).</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>multiple</term>
|
||||
<listitem>
|
||||
|
|
|
@ -286,7 +286,7 @@ class LSformElement {
|
|||
'value' => '',
|
||||
'values' => $this -> values,
|
||||
'attr_name' => $this -> name,
|
||||
'noValueTxt' => _('No set value'),
|
||||
'noValueTxt' => ( (isset($this -> params['no_value_label']))? __($this -> params['no_value_label']):_('No set value') ),
|
||||
'fieldTemplate' => $this -> fieldTemplate
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue