Files
interblue.pl/modules/pshowimporter/views/templates/admin/config_additional_manufacturers.tpl
2024-10-25 14:16:28 +02:00

100 lines
2.7 KiB
Smarty

{if !$manufacturer_matching_hasManufacturer}
<p>{l s='You do not matched any field to product manufacturer in step 3' mod='pshowimporter'}</p>
{elseif ($find_manufacturers)}
<p>{l s='Searching for product manufacturers in the file...' mod='pshowimporter'}</p>
<p>{l s='This may take several minutes depending on the size of the file ...' mod='pshowimporter'}</p>
<script>
$(function () {
var lmff = false;
$('.nav-tabs a[aria-controls="skipmanufacturers"]').click(function () {
if (lmff)
return;
lmff = true;
loadManufacturersFromFile();
});
});
</script>
{else}
<div class="row">
<div class="col-xs-8">
<div class="alert alert-info">
<p>{l s='Select manufacturers which you want to skip during import' mod='pshowimporter'}</p>
</div>
<a href="{$link->getAdminLink('PShowImporterConfig', true)}&file={$smarty.get.file}&step=3&regenerate_manufacturer_list=1"
class="btn btn-default">
{l s='Regenerate list' mod='pshowimporter'}
</a>
</div>
<div class="panel col-xs-4">
<h3 class='panel-heading'>
{l s='Set for all' mod='pshowimporter'}:
</h3>
<div class="row">
<a class="btn btn-default btn-xs row col-xs-5 set4allManufacturers-skip" href="">
{l s='skip all' mod='pshowimporter'}
</a>
<a class="btn btn-default btn-xs row col-xs-5 set4allManufacturers-reset" href="">
{l s='reset' mod='pshowimporter'}
</a>
</div>
</div>
</div>
<div id="manufacturersList">
<div class='clearfix'></div>
<hr>
{* here will be loaded manufacturers from file by JS *}
</div>
<div class='clearfix'></div>
<div id="manufacturersListLoader" class="col-xs-12">
<button class="btn btn-default col-xs-6 col-xs-offset-3" disabled="disabled">
<strong>{l s='Loading manufacturers list, please wait...' mod='pshowimporter'}</strong>
</button>
</div>
<style>
#manufacturersList #content.bootstrap {
margin: 0;
padding: 0;
}
#manufacturersList #main {
margin: 0;
padding: 0;
}
</style>
<script>
$(function () {
var ism = false;
$('.nav-tabs a[aria-controls="skipmanufacturers"]').click(function () {
if (ism)
return;
ism = true;
loadFileManufacturers();
});
});
</script>
{/if}