Coupons conditions HTML fragments
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<div id="condition-add-operators-values" class="form-group">
|
||||
<label for="operator">{$label}</label>
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
{$operatorSelectHtml nofilter}
|
||||
</div>
|
||||
<div class="input-group col-lg-6">
|
||||
<input type="text" class="form-control" id="{$inputKey}-value" name="{$inputKey}[value]" value="{$currentValue}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,11 @@
|
||||
<div id="condition-add-operators-values" class="form-group">
|
||||
<label for="operator">{$label}</label>
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
{$operatorSelectHtml nofilter}
|
||||
</div>
|
||||
<div class="input-group col-lg-6">
|
||||
{$quantitySelectHtml nofilter}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,20 @@
|
||||
<div class="form-group">
|
||||
|
||||
<label for="operator">{$label}</label>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
{$operatorSelectHtml nofilter}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4">
|
||||
<input type="text" class="form-control" id="{$field_1_name}-value" name="{$field_1_name}[value]" value="{$value}" placeholder="{intl l='Amount'}">
|
||||
</div>
|
||||
|
||||
<div class="col-lg-2">
|
||||
<input type="hidden" id="{$field_2_name}-operator" name="{$field_2_name}[operator]" value="=="/>
|
||||
{$currencySelectHtml nofilter}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,5 @@
|
||||
<select class="form-control" id="{$inputKey}-operator" name="{$inputKey}[operator]">
|
||||
{foreach $operators as $key => $operator}
|
||||
<option value="{$key}"{if $key == $value}selected="selected"{/if}>{$operator}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
@@ -0,0 +1,5 @@
|
||||
<select class="form-control" id="{$inputKey}-value" name="{$inputKey}[value]">
|
||||
{foreach $currencies as $key => $currency}
|
||||
<option value="{$key}"{if $key == $value}selected="selected"{/if}>{$currency}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
@@ -0,0 +1,9 @@
|
||||
<input type="number" value="{$value}" class="form-control" id="{$inputKey}-value" name="{$inputKey}[value]" placeholder="Enter quantity" />
|
||||
{* Use a text field instead
|
||||
<select class="form-control" id="{$inputKey}-value" name="{$inputKey}[value]">
|
||||
{for $index=$min to $max}
|
||||
<option value="{$index}" {if $index == $value}selected="selected"{/if}>{$index}</option>
|
||||
{/for}
|
||||
</select>
|
||||
*}
|
||||
|
||||
Reference in New Issue
Block a user