67 lines
2.6 KiB
Smarty
67 lines
2.6 KiB
Smarty
{if $f == 'config_index'}
|
|
|
|
<button type="submit" value="1" name="submit_primaryconfig" class="btn btn-default pull-right"
|
|
ng-show="file_contains && (what_import == 'all' || (what_import && unique_data))">
|
|
<i class="icon-share pull-right"></i>
|
|
<i class="process-icon-save"></i>
|
|
{l s='Save and go to next step' mod='pshowimporter'}
|
|
</button>
|
|
|
|
{elseif $f == 'config_matchfields'}
|
|
|
|
<button type="submit" value="1" name="submit_matchfields"
|
|
class="btn btn-default pull-right checkRequiredFieldsBtn">
|
|
<i class="icon-share pull-right"></i>
|
|
<i class="process-icon-save"></i>
|
|
{l s='Save and go to next step' mod='pshowimporter'}
|
|
</button>
|
|
|
|
<button type="submit" value="1" name="submitNstay_matchfields" class="btn btn-default pull-right checkRequiredFieldsBtn">
|
|
<i class="process-icon-save-and-stay"></i> {l s='Save and stay' mod='pshowimporter'}
|
|
</button>
|
|
|
|
{elseif $f == 'config_matchcategories'}
|
|
|
|
<button type="submit" value="1" name="submitNimport_categories" class="btn btn-default pull-right">
|
|
<i class="icon-share pull-right"></i>
|
|
<i class="process-icon-save"></i> {l s='Save and import' mod='pshowimporter'}
|
|
</button>
|
|
<button type="submit" value="1" name="submitNstay_categories" class="btn btn-default pull-right">
|
|
<i class="process-icon-save"></i> {l s='Save and stay' mod='pshowimporter'}
|
|
</button>
|
|
<button type="submit" value="1" name="submit_categories" class="btn btn-default pull-right">
|
|
<i class="icon-list pull-left"></i>
|
|
<i class="process-icon-save"></i>
|
|
{l s='Save and back to files list' mod='pshowimporter'}
|
|
</button>
|
|
|
|
{/if}
|
|
|
|
<a href="{$link->getAdminLink('PShowImporterMain', true)}" class="btn btn-default configBtn">
|
|
<i class="process-icon-back"></i> {l s='Back to files list' mod='pshowimporter'}
|
|
</a>
|
|
|
|
<script>
|
|
$(function () {
|
|
|
|
$(document).on('submit', 'form#matchingFields,form#primaryConfiguration', function (e) {
|
|
$('.full-screen-loader').show();
|
|
});
|
|
|
|
$(document).on('click', '.configBtn', function () {
|
|
$('.full-screen-loader').show();
|
|
});
|
|
|
|
$(document).on('click', '.checkRequiredFieldsBtn', function () {
|
|
|
|
$('form#matchingFields').find('input[required="required"]').each(function () {
|
|
if ($(this).val() === '') {
|
|
var x = $(this);
|
|
while (!(x = x.parent()).hasClass('trFieldSettings'));
|
|
x.show();
|
|
}
|
|
});
|
|
});
|
|
|
|
});
|
|
</script> |