2011-03-24 15:46:51 +01:00
|
|
|
{if $freeze}
|
|
|
|
{if $value}
|
|
|
|
{if $values_and_units[$value].unknown}
|
2018-06-11 11:50:17 +02:00
|
|
|
<span class='LSformElement_valueWithUnit_unknown'>{$values_and_units[$value].unknown|escape:"htmlall"}</span>
|
2011-03-24 15:46:51 +01:00
|
|
|
{else}
|
|
|
|
{if $values_and_units[$value].valueWithUnit}
|
2018-06-11 11:50:17 +02:00
|
|
|
{$values_and_units[$value].valueWithUnit|escape:"htmlall"}{$values_and_units[$value].unitLabel|escape:"htmlall"}
|
2011-03-24 15:46:51 +01:00
|
|
|
{else}
|
2018-06-11 11:50:17 +02:00
|
|
|
{$values_and_units[$value].value|escape:"htmlall"}
|
2011-03-24 15:46:51 +01:00
|
|
|
{/if}
|
|
|
|
{/if}
|
|
|
|
{else}
|
2018-06-11 11:50:17 +02:00
|
|
|
{$noValueTxt|escape:"htmlall"}
|
2011-03-24 15:46:51 +01:00
|
|
|
{/if}
|
|
|
|
{else}
|
2011-03-24 16:28:04 +01:00
|
|
|
{if $values_and_units[$value].valueWithUnit || !$values_and_units[$value]}
|
2018-06-11 11:50:17 +02:00
|
|
|
<input name='{$attr_name|escape:"quotes"}_valueWithUnit[]' type=text class='LSformElement_valueWithUnit' value='{$values_and_units[$value].valueWithUnit|escape:"quotes"}'/>
|
|
|
|
<select name='{$attr_name|escape:"quotes"}_unitFact[]' class='LSform LSformElement_valueWithUnit'>
|
2011-03-24 15:46:51 +01:00
|
|
|
{html_options options=$units selected=$values_and_units[$value].unitSill}
|
|
|
|
</select>
|
|
|
|
{else}
|
2018-06-11 11:50:17 +02:00
|
|
|
<input name='{$attr_name|escape:"quotes"}_value[]' type=text class='LSformElement_valueWithUnit' value='{$values_and_units[$value].value|escape:"quotes"}' autocomplete="off"/>
|
2011-03-24 15:46:51 +01:00
|
|
|
{/if}
|
|
|
|
{if $values_and_units[$value].unknown}
|
2018-06-11 11:50:17 +02:00
|
|
|
<span class='LSformElement_valueWithUnit_unknown'>{$values_and_units[$value].unknown|escape:"htmlall"}</span>
|
2011-03-24 15:46:51 +01:00
|
|
|
{/if}
|
|
|
|
{/if}
|