first commit
This commit is contained in:
54
modules/blockwishlist/views/templates/admin/home.html.twig
Normal file
54
modules/blockwishlist/views/templates/admin/home.html.twig
Normal file
@@ -0,0 +1,54 @@
|
||||
{#**
|
||||
* 2007-2020 PrestaShop and Contributors
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*#}
|
||||
{% extends '@PrestaShop/Admin/layout.html.twig' %}
|
||||
|
||||
{% block content %}
|
||||
{{ form_start(configurationForm) }}
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-xl-10">
|
||||
<div class="card">
|
||||
<h3 class="card-header">
|
||||
<i class="material-icons">edit</i> {{ 'Wording'|trans({}, 'Modules.Blockwishlist.Admin') }}
|
||||
</h3>
|
||||
|
||||
<div class="card-body">
|
||||
<div class="form-wrapper">
|
||||
{{ form_widget(configurationForm) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-footer">
|
||||
<div class="d-flex justify-content-end">
|
||||
<button class="btn btn-primary">{{ 'Save'|trans({}, 'Modules.Blockwishlist.Admin') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ form_end(configurationForm) }}
|
||||
|
||||
{% if resultHandleForm != null %}
|
||||
{# resutHandleForm represent the save of every config (can be true/false/null) null = no submission #}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block javascripts %}
|
||||
{{ parent() }}
|
||||
<script src="{{ asset('../modules/blockwishlist/public/form.bundle.js') }}"></script>
|
||||
{% endblock %}
|
||||
28
modules/blockwishlist/views/templates/admin/index.php
Normal file
28
modules/blockwishlist/views/templates/admin/index.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2020 PrestaShop and Contributors
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,83 @@
|
||||
{#**
|
||||
* 2007-2020 PrestaShop and Contributors
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*#}
|
||||
{% extends '@PrestaShop/Admin/layout.html.twig' %}
|
||||
|
||||
{% block content %}
|
||||
{% if shopId is same as(null) %}
|
||||
<div class="alert medium-alert alert-warning" role="alert">
|
||||
<p class="alert-text">
|
||||
{{ 'You need to choose a specific shop to display the top 10 most added products'|trans({}, 'Modules.Blockwishlist.Admin') }}
|
||||
</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="row justify-content-center wishlist-stats">
|
||||
<div class="col-xl-10">
|
||||
<div class="card">
|
||||
<h3 class="card-header">
|
||||
<i class="material-icons">star</i> {{ 'Top 10 most added products'|trans({}, 'Modules.Blockwishlist.Admin') }}
|
||||
</h3>
|
||||
|
||||
<div class="card-body">
|
||||
<div class="card-text">
|
||||
<div class="row wishlist-stats-topbar">
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-default active" data-tab="1">Day</button>
|
||||
<button class="btn btn-default" data-tab="2">Month</button>
|
||||
<button class="btn btn-default" data-tab="3">Year</button>
|
||||
<button class="btn btn-default" data-tab="4">All time</button>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-default refresh js-refresh">
|
||||
<i class="material-icons">history</i> {{ 'Refresh'|trans({}, 'Modules.Blockwishlist.Admin') }}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="wishlist-tab active" data-tab="1">
|
||||
{% include '@PrestaShop/Admin/Common/Grid/grid.html.twig' with {'grid': allTimeStatisticsGrid} %}
|
||||
</div>
|
||||
|
||||
<div class="wishlist-tab" data-tab="2">
|
||||
{% include '@PrestaShop/Admin/Common/Grid/grid.html.twig' with {'grid': currentYearStatisticsGrid} %}
|
||||
</div>
|
||||
|
||||
<div class="wishlist-tab" data-tab="3">
|
||||
{% include '@PrestaShop/Admin/Common/Grid/grid.html.twig' with {'grid': currentMonthStatisticsGrid} %}
|
||||
</div>
|
||||
|
||||
<div class="wishlist-tab" data-tab="4">
|
||||
{% include '@PrestaShop/Admin/Common/Grid/grid.html.twig' with {'grid': currentDayStatisticsGrid} %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block javascripts %}
|
||||
{{ parent() }}
|
||||
|
||||
<script>
|
||||
var blockwishlistModule = {
|
||||
'resetCacheUrl': '{{ url('blockwishlist_statistics_reset')|e('js') }}',
|
||||
};
|
||||
</script>
|
||||
<script src="{{ asset('../modules/blockwishlist/public/backoffice.bundle.js') }}"></script>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user