75 lines
3.4 KiB
Smarty
75 lines
3.4 KiB
Smarty
{*
|
|
* Copyright ETS Software Technology Co., Ltd
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This file is not open source! Each license that you purchased is only available for 1 website only.
|
|
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
|
|
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future.
|
|
*
|
|
* @author ETS Software Technology Co., Ltd
|
|
* @copyright ETS Software Technology Co., Ltd
|
|
* @license Valid for 1 website (or project) for each purchase of license
|
|
*}
|
|
|
|
{assign var='icon' value=$icon|default:'fa-check-circle'}
|
|
{assign var='modal_message' value=$modal_message|default:''}
|
|
|
|
<script type="text/javascript">
|
|
const confirmModal = $('#{$modal_id|escape:'html':'UTF-8'}');
|
|
confirmModal.on('hidden.bs.ets-rv-modal', function () {
|
|
confirmModal.ETSModal('hide');
|
|
confirmModal.trigger('ets-rv-modal:confirm', false);
|
|
});
|
|
|
|
$('.confirm-button', confirmModal).click(function() {
|
|
confirmModal.trigger('ets-rv-modal:confirm', true);
|
|
});
|
|
$('.refuse-button', confirmModal).click(function() {
|
|
confirmModal.trigger('ets-rv-modal:confirm', false);
|
|
});
|
|
</script>
|
|
|
|
<div id="{$modal_id|escape:'html':'UTF-8'}" class="ets-rv-modal fade ets-rv-product-comment-modal" role="dialog" aria-hidden="true" data-keyboard="false" data-backdrop="static">
|
|
<div class="ets-rv-modal-dialog" role="document">
|
|
<div class="ets_table-cell">
|
|
<div class="ets-rv-modal-content">
|
|
<div class="ets-rv-modal-header">
|
|
<h2>
|
|
{if $icon == 'feedback'}
|
|
<i class="report_icon_svg">
|
|
<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M320 256q0 72-64 110v1266q0 13-9.5 22.5t-22.5 9.5h-64q-13 0-22.5-9.5t-9.5-22.5v-1266q-64-38-64-110 0-53 37.5-90.5t90.5-37.5 90.5 37.5 37.5 90.5zm1472 64v763q0 25-12.5 38.5t-39.5 27.5q-215 116-369 116-61 0-123.5-22t-108.5-48-115.5-48-142.5-22q-192 0-464 146-17 9-33 9-26 0-45-19t-19-45v-742q0-32 31-55 21-14 79-43 236-120 421-120 107 0 200 29t219 88q38 19 88 19 54 0 117.5-21t110-47 88-47 54.5-21q26 0 45 19t19 45z"></path></svg>
|
|
</i>
|
|
{else}
|
|
<i class="fa {$icon|escape:'html':'UTF-8'}"></i>
|
|
{/if}
|
|
{$modal_title|escape:'html':'UTF-8'}
|
|
</h2>
|
|
</div>
|
|
<div class="ets-rv-modal-body">
|
|
<div class="row">
|
|
<div class="col-md-12 col-sm-12" id="{$modal_id|escape:'html':'UTF-8'}-message">
|
|
{$modal_message nofilter}
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12 col-sm-12 post-comment-buttons">
|
|
<button type="button" class="btn btn-primary ets-rv-btn-comment-inverse ets-rv-btn-comment-huge refuse-button ets_button_gray" data-dismiss="ets-rv-modal" aria-label="{l s='No' mod='ets_reviews'}">
|
|
{l s='No' mod='ets_reviews'}
|
|
</button>
|
|
<button type="button" class="btn btn-primary ets-rv-btn-comment ets-rv-btn-comment-huge confirm-button{if !empty($ETS_RV_DESIGN_COLOR2)} background2{/if}{if !empty($ETS_RV_DESIGN_COLOR3)} bg_hover3 bd_hover3{/if}" data-dismiss="ets-rv-modal" aria-label="{l s='Yes' mod='ets_reviews'}">
|
|
{l s='Yes' mod='ets_reviews'}
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|