HTML fragments in templates instead of hardcoded

This commit is contained in:
Franck Allimant
2014-05-02 20:52:59 +02:00
parent fe93bfacec
commit 500a945f98
4 changed files with 33 additions and 12 deletions

View File

@@ -0,0 +1,9 @@
<div class="form-group input-{$fieldName}">
<label for="{$fieldName}" class="control-label">{$label}</label>
<div class="input-group">
<input id="{$fieldName}" type="money" class="form-control" name="thelia_coupon_creation[{$fieldName}]" value="{$value}" placeholder="14.50">
{loop type="currency" name="get-symbol" default_only="true"}
<div class="input-group-addon">{$SYMBOL}</div>
{/loop}
</div>
</div>

View File

@@ -0,0 +1,8 @@
<input type="hidden" name="thelia_coupon_creation[{$typeKey}]" value="0"/>
<div class="form-group input-{$fieldId}">
<label for="{$fieldId}" class="control-label">{$label}</label>
<div class="input-group">
<input id="{$fieldId}" class="form-control" name="[$fieldName][{$fieldId}]" type="text" value="{$value}"/>
<div class="input-group-addon">%</div>
</div>
</div>