2014-11-20 00:44:41 +01:00
|
|
|
{if $freeze}
|
|
|
|
{if isset($parseValue)}
|
|
|
|
{foreach $components as $c => $cconf}
|
|
|
|
{if !isset($parseValue[$c])}{continue}{/if}
|
|
|
|
<p>
|
|
|
|
<label>{tr msg=$cconf.label} : </label>
|
|
|
|
{if !empty($parseValue[$c].label) and $parseValue[$c].label!='no'}
|
|
|
|
{assign var=clabel value=$parseValue[$c].label}
|
2018-06-11 11:50:17 +02:00
|
|
|
<img src='{img name="supann_label_$clabel"}' alt='[{$clabel|escape:"htmlall"}]' title='{$clabel|escape:"htmlall"}'/>
|
2014-11-20 00:44:41 +01:00
|
|
|
{/if}
|
2018-06-11 11:50:17 +02:00
|
|
|
<span title='{$parseValue[$c].value|escape:"htmlall"}'>{$parseValue[$c].translated|escape:"htmlall"}</span>
|
2014-11-20 00:44:41 +01:00
|
|
|
</p>
|
|
|
|
{/foreach}
|
|
|
|
{else}
|
2018-06-11 11:50:17 +02:00
|
|
|
{$noValueTxt|escape:"htmlall"}
|
2014-11-20 00:44:41 +01:00
|
|
|
{/if}
|
|
|
|
{else}
|
|
|
|
{foreach $components as $c => $cconf}
|
2018-06-11 11:50:17 +02:00
|
|
|
<p data-component='{$c|escape:"quotes"}'>
|
2014-11-20 00:44:41 +01:00
|
|
|
<label>{tr msg=$cconf.label}{if $cconf.required}*{/if} :</label>
|
|
|
|
{if $cconf.type=='table' or $cconf.type=='codeEntite'}
|
2018-06-11 11:50:17 +02:00
|
|
|
<input type='hidden' name='{$attr_name|escape:"quotes"}__{$c|escape:"quotes"}[]' value='{if $parseValue and $parseValue[$c]}{$parseValue[$c].value|escape:"quotes"}{/if}'/>
|
2014-11-20 00:44:41 +01:00
|
|
|
{if $parseValue and !empty($parseValue[$c].label) and $parseValue[$c].label!='no'}
|
|
|
|
{assign var=clabel value=$parseValue[$c].label}
|
2018-06-11 11:50:17 +02:00
|
|
|
<img src='{img name="supann_label_$clabel"}' alt='[{$clabel|escape:"htmlall"}]' title='{$clabel|escape:"htmlall"}'/>
|
2014-11-20 00:44:41 +01:00
|
|
|
{/if}
|
|
|
|
{if $parseValue}
|
2018-06-11 11:50:17 +02:00
|
|
|
<span title='{$parseValue[$c].value|escape:"htmlall"}'>{$parseValue[$c].translated|escape:"htmlall"}</span>
|
2014-11-20 00:44:41 +01:00
|
|
|
{else}
|
2018-06-11 11:50:17 +02:00
|
|
|
<span>{$noValueTxt|escape:"htmlall"}</span>
|
2014-11-20 00:44:41 +01:00
|
|
|
{/if}
|
|
|
|
{else}
|
2018-06-11 11:50:17 +02:00
|
|
|
<input type='text' name='{$attr_name|escape:"quotes"}__{$c|escape:"quotes"}[]' value='{if $parseValue and $parseValue[$c]}{$parseValue[$c].value|escape:"htmlall"}{/if}'/>
|
2014-11-20 00:44:41 +01:00
|
|
|
{/if}
|
|
|
|
</p>
|
|
|
|
{/foreach}
|
|
|
|
{/if}
|