ldapsaisie/public_html/templates/default/LSformElement_labeledValue_field.tpl

22 lines
975 B
Smarty
Raw Normal View History

2018-05-16 19:29:08 +02:00
{if $freeze}
{if isset($parseValue)}
{if $parseValue.label}
{if $parseValue.translated_label}
<span title='[{$parseValue.label|escape:'htmlall'}]'>{$parseValue.translated_label|escape:"htmlall"}</span>
2018-05-16 19:29:08 +02:00
{else}
<span>{$parseValue.label|escape:"htmlall"} {$unrecognizedLabelTxt|escape:"htmlall"}</span>
2018-05-16 19:29:08 +02:00
{/if}
: <span>{$parseValue.value|escape:"htmlall"}</span>
2018-05-16 19:29:08 +02:00
{else}
<span>{$parseValue.raw_value|escape:"htmlall"}</span> {$unrecognizedValueTxt|escape:"htmlall"}
2018-05-16 19:29:08 +02:00
{/if}
{else}
{$noValueTxt|escape:"htmlall"}
2018-05-16 19:29:08 +02:00
{/if}
{else}
<select name='{$attr_name|escape:"quotes"}_labels[]' class='LSformElement_labeledValue'>
2018-05-16 19:29:08 +02:00
{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}'/>
2018-05-16 19:29:08 +02:00
{/if}