mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 08:19:05 +01:00
LSattr_html :: jsonCompositeAttribute : fix foreach syntax for retro-compat with old Smarty versions
This commit is contained in:
parent
d06593cf14
commit
5027792342
1 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@
|
|||
<label>{tr msg=$cconf.label} : </label>
|
||||
<ul>
|
||||
{if $cconf.multiple && is_array($parseValue[$c])}
|
||||
{foreach from=$parseValue[$c] item=$cval}
|
||||
{foreach from=$parseValue[$c] item=cval}
|
||||
<li><span title="{$cval.value}">{$cval.translated}</span></li>
|
||||
{/foreach}
|
||||
{else}
|
||||
|
@ -21,7 +21,7 @@
|
|||
{else}
|
||||
{uniqid var="uuid"}
|
||||
<input type='hidden' name="{$attr_name}__values_uuid[]" value="{$uuid}" />
|
||||
{foreach from=$components key=$c item=$cconf name=components}
|
||||
{foreach from=$components key=c item=cconf name=components}
|
||||
<div data-component="{$c}" data-uuid="{$uuid}">
|
||||
<label>
|
||||
{tr msg=$cconf.label}{if $cconf.required}*{/if}
|
||||
|
@ -59,7 +59,7 @@
|
|||
{else}
|
||||
<ul>
|
||||
{if $cconf.multiple && is_array($parseValue[$c])}
|
||||
{foreach from=$parseValue[$c] item=$cval}
|
||||
{foreach from=$parseValue[$c] item=cval}
|
||||
<li><input type='text' name='{$attr_name}__{$c}__{$uuid}[]' value='{$cval.value|escape:"quotes"}'/></li>
|
||||
{foreachelse}
|
||||
<li><input type='text' name='{$attr_name}__{$c}__{$uuid}[]' value=''/></li>
|
||||
|
|
Loading…
Reference in a new issue