ldapsaisie/public_html/templates/default/LSformElement_labeledValue_field.tpl

22 lines
979 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}
2018-06-15 15:25:25 +02:00
<select name='{$attr_name|escape:"htmlall"}_labels[]' class='LSformElement_labeledValue'>
2018-05-16 19:29:08 +02:00
{html_options options=$labels selected=$parseValue.label}
</select>
2018-06-15 15:25:25 +02:00
<input type="text" name='{$attr_name|escape:"htmlall"}_values[]' class='LSformElement_labeledValue' value='{if $parseValue.value}{$parseValue.value|escape:'htmlall'}{else}{$parseValue.raw_value|escape:'htmlall'}{/if}'/>
2018-05-16 19:29:08 +02:00
{/if}