LSformElement::supannLabeledValue : Fixed display problems
authorBenjamin Renard <brenard@easter-eggs.com>
Wed, 12 Sep 2012 12:09:18 +0000 (14:09 +0200)
committerBenjamin Renard <brenard@easter-eggs.com>
Wed, 12 Sep 2012 12:09:18 +0000 (14:09 +0200)
public_html/templates/default/LSformElement_supannLabeledValue.tpl
public_html/templates/default/LSformElement_supannLabeledValue_field.tpl

index 076f606..a24bdcd 100644 (file)
@@ -6,6 +6,7 @@
       <li>{include file=$fieldTemplate}</li>
     {foreachelse}
       {assign var=value value=""}
+      {assign var=parseValue value=""}
       <li>{include file=$fieldTemplate}</li>
     {/foreach}
   {else}
@@ -13,6 +14,7 @@
       <li>{include file=$fieldTemplate}</li>
     {foreachelse}
       {assign var=value value=""} 
+      {assign var=parseValue value=""}
       <li>{include file=$fieldTemplate}</li>
     {/foreach}
   {/if}
index 6f2d243..c7d2ebf 100644 (file)
@@ -9,5 +9,9 @@
     {$noValueTxt}
   {/if}
 {else}
-<input type='text' name='{$attr_name}[]' class='LSformElement_text' value="{$value}" autocomplete="off"/>
+{if $parseValue}
+  <input type='text' name='{$attr_name}[]' class='LSformElement_text' value="{$parseValue.value}" autocomplete="off"/>
+{else}
+  <input type='text' name='{$attr_name}[]' class='LSformElement_text' value="{$value}" autocomplete="off"/>
+{/if}
 {/if}