mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +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>
|
<label>{tr msg=$cconf.label} : </label>
|
||||||
<ul>
|
<ul>
|
||||||
{if $cconf.multiple && is_array($parseValue[$c])}
|
{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>
|
<li><span title="{$cval.value}">{$cval.translated}</span></li>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
{else}
|
{else}
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
{else}
|
{else}
|
||||||
{uniqid var="uuid"}
|
{uniqid var="uuid"}
|
||||||
<input type='hidden' name="{$attr_name}__values_uuid[]" value="{$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}">
|
<div data-component="{$c}" data-uuid="{$uuid}">
|
||||||
<label>
|
<label>
|
||||||
{tr msg=$cconf.label}{if $cconf.required}*{/if}
|
{tr msg=$cconf.label}{if $cconf.required}*{/if}
|
||||||
|
@ -59,7 +59,7 @@
|
||||||
{else}
|
{else}
|
||||||
<ul>
|
<ul>
|
||||||
{if $cconf.multiple && is_array($parseValue[$c])}
|
{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>
|
<li><input type='text' name='{$attr_name}__{$c}__{$uuid}[]' value='{$cval.value|escape:"quotes"}'/></li>
|
||||||
{foreachelse}
|
{foreachelse}
|
||||||
<li><input type='text' name='{$attr_name}__{$c}__{$uuid}[]' value=''/></li>
|
<li><input type='text' name='{$attr_name}__{$c}__{$uuid}[]' value=''/></li>
|
||||||
|
|
Loading…
Reference in a new issue