mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-26 11:52:59 +01:00
LSattribute : add help_info_in_view parameter
This commit is contained in:
parent
5fa1e578c5
commit
10400e9052
3 changed files with 13 additions and 1 deletions
|
@ -19,6 +19,7 @@
|
||||||
'label' => '[label de l'attr1',
|
'label' => '[label de l'attr1',
|
||||||
'displayAttrName' => '[booleen]',
|
'displayAttrName' => '[booleen]',
|
||||||
'help_info' => '[Message d'aide sur l'attribut attr1]',
|
'help_info' => '[Message d'aide sur l'attribut attr1]',
|
||||||
|
'help_info_in_view' => '[booleen]',
|
||||||
'ldap_type' => 'ldaptype1',
|
'ldap_type' => 'ldaptype1',
|
||||||
'ldap_options' => array(
|
'ldap_options' => array(
|
||||||
// Options LDAP liées au type LDAP de l'attribut
|
// Options LDAP liées au type LDAP de l'attribut
|
||||||
|
@ -91,6 +92,16 @@
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>help_info_in_view</term>
|
||||||
|
<listitem>
|
||||||
|
<simpara>Booléen définissant si le message d'aide doit être affiché sur la vue
|
||||||
|
de visualisation de l'objet.</simpara>
|
||||||
|
<simpara>Valeurs possibles : <emphasis>0</emphasis> ou <emphasis>1</emphasis></simpara>
|
||||||
|
<simpara>Valeur par défaut : <emphasis>0</emphasis></simpara>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>ldap_type</term>
|
<term>ldap_type</term>
|
||||||
<listitem>
|
<listitem>
|
||||||
|
|
|
@ -198,6 +198,7 @@ class LSformElement {
|
||||||
}
|
}
|
||||||
if (!empty($help_infos))
|
if (!empty($help_infos))
|
||||||
$return['help_info'] = implode(' - ', $help_infos);
|
$return['help_info'] = implode(' - ', $help_infos);
|
||||||
|
$return['help_info_in_view'] = $this -> getParam('help_info_in_view', false, 'bool');
|
||||||
|
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
{foreach from=$tab.args item=arg}
|
{foreach from=$tab.args item=arg}
|
||||||
{if $LSform_fields[$arg]}
|
{if $LSform_fields[$arg]}
|
||||||
{assign var='field' value='oui'}
|
{assign var='field' value='oui'}
|
||||||
<dt class='LSform'>{$LSform_fields[$arg].label|escape:"htmlall"}</dt>
|
<dt class='LSform'>{$LSform_fields[$arg].label|escape:"htmlall"}{if $LSform_fields[$arg].help_info_in_view && $LSform_fields[$arg].help_info!=""} <img class='LStips' src="{img name='help'}" alt='?' title='{$LSform_fields[$arg].help_info|escape:'htmlall'}'/>{/if}</dt>
|
||||||
<dd class='LSform'>{$LSform_fields[$arg].html}</dd>
|
<dd class='LSform'>{$LSform_fields[$arg].html}</dd>
|
||||||
{/if}
|
{/if}
|
||||||
{/foreach}
|
{/foreach}
|
||||||
|
|
Loading…
Reference in a new issue