mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 09:59:06 +01:00
LSformElement_supannCompositeAttribute: fix some PHP warnings in template
This commit is contained in:
parent
3161ace3b7
commit
a0fc721776
1 changed files with 3 additions and 3 deletions
|
@ -35,16 +35,16 @@
|
||||||
{/if}
|
{/if}
|
||||||
{elseif $cconf.type=='select'}
|
{elseif $cconf.type=='select'}
|
||||||
<select name='{$attr_name|escape:"htmlall"}__{$c|escape:"htmlall"}[]'>
|
<select name='{$attr_name|escape:"htmlall"}__{$c|escape:"htmlall"}[]'>
|
||||||
{if $parseValue}
|
{if $parseValue && isset($parseValue[$c])}
|
||||||
{html_options options=$cconf.possible_values selected=$parseValue[$c].value}
|
{html_options options=$cconf.possible_values selected=$parseValue[$c].value}
|
||||||
{else}
|
{else}
|
||||||
{html_options options=$cconf.possible_values}
|
{html_options options=$cconf.possible_values}
|
||||||
{/if}
|
{/if}
|
||||||
</select>
|
</select>
|
||||||
{elseif $cconf.type=='date' or $cconf.type=='datetime'}
|
{elseif $cconf.type=='date' or $cconf.type=='datetime'}
|
||||||
<input type='text' class='LSformElement_date' name='{$attr_name|escape:"htmlall"}__{$c|escape:"htmlall"}[]' value='{if $parseValue and $parseValue[$c]}{$parseValue[$c].translated|escape:"htmlall"}{/if}'/>
|
<input type='text' class='LSformElement_date' name='{$attr_name|escape:"htmlall"}__{$c|escape:"htmlall"}[]' value='{if $parseValue and isset($parseValue[$c]) and $parseValue[$c]}{$parseValue[$c].translated|escape:"htmlall"}{/if}'/>
|
||||||
{else}
|
{else}
|
||||||
<input type='text' name='{$attr_name|escape:"htmlall"}__{$c|escape:"htmlall"}[]' value='{if $parseValue and $parseValue[$c]}{$parseValue[$c].value|escape:"htmlall"}{/if}'/>
|
<input type='text' name='{$attr_name|escape:"htmlall"}__{$c|escape:"htmlall"}[]' value='{if $parseValue and isset($parseValue[$c]) and $parseValue[$c]}{$parseValue[$c].value|escape:"htmlall"}{/if}'/>
|
||||||
{/if}
|
{/if}
|
||||||
</p>
|
</p>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
|
|
Loading…
Reference in a new issue