ldapsaisie/src/templates/default/LSformElement_labeledValue_field.tpl
Benjamin Renard 7098b3ee79 Massive change of files organisation to move all files outside web-root
The web-root directory now contains URL rewrite stuff. All PHP & static files are
in root src directory and are served via LSurl routes.
2020-05-06 12:17:35 +02:00

21 lines
979 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:"htmlall"}_labels[]' class='LSformElement_labeledValue'>
{html_options options=$labels selected=$parseValue.label}
</select>
<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}'/>
{/if}