1{#**
2 * Copyright since 2007 PrestaShop SA and Contributors
3 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA
4 *
5 * NOTICE OF LICENSE
6 *
7 * This source file is subject to the Open Software License (OSL 3.0)
8 * that is bundled with this package in the file LICENSE.md.
9 * It is also available through the world-wide-web at this URL:
10 * https://opensource.org/licenses/OSL-3.0
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
13 * to license@prestashop.com so we can send you a copy immediately.
14 *
15 * DISCLAIMER
16 *
17 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
18 * versions in the future. If you wish to customize PrestaShop for your
19 * needs please refer to https://devdocs.prestashop.com/ for more information.
20 *
21 * @author    PrestaShop SA and Contributors <contact@prestashop.com>
22 * @copyright Since 2007 PrestaShop SA and Contributors
23 * @license   https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
24 *#}
25{% set modulesListShouldBeDisplayed = (modulesList is defined and modulesList is not empty) %}
26{% if modulesListShouldBeDisplayed == true %}
27  <div class="row row-margin-bottom">
28  <div class="col-lg-12">
29    <ul class="nav nav-pills">
30      {% if modulesList.notInstalled|length > 0 %}
31      <li class="active">
32        <a href="#tab_modules_list_not_installed" data-toggle="tab">
33          {{ 'Not Installed'|trans({}) }}
34        </a>
35      </li>
36      {% endif %}
37
38      {% if modulesList.installed|length > 0 %}
39        <li {% if modulesList.notInstalled|length == 0 %}class="active"{% endif %}>
40        <a href="#tab_modules_list_installed" data-toggle="tab">
41          {{ 'Installed'|trans({}) }}
42        </a>
43        </li>
44      {% endif %}
45    </ul>
46  </div>
47</div>
48<div id="modules_list_container_content" class="tab-content modal-content-overflow">
49  {% if modulesList.notInstalled is defined and modulesList.notInstalled is not empty %}
50  <div class="tab-pane active" id="tab_modules_list_not_installed">
51    <table id="tab_modules_list_not_installed" class="table">
52      {% for module in modulesList.notInstalled %}
53        {{ include('@PrestaShop/Admin/Module/Includes/tab-module-line.html.twig',{'module': module}) }}
54      {% endfor %}
55    </table>
56  </div>
57  {% endif %}
58  {% if modulesList.installed|length > 0 %}
59  <div class="tab-pane {% if modulesList.notInstalled|length == 0 %}active{% endif %}" id="tab_modules_list_installed">
60    <table id="tab_modules_list_installed" class="table">
61      {% for module in modulesList.installed %}
62        {{ include('@PrestaShop/Admin/Module/Includes/tab-module-line.html.twig',{'module': module}) }}
63      {% endfor %}
64    </table>
65  </div>
66  {% endif %}
67</div>
68{% endif %}
69<div class="alert alert-addons row-margin-top" role="alert">
70  <p class="alert-text">
71    <a href="https://addons.prestashop.com/?utm_source=back-office&amp;utm_medium=dispatch&amp;utm_campaign=back-office-{{ app.request.locale }}&amp;utm_content=download{% if adminListFromSource is defined %}&amp;utm_term={{ adminListFromSource }}{% endif %}" onclick="return !window.open(this.href);">{{ 'More modules on addons.prestashop.com'|trans({}) }}</a>
72  </p>
73</div>
74
75{% if modulesListShouldBeDisplayed == true %}
76  <script src="{{ asset('themes/new-theme/public/module_card.bundle.js') }}"></script>
77{% endif %}
78