Inital commit
This commit is contained in:
@@ -7,9 +7,9 @@
|
||||
<div class="form-group">
|
||||
<label for="{$categories_field_name}-value">{intl l="The selected categories :"}</label>
|
||||
<select required multiple size="5" class="form-control" id="{$categories_field_name}-value" name="{$categories_field_name}[value][]">
|
||||
{loop type="category-tree" category=0 name="list-of-categories" backend_context=1}
|
||||
<option style="padding-left: {$LEVEL * 20}px" value="{$ID}" {if in_array($ID, $values)}selected="selected"{/if}>{$TITLE}</option>
|
||||
{loop type="category-tree" category=0 name="list-of-categories" backend_context=1 visible="*"}
|
||||
<option value="{$ID}" {if in_array($ID, $values)}selected="selected"{/if}>{option_offset l=$LEVEL label={$TITLE}}</option>
|
||||
{/loop}
|
||||
</select>
|
||||
<span class="label-help-block">{intl l='Use Ctrl+click to select (or deselect) more that one category'}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<div class="form-group">
|
||||
<label for="{$products_field_name}-value">{intl l="The selected products :"}</label>
|
||||
<select required multiple size="5" class="form-control" id="{$products_field_name}-value" name="{$products_field_name}[value][]">
|
||||
{loop type="product" name="list-of-products" order="alpha" backend_context=1}
|
||||
{loop type="product" name="list-of-products" order="alpha" backend_context=1 return_url=false}
|
||||
<option value="{$ID}" {if in_array($ID, $values)}selected="selected"{/if}>{$TITLE}</option>
|
||||
{/loop}
|
||||
</select>
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
<div class="form-group">
|
||||
<label for="{$countries_field_name}-value">{intl l="The selected countries :"}</label>
|
||||
<select required multiple size="5" class="form-control" id="{$countries_field_name}-value" name="{$countries_field_name}[value][]">
|
||||
{loop type="country" name="list-of-countries" order="alpha" backend_context=1}
|
||||
<option style="padding-left: {$LEVEL * 20}px" value="{$ID}" {if in_array($ID, $values)}selected="selected"{/if}>{$TITLE}</option>
|
||||
{loop type="country" name="list-of-countries" order="alpha" backend_context=1 visible="*"}
|
||||
<option value="{$ID}" {if in_array($ID, $values)}selected="selected"{/if}>{option_offset l=$LEVEL label={$TITLE}}</option>
|
||||
{/loop}
|
||||
</select>
|
||||
<span class="label-help-block">{intl l='Use Ctrl+click to select (or deselect) more that one country'}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
|
||||
<div id="condition-add-operators-values" class="form-group">
|
||||
<label for="operator">{intl l="Validity start date"} :</label>
|
||||
<input type="text" class="form-control" id="{$fieldName}-value" name="{$fieldName}[value]" value="{$currentValue}" placeholder="{intl l="Format: %fmt" fmt=$dateFormat}">
|
||||
<span class="label-help-block">{intl l='Please enter the date using the %fmt format' fmt=$dateFormat}</span>
|
||||
<input type="text" class="form-control" id="{$fieldName}-value" name="{$fieldName}[value]" value="{$currentValue}" placeholder="{intl l="Format: %fmt" fmt={$dateFormat}}">
|
||||
<span class="label-help-block">{intl l='Please enter the date using the %fmt format' fmt={$dateFormat}}</span>
|
||||
</div>
|
||||
@@ -1,3 +1,4 @@
|
||||
{default_translation_domain domain='bo.default'}
|
||||
{* List all condition with their summary *}
|
||||
{foreach from=$conditions item=condition name=conditionsForeach}
|
||||
<tr>
|
||||
@@ -9,12 +10,12 @@
|
||||
</td>
|
||||
|
||||
<td class="text-center">
|
||||
<a title="{intl l='Change this condition'}" data-service-id="{$condition.serviceId}" data-condition-index="{$condition.index}" class="condition-update-btn" href="{$urlEdit}">
|
||||
<a title="{intl l='Change this condition'}" data-service-id="{$condition.serviceId}" data-condition-index="{$condition.index}" class="condition-update-btn" href="{$urlEdit nofilter}">
|
||||
<span class="glyphicon glyphicon-edit"></span>
|
||||
</a>
|
||||
|
||||
{if $conditions|count != 1}
|
||||
<a title="{intl l='Delete this condition'}" data-condition-index="{$condition.index}" data-target="#delete" data-toggle="confirm" class="condition-delete-btn" href="{$urlDelete}">
|
||||
<a title="{intl l='Delete this condition'}" data-condition-index="{$condition.index}" data-target="#delete" data-toggle="confirm" class="condition-delete-btn" href="{$urlDelete nofilter}">
|
||||
<span class="glyphicon glyphicon-remove"></span>
|
||||
</a>
|
||||
{/if}
|
||||
|
||||
@@ -12,15 +12,15 @@
|
||||
|
||||
<div class="form-container">
|
||||
|
||||
<form action="{$formAction}" {form_enctype form=$form} method="POST" >
|
||||
<form action="{$formAction}" {form_enctype} method="POST" >
|
||||
|
||||
{form_hidden_fields form=$form}
|
||||
{form_hidden_fields}
|
||||
|
||||
{form_field form=$form field='locale'}
|
||||
{form_field field='locale'}
|
||||
<input type="hidden" name="{$name}" value="{if $value}{$value}{else}{$edit_language_locale}{/if}" />
|
||||
{/form_field}
|
||||
|
||||
{form_field form=$form field='success_url'}
|
||||
{form_field field='success_url'}
|
||||
<input type="hidden" name="{$name}" value="{url path='/admin/coupon/update/{id}'}" />
|
||||
{/form_field}
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
{form_field form=$form field='code'}
|
||||
{form_field field='code'}
|
||||
<div class="form-group {if $error}has-error{/if}">
|
||||
<label class="control-label" for="code">{intl l='Coupon code * :'}</label>
|
||||
<input required id="code" class="form-control" type="text" name="{$name}" value="{$value}" placeholder="{intl l='code'}">
|
||||
@@ -58,7 +58,7 @@
|
||||
|
||||
<div class="col-md-9">
|
||||
<div id="coupon-type">
|
||||
{form_field form=$form field='type'}
|
||||
{form_field field='type'}
|
||||
<div class="form-group {if $error}has-error{/if}">
|
||||
<label for="type" class="control-label">{intl l='Coupon type * :'}</label>
|
||||
<select required name="{$name}" id="type" class="col-md-12 form-control">
|
||||
@@ -79,7 +79,7 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
{form_field form=$form field='isEnabled'}
|
||||
{form_field field='isEnabled'}
|
||||
<div class="form-group {if $error}has-error{/if}">
|
||||
<label for="is-enabled" class="checkbox control-label">
|
||||
<input id="is-enabled" type="checkbox" name="{$name}" {if $value}value="1" checked{/if} />
|
||||
@@ -89,7 +89,7 @@
|
||||
</div>
|
||||
{/form_field}
|
||||
|
||||
{form_field form=$form field='isAvailableOnSpecialOffers'}
|
||||
{form_field field='isAvailableOnSpecialOffers'}
|
||||
<div class="form-group {if $error}has-error{/if}">
|
||||
<label for="is-available-on-special-offers" class="checkbox control-label">
|
||||
<input id="is-available-on-special-offers" type="checkbox" name="{$name}" {if $value}value="1" checked{/if} />
|
||||
@@ -99,7 +99,7 @@
|
||||
</div>
|
||||
{/form_field}
|
||||
|
||||
{form_field form=$form field='isCumulative'}
|
||||
{form_field field='isCumulative'}
|
||||
<div class="form-group {if $error}has-error{/if}">
|
||||
<label for="is-cumulative" class="checkbox control-label">
|
||||
<input id="is-cumulative" type="checkbox" name="{$name}" {if $value}value="1" checked{/if} />
|
||||
@@ -109,7 +109,15 @@
|
||||
</div>
|
||||
{/form_field}
|
||||
|
||||
{form_field form=$form field='expirationDate'}
|
||||
{form_field field='startDate'}
|
||||
<div class="form-group {if $error}has-error{/if}">
|
||||
<label for="expiration-date" class="control-label">{intl l='Start Date'} :</label>
|
||||
<input type="text" id="expiration-date" name="{$name}" class="form-control" value="{if $nowDate}{$nowDate}{else}{$value}{/if}" placeholder="{intl l='Format: %fmt, e.g. %date' fmt=$dateFormat date={$smarty.now|date_format:$dateFormat}}">
|
||||
{if $error}{$message}{/if}
|
||||
</div>
|
||||
{/form_field}
|
||||
|
||||
{form_field field='expirationDate'}
|
||||
<div class="form-group {if $error}has-error{/if}">
|
||||
<label for="expiration-date" class="control-label">{intl l='Expiration date * :'}</label>
|
||||
{* Do not use 'date' input type, as some browsers enforce RFC339 date formats, which is not what we want *}
|
||||
@@ -118,7 +126,7 @@
|
||||
</div>
|
||||
{/form_field}
|
||||
|
||||
{form_field form=$form field='maxUsage'}
|
||||
{form_field field='maxUsage'}
|
||||
<div class="form-group {if $error}has-error{/if}">
|
||||
|
||||
<label for="is-unlimited" class="checkbox control-label">
|
||||
@@ -129,7 +137,7 @@
|
||||
{/form_field}
|
||||
|
||||
<div class="well well-sm" id="max-usage-data">
|
||||
{form_field form=$form field='maxUsage'}
|
||||
{form_field field='maxUsage'}
|
||||
<div class="form-group {if $error}has-error{/if}">
|
||||
<label id="max-usage-label" for="max-usage" class="control-label">{intl l='Maximum usage count :'}</label>
|
||||
<input id="max-usage" type="text" class="form-control" name="{$name}" value="{if $value == ''}-1{else}{$value}{/if}" placeholder="{intl l='Usage count'}">
|
||||
@@ -137,7 +145,7 @@
|
||||
</div>
|
||||
{/form_field}
|
||||
|
||||
{form_field form=$form field='perCustomerUsageCount'}
|
||||
{form_field field='perCustomerUsageCount'}
|
||||
<div class="form-group {if $error}has-error{/if}" style="margin-bottom: 0;">
|
||||
{foreach $choices as $choice}
|
||||
<label class="radio-inline">
|
||||
@@ -149,7 +157,7 @@
|
||||
{/form_field}
|
||||
</div>
|
||||
|
||||
{form_field form=$form field='isRemovingPostage'}
|
||||
{form_field field='isRemovingPostage'}
|
||||
<div class="form-group {if $error}has-error{/if}">
|
||||
<label for="is-removing-postage" class="checkbox control-label">
|
||||
<input id="is-removing-postage" type="checkbox" name="{$name}" {if $value}value="1" checked{/if} />
|
||||
@@ -160,7 +168,7 @@
|
||||
{/form_field}
|
||||
|
||||
<div class="free-postage-conditions well well-sm" " style="display: none">
|
||||
{form_field form=$form field='freeShippingForCountries'}
|
||||
{form_field field='freeShippingForCountries'}
|
||||
<div class="form-group {if $error}has-error{/if}">
|
||||
<label for="for-countries-only">{intl l="Free shipping to countries :"}</label>
|
||||
<select multiple size="5" class="form-control" id="for-countries-only" name="{$name}">
|
||||
@@ -172,7 +180,7 @@
|
||||
</div>
|
||||
{/form_field}
|
||||
|
||||
{form_field form=$form field='freeShippingForModules'}
|
||||
{form_field field='freeShippingForModules'}
|
||||
<div class="form-group {if $error}has-error{/if}" style="margin-bottom: 0;">
|
||||
<label for="for-modules-only">{intl l="Free shipping for methods :"}</label>
|
||||
<select multiple size="5" class="form-control" id="for-modules-only" name="{$name}">
|
||||
@@ -197,7 +205,7 @@
|
||||
<div class="col-md-6">
|
||||
|
||||
{loop type="lang" name="get-flag" id=$edit_language_id}
|
||||
{form_field form=$form field='title'}
|
||||
{form_field field='title'}
|
||||
<div class="form-group {if $error}has-error{/if}">
|
||||
<label for="title" class="control-label" >{intl l='Title * :'}</label>
|
||||
<div class="input-group">
|
||||
@@ -208,7 +216,7 @@
|
||||
</div>
|
||||
{/form_field}
|
||||
|
||||
{form_field form=$form field='shortDescription'}
|
||||
{form_field field='shortDescription'}
|
||||
<div class="form-group {if $error}has-error{/if}">
|
||||
<label for="short-description" class="control-label">{intl l='Short description :'} <img src="{image file="assets/img/flags/{$CODE}.png"}" alt="{$TITLE}" /></label>
|
||||
<textarea id="short-description" name="{$name}" class="form-control" placeholder="{intl l='short description'}" rows="3">{$value nofilter}</textarea>
|
||||
@@ -216,7 +224,7 @@
|
||||
</div>
|
||||
{/form_field}
|
||||
|
||||
{form_field form=$form field='description'}
|
||||
{form_field field='description'}
|
||||
<div class="form-group {if $error}has-error{/if}">
|
||||
<label for="description" class="control-label">{intl l='Long description :'} <img src="{image file="assets/img/flags/{$CODE}.png"}" alt="{$TITLE}" /></label>
|
||||
<textarea id="description" name="{$name}" placeholder="{intl l='long description'}" class="form-control wysiwyg" rows="3">{$value nofilter}</textarea>
|
||||
@@ -234,7 +242,7 @@
|
||||
<div class="col-md-12">
|
||||
<p class="title title-without-tabs">{intl l="Coupon conditions"}</p>
|
||||
<br />
|
||||
{include file='includes/notifications.html' type='info' dismissable=false message={intl l='Please save this coupon first to define coupon conditions'}}
|
||||
{include file='includes/notifications.html' alert_type='info' dismissable=false message={intl l='Please save this coupon first to define coupon conditions'}}
|
||||
</div>
|
||||
{else}
|
||||
<div class="col-md-6">
|
||||
@@ -259,7 +267,7 @@
|
||||
|
||||
<p class="title title-without-tabs">{intl l="Add a condition"}</p>
|
||||
|
||||
<form id="condition-form" action="{$urlAjaxSaveConditions}" {form_enctype form=$form} method="POST" >
|
||||
<form id="condition-form" action="{$urlAjaxSaveConditions nofilter}" {form_enctype} method="POST" >
|
||||
|
||||
<div id="condition-add-type" class="form-group">
|
||||
<label for="categoryCondition">{intl l='Condition category :'}</label>
|
||||
@@ -276,7 +284,7 @@
|
||||
|
||||
</div>
|
||||
|
||||
<a id="condition-save-btn" title="{intl l='Save this condition'}" class="btn btn-default btn-primary pull-right" data-toggle="confirm" data-script="">
|
||||
<a id="condition-save-btn" title="{intl l='Save this condition'}" class="btn btn-primary pull-right" data-toggle="confirm" data-script="">
|
||||
<span class="glyphicon glyphicon-plus-sign"></span> {intl l='Save this condition'}
|
||||
</a>
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{loop type="product" category={$smarty.post.category_id} name="list-of-products" backend_context="1"}
|
||||
<option style="padding-left: {$LEVEL * 10}px" value="{$ID}">{$TITLE}</option>
|
||||
{/loop}
|
||||
{loop type="product" category={$smarty.post.category_id} name="list-of-products" backend_context="1" return_url=false}
|
||||
<option value="{$ID}">{option_offset l=$LEVEL label={$TITLE}}</option>
|
||||
{/loop}
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
<label for="coupon-categories-id">{intl l="Applies to products in categories :"}</label>
|
||||
|
||||
<select required multiple size="10" class="form-control" id="coupon-categories-id" name="{$categories_field_name}[]">
|
||||
{loop type="category-tree" category=0 name="list-of-categories" backend_context="1"}
|
||||
<option style="padding-left: {$LEVEL * 10}px" value="{$ID}" {if in_array($ID, $categories_values)}selected="selected"{/if}>{$TITLE}</option>
|
||||
{loop type="category-tree" category=0 name="list-of-categories" backend_context="1" visible="*"}
|
||||
<option value="{$ID}" {if in_array($ID, $categories_values)}selected="selected"{/if}>{option_offset l=$LEVEL label={$TITLE}}</option>
|
||||
{/loop}
|
||||
</select>
|
||||
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
|
||||
<select required class="form-control" id="coupon-category-id" name="{$category_id_field_name}">
|
||||
<option value="0">{intl l="Please select..."}</option>
|
||||
{loop type="category-tree" category=0 name="list-of-category" backend_context="1"}
|
||||
<option style="padding-left: {$LEVEL * 10}px" value="{$ID}" {if $ID == $category_id_value}selected="selected"{/if}>{$TITLE}</option>
|
||||
{loop type="category-tree" category=0 name="list-of-category" backend_context="1" visible="*"}
|
||||
<option value="{$ID}" {if $ID == $category_id_value}selected="selected"{/if}>{option_offset l=$LEVEL label={$TITLE}}</option>
|
||||
{/loop}
|
||||
</select>
|
||||
</div>
|
||||
@@ -21,7 +21,7 @@
|
||||
<label for="coupon-products-id">{intl l="Applies to products :"}</label>
|
||||
|
||||
<select required multiple size="10" class="form-control" id="coupon-products-id" name="{$products_field_name}[]">
|
||||
{loop type="product" category=$category_id_value|default:0 name="list-of-products" backend_context="1"}
|
||||
{loop type="product" category=$category_id_value|default:0 name="list-of-products" backend_context="1" return_url=false}
|
||||
<option value="{$ID}" {if in_array($ID, $products_values)}selected="selected"{/if}>{$TITLE}</option>
|
||||
{/loop}
|
||||
</select>
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
|
||||
<select required class="form-control" id="free-product-category-id" name="{$offered_category_field_name}">
|
||||
<option value="0">{intl l="Please select..."}</option>
|
||||
{loop type="category-tree" category=0 name="list-of-category" backend_context="1"}
|
||||
<option style="padding-left: {$LEVEL * 10}px" value="{$ID}" {if $ID == $offered_category_value}selected="selected"{/if}>{$TITLE}</option>
|
||||
{loop type="category-tree" category=0 name="list-of-category" backend_context="1" visible="*"}
|
||||
<option value="{$ID}" {if $ID == $offered_category_value}selected="selected"{/if}>{option_offset l=$LEVEL label={$TITLE}}</option>
|
||||
{/loop}
|
||||
</select>
|
||||
</div>
|
||||
@@ -20,7 +20,7 @@
|
||||
<label for="free-products-id">{intl l="Select offered product :"}</label>
|
||||
|
||||
<select required class="form-control" id="free-products-id" name="{$offered_product_field_name}">
|
||||
{loop type="product" category=$offered_category_value|default:0 name="list-of-products" backend_context="1"}
|
||||
{loop type="product" category=$offered_category_value|default:0 name="list-of-products" backend_context="1" return_url=false}
|
||||
<option value="{$ID}" {if $ID == $offered_product_value}selected="selected"{/if}>{$TITLE}</option>
|
||||
{/loop}
|
||||
</select>
|
||||
@@ -66,4 +66,4 @@
|
||||
});
|
||||
}
|
||||
});
|
||||
{/block}
|
||||
{/block}
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
<label for="coupon-percentage" class="control-label">{intl l="Discount percentage"}</label>
|
||||
|
||||
<div class="input-group">
|
||||
<input id="coupon-percentage" type="number" class="form-control" name="{$percentage_field_name}" value="{$percentage_value}" placeholder="5">
|
||||
<input id="coupon-percentage" type="number" step="any" min="0" class="form-control" name="{$percentage_field_name}" value="{$percentage_value}" placeholder="5">
|
||||
|
||||
<div class="input-group-addon">%</div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
{/block}
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
<label for="coupon-percentage" class="control-label">{intl l="Discount percentage"}</label>
|
||||
|
||||
<div class="input-group">
|
||||
<input id="coupon-percentage" type="number" class="form-control" name="{$percentage_field_name}" value="{$percentage_value}" placeholder="5">
|
||||
<input id="coupon-percentage" type="number" step="any" min="0" class="form-control" name="{$percentage_field_name}" value="{$percentage_value}" placeholder="5">
|
||||
|
||||
<div class="input-group-addon">%</div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
{/block}
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
<label for="coupon-percentage" class="control-label">{intl l="Discount percentage"}</label>
|
||||
|
||||
<div class="input-group">
|
||||
<input id="coupon-percentage" type="number" class="form-control" name="{$percentage_field_name}" value="{$percentage_value}" placeholder="5">
|
||||
<input id="coupon-percentage" type="number" step="any" min="0" class="form-control" name="{$percentage_field_name}" value="{$percentage_value}" placeholder="5">
|
||||
|
||||
<div class="input-group-addon">%</div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
{/block}
|
||||
|
||||
Reference in New Issue
Block a user