115 lines
4.5 KiB
Smarty
115 lines
4.5 KiB
Smarty
{include file='./../parts/import_steps.tpl' step=3}
|
|
<p> </p>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<div class="panel panel-filecontents">
|
|
<div class="panel-heading">
|
|
<a ng-show="ableToHightlight" ng-click="highlightContents()"
|
|
class="pull-right btn btn-default">{l s='Highlight syntax' mod='pshowimporter'}</a>
|
|
<a ng-show="fileNotLoaded" ng-click="loadFileContents()"
|
|
class="pull-right btn btn-success">{l s='Load file' mod='pshowimporter'}</a>
|
|
<span id="fileloadstatus" class="pull-right">[[fileloadstatus]]</span>
|
|
({l s='grab to move' mod='pshowimporter'})
|
|
{l s='File contents' mod='pshowimporter'}
|
|
</div>
|
|
<div class="panel-wrapper" style="min-height: 120px; max-height: 500px; height: 90%; overflow: scroll;">
|
|
|
|
<pre ng-show="filecontents" style="width:3000px; height: 95%;"><code class="xml">[[filecontents]]</code></pre>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
<div class="alert alert-info">
|
|
<p><strong>{l s='Priorities' mod='pshowimporter'}</strong></p>
|
|
<p>{l s='Matches from each tabs has its own priority during import. We placed priority level in each names of tabs below.' mod='pshowimporter'}</p>
|
|
<p>{l s='For example if you match product name in tab \'Custom matches\' and in tab \'Custom values\' - value from \'Custom values\' tab will override value from \'Custom matches\' tab.' mod='pshowimporter'}</p>
|
|
</div>
|
|
|
|
<form class="col-xs-12 defaultForm form-horizontal" id="matchingFields" method="post" action="{$link->getAdminLink('PShowImporterConfig', true)}&file={$smarty.get.file}&step=2">
|
|
|
|
<div>
|
|
|
|
<ul class="nav nav-tabs" role="tablist">
|
|
<li role="presentation" class="{if (isset($smarty.get.tabpane) && $smarty.get.tabpane != 'fieldsBox') or !$smarty.get.tabpane}active{/if}">
|
|
<a href="#objectTag" aria-controls="objectTag" role="tab" data-toggle="tab">
|
|
{l s='Change object tag' mod='pshowimporter'}
|
|
</a>
|
|
</li>
|
|
<li role="presentation" class='objectTagRequired hidden'>
|
|
<a href="#own" aria-controls="own" role="tab" data-toggle="tab">
|
|
{l s='Matches' mod='pshowimporter'} [{l s='Priority' mod='pshowimporter'}: {l s='high' mod='pshowimporter'}]
|
|
</a>
|
|
</li>
|
|
<li role="presentation" class='objectTagRequired hidden'>
|
|
<a href="#custom" aria-controls="custom" role="tab" data-toggle="tab">
|
|
{l s='Custom values' mod='pshowimporter'} [{l s='Priority' mod='pshowimporter'}: {l s='medium' mod='pshowimporter'}]
|
|
</a>
|
|
</li>
|
|
<li role="presentation" class='objectTagRequired hidden'>
|
|
<a href="#custom-matches" aria-controls="custom-matches" role="tab" data-toggle="tab">
|
|
{l s='Custom matches' mod='pshowimporter'} [{l s='Priority' mod='pshowimporter'}: {l s='low' mod='pshowimporter'}]
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="panel">
|
|
|
|
<div class="tab-content">
|
|
|
|
<div role="tabpanel" class="tab-pane" id="custom-matches">
|
|
|
|
{include file="./config_matchxmlfields_custommatches.tpl"}
|
|
|
|
</div>
|
|
|
|
<div role="tabpanel" class="tab-pane" id="custom">
|
|
|
|
{include file="./config_matchxmlfields_customvalues.tpl"}
|
|
|
|
</div>
|
|
|
|
<div role="tabpanel" class="tab-pane fieldsBox" id="own">
|
|
|
|
|
|
</div>
|
|
|
|
<div role="tabpanel" class="tab-pane active" id="objectTag">
|
|
|
|
{include file="./config_matchxmlfields_objecttag.tpl"}
|
|
|
|
</div>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
<div class="panel-footer hidden" id="saveAndNext">
|
|
{include file="./../helpers/config_buttons.tpl" f='config_matchfields' category_matching=$category_matching fieldId=0}
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
<script>
|
|
var lang_find = "{l s='Find' mod='pshowimporter'}";
|
|
var lang_replace = "{l s='Replace' mod='pshowimporter'}";
|
|
var lang_regex = "{l s='Regular expressions' mod='pshowimporter'}";
|
|
var lang_regex_info = "{include file='./../parts/regex_exp_info.tpl'}";
|
|
var maxInputVars = {$max_input_vars|intval};
|
|
var maxInputVarsMsg = "{$max_input_vars_msg|replace:"<br>":'\n'}";
|
|
</script>
|
|
<script src="{$smarty.const.__PS_BASE_URI__}modules/pshowimporter/views/js/config_matchxmlfields.js"></script> |