restart thelia form type

This commit is contained in:
Etienne Roudeix
2013-10-16 16:20:21 +02:00
parent dde7f15f42
commit 60fd54d5c3
6 changed files with 47 additions and 8 deletions

View File

@@ -93,12 +93,12 @@
{if $formType == 'choice'}
<select name="{$name}">
{foreach $choices as $choice}
<option value="{$choice->value}">{$choice->label}</option>
<option value="{$choice->value}" {if $REQUIREMENTS.$label == $choice->value}selected="selected" {/if}>{$choice->label}</option>
{/foreach}
</select>
{/if}
{if $formType == 'text'}
<input type="text" name="{$name}" value="">
<input type="text" name="{$name}" value="{$REQUIREMENTS.$label}">
{/if}
</div>
{/form_tagged_fields}