mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-22 08:23:49 +01:00
LSsearch : add cssStyle extraDisplayedColumns's parameter
This commit is contained in:
parent
3f350d331c
commit
24aa3412a7
2 changed files with 13 additions and 2 deletions
|
@ -52,6 +52,7 @@ configuration des &LSobjects;, dans la variable <varname>LSsearch</varname>
|
|||
'[LSformat 2]'
|
||||
),
|
||||
'formaterLSformat' => '[LSformat]',
|
||||
'cssStyle' => '[CSS style]',
|
||||
)
|
||||
),
|
||||
'customActions' => array (
|
||||
|
@ -282,6 +283,16 @@ contexte dans lequel cette recherche est effectuée.</para>
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>cssStyle</term>
|
||||
<listitem>
|
||||
<simpara>Ce paramètre permet de définir un style CSS personnalisé pour la colonne.
|
||||
S'il est défini, le contenu de ce paramètre sera ajouté en tant qu'attribut <literal>
|
||||
style</literal> des balises <literal>th</literal> et <literal>td</literal> de la
|
||||
colone.</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
</variablelist>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
{/if}
|
||||
{if $LSsearch->extraDisplayedColumns}
|
||||
{foreach from=$LSsearch->extraDisplayedColumns item=conf key=cid}
|
||||
<th class='LSobject-list'>
|
||||
<th class='LSobject-list'{if $conf.cssStyle} style="{$conf.cssStyle}"{/if}>
|
||||
{if $LSsearch->sort}
|
||||
<a href='view.php?LSobject={$LSsearch->LSobject}&sortBy={$cid}&nocache={$smarty.now}'>
|
||||
{if $LSsearch->sortBy == $cid}
|
||||
|
@ -96,7 +96,7 @@
|
|||
{if $LSsearch->displaySubDn}<td class='LSobject-list'>{$object->subDn}</td>{/if}
|
||||
{if $LSsearch->extraDisplayedColumns}
|
||||
{foreach from=$LSsearch->extraDisplayedColumns item=conf key=cid}
|
||||
<td class='LSobject-list'>{$object->$cid}</th>
|
||||
<td class='LSobject-list'{if $conf.cssStyle} style="{$conf.cssStyle}"{/if}>{$object->$cid}</td>
|
||||
{/foreach}
|
||||
{/if}
|
||||
<td class='LSobject-list LSobject-list-actions'>
|
||||
|
|
Loading…
Reference in a new issue