169 lines
6.2 KiB
Smarty
169 lines
6.2 KiB
Smarty
<div class="form-group">
|
|
|
|
<label class="control-label col-lg-3">
|
|
{l s='All import conditions must be satisfied' mod='pshowimporter'}
|
|
</label>
|
|
|
|
<div class="col-lg-9">
|
|
|
|
<span class="switch prestashop-switch fixed-width-lg">
|
|
<input type="radio" name="conditions[import_require_all]" id="conditions[import_require_all]_on" value="1"
|
|
{if $config['additional']['conditions']['import_require_all']}checked='checked'{/if}>
|
|
<label for="conditions[import_require_all]_on">Tak</label>
|
|
<input type="radio" name="conditions[import_require_all]" id="conditions[import_require_all]_off" value="0"
|
|
{if !$config['additional']['conditions']['import_require_all']}checked='checked'{/if}>
|
|
<label for="conditions[import_require_all]_off">Nie</label>
|
|
<a class="slide-button btn"></a>
|
|
</span>
|
|
|
|
<p class="help-block">
|
|
{l s='If this option is enabled and you add a condition with the `import` action, all conditions with this action must be satisfied to import the record.' mod='pshowimporter'}
|
|
</p>
|
|
|
|
<p class="help-block">
|
|
{l s='If this option is disabled, just one condition with the `import` action will be required to import the record.' mod='pshowimporter'}
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="control-label col-lg-3">
|
|
{l s='All skip conditions must be satisfied' mod='pshowimporter'}
|
|
</label>
|
|
|
|
<div class="col-lg-9">
|
|
|
|
<span class="switch prestashop-switch fixed-width-lg">
|
|
<input type="radio" name="conditions[skip_require_all]" id="conditions[skip_require_all]_on" value="1"
|
|
{if $config['additional']['conditions']['skip_require_all']}checked='checked'{/if}>
|
|
<label for="conditions[skip_require_all]_on">Tak</label>
|
|
<input type="radio" name="conditions[skip_require_all]" id="conditions[skip_require_all]_off" value="0"
|
|
{if !$config['additional']['conditions']['skip_require_all']}checked='checked'{/if}>
|
|
<label for="conditions[skip_require_all]_off">Nie</label>
|
|
<a class="slide-button btn"></a>
|
|
</span>
|
|
|
|
<p class="help-block">
|
|
{l s='If this option is enabled and you add a condition with the `skip` action, all conditions with this action must be satisfied to skip the record.' mod='pshowimporter'}
|
|
</p>
|
|
|
|
<p class="help-block">
|
|
{l s='If this option is disabled, just one condition with the `skip` action will be required to skip the record.' mod='pshowimporter'}
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel">
|
|
<div class="panel-heading">
|
|
{l s='Add condition' mod='pshowimporter'}
|
|
</div>
|
|
|
|
<div class="panel-content">
|
|
<div class="form-group">
|
|
|
|
<label class="control-label col-xs-1">
|
|
{l s='If' mod='pshowimporter'}
|
|
</label>
|
|
|
|
<div class="col-xs-4">
|
|
|
|
<select id="condition_field">
|
|
{foreach from=$matchedFromFile key='k' item='v'}
|
|
<option value="{$k}">{$v}</option>
|
|
{/foreach}
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-2">
|
|
|
|
<select id="condition_condition">
|
|
<option value="equals">{l s='equals' mod='pshowimporter'}</option>
|
|
<option value="not_equals">{l s='not equals' mod='pshowimporter'}</option>
|
|
<option value="include">{l s='include' mod='pshowimporter'}</option>
|
|
<option value="not_include">{l s='not include' mod='pshowimporter'}</option>
|
|
<option value="greater_than">{l s='greater than [only numbers]' mod='pshowimporter'}</option>
|
|
<option value="lower_than">{l s='lower than [only numbers]' mod='pshowimporter'}</option>
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-2">
|
|
|
|
<input type="text" id="condition_value" value="" class="form-control">
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-3">
|
|
|
|
<div class="control-label col-xs-2">
|
|
{l s='then' mod='pshowimporter'}
|
|
</div>
|
|
|
|
<div class="col-xs-10">
|
|
<select id="condition_action">
|
|
<option value="skip">{l s='skip' mod='pshowimporter'}</option>
|
|
<option value="import">{l s='import' mod='pshowimporter'}</option>
|
|
</select>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel-footer">
|
|
<button class="btn-addCondition btn btn-default pull-right">
|
|
<i class="process-icon-save"></i>
|
|
{l s='Save' mod='pshowimporter'}
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="panel">
|
|
<div class="panel-heading">
|
|
{l s='Added conditions' mod='pshowimporter'}
|
|
</div>
|
|
|
|
<div class="table-responsive-row clearfix">
|
|
<table id="table-category" class="table tableDnD category">
|
|
|
|
<thead>
|
|
<tr class="nodrag nodrop">
|
|
<th class="fixed-width-lg">
|
|
<span class="title_box">
|
|
{l s='Prestashop field' mod='pshowimporter'}
|
|
</span>
|
|
</th>
|
|
<th class="fixed-width-lg">
|
|
<span class="title_box">
|
|
{l s='Condition' mod='pshowimporter'}
|
|
</span>
|
|
</th>
|
|
<th class="fixed-width-lg">
|
|
<span class="title_box">
|
|
{l s='Value' mod='pshowimporter'}
|
|
</span>
|
|
</th>
|
|
<th class="fixed-width-lg">
|
|
<span class="title_box">
|
|
{l s='Action' mod='pshowimporter'}
|
|
</span>
|
|
</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody class='conditions-table'>
|
|
{* this will be filled by js *}
|
|
</tbody>
|
|
|
|
</table>
|
|
</div>
|
|
</div> |