ldapsaisie/public_html/templates/default/LSformElement_labeledValue_field.tpl
2018-06-11 11:50:17 +02:00

21 lines
975 B
Smarty

{if $freeze}
{if isset($parseValue)}
{if $parseValue.label}
{if $parseValue.translated_label}
<span title='[{$parseValue.label|escape:'htmlall'}]'>{$parseValue.translated_label|escape:"htmlall"}</span>
{else}
<span>{$parseValue.label|escape:"htmlall"} {$unrecognizedLabelTxt|escape:"htmlall"}</span>
{/if}
: <span>{$parseValue.value|escape:"htmlall"}</span>
{else}
<span>{$parseValue.raw_value|escape:"htmlall"}</span> {$unrecognizedValueTxt|escape:"htmlall"}
{/if}
{else}
{$noValueTxt|escape:"htmlall"}
{/if}
{else}
<select name='{$attr_name|escape:"quotes"}_labels[]' class='LSformElement_labeledValue'>
{html_options options=$labels selected=$parseValue.label}
</select>
<input type="text" name='{$attr_name|escape:"quotes"}_values[]' class='LSformElement_labeledValue' value='{if $parseValue.value}{$parseValue.value|escape:'quotes'}{else}{$parseValue.raw_value|escape:'quotes'}{/if}'/>
{/if}