first commit

This commit is contained in:
2024-11-05 12:22:50 +01:00
commit e5682a3912
19641 changed files with 2948548 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
{**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*}
{if isset($confirmations) && count($confirmations) && $confirmations}
<div class="bootstrap">
<div class="alert alert-success" style="display:block;">
{foreach $confirmations as $conf}
{$conf}
{/foreach}
</div>
</div>
{/if}

View File

@@ -0,0 +1,54 @@
{**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*}
{if isset($employee)}
<div class="dropdown employee-dropdown">
<div class="rounded-circle person" data-toggle="dropdown">
<i class="material-icons">account_circle</i>
</div>
<div class="dropdown-menu dropdown-menu-right">
<div class="employee-wrapper-avatar">
<span class="employee-avatar"><img class="avatar rounded-circle" src="{$employee->getImage()}" /></span>
<span class="employee_profile">{l s='Welcome back %name%' sprintf=['%name%' => $employee->firstname] d='Admin.Navigation.Header'}</span>
<a class="dropdown-item employee-link profile-link" href="{$link->getAdminLink('AdminEmployees', true, [], ['id_employee' => $employee->id|intval, 'updateemployee' => 1])|escape:'html':'UTF-8'}">
<i class="material-icons">edit</i>
<span>{l s='Your profile' d='Admin.Navigation.Header'}</span>
</a>
</div>
<p class="divider"></p>
<a class="dropdown-item" href="{l s='https://www.prestashop.com/en/resources/documentations?utm_source=back-office&utm_medium=profile&utm_campaign=resources-en&utm_content=download17' d='Admin.Navigation.Header'}" target="_blank" rel="noreferrer"><i class="material-icons">book</i> {l s='Resources' d='Admin.Navigation.Header'}</a>
<a class="dropdown-item" href="{l s='https://www.prestashop.com/en/training?utm_source=back-office&utm_medium=profile&utm_campaign=training-en&utm_content=download17' d='Admin.Navigation.Header'}" target="_blank" rel="noreferrer"><i class="material-icons">school</i> {l s='Training' d='Admin.Navigation.Header'}</a>
<a class="dropdown-item" href="{l s='https://www.prestashop.com/en/experts?utm_source=back-office&utm_medium=profile&utm_campaign=expert-en&utm_content=download17' d='Admin.Navigation.Header'}" target="_blank" rel="noreferrer"><i class="material-icons">person_pin_circle</i> {l s='Find an Expert' d='Admin.Navigation.Header'}</a>
<a class="dropdown-item" href="{l s='https://addons.prestashop.com?utm_source=back-office&utm_medium=profile&utm_campaign=addons-en&utm_content=download17' d='Admin.Navigation.Header'}" target="_blank" rel="noreferrer"><i class="material-icons">extension</i> {l s='PrestaShop Marketplace' d='Admin.Navigation.Header'}</a>
<a class="dropdown-item" href="{l s='https://www.prestashop.com/en/contact?utm_source=back-office&utm_medium=profile&utm_campaign=help-center-en&utm_content=download17' d='Admin.Navigation.Header'}" target="_blank" rel="noreferrer"><i class="material-icons">help</i> {l s='Help Center' d='Admin.Navigation.Header'}</a>
<p class="divider"></p>
<a class="dropdown-item employee-link text-center" id="header_logout" href="{$logout_link|escape:'html':'UTF-8'}">
<i class="material-icons d-lg-none">power_settings_new</i>
<span>{l s='Sign out' d='Admin.Navigation.Header'}</span>
</a>
</div>
</div>
{/if}

View File

@@ -0,0 +1,42 @@
{**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*}
{if count($errors) && current($errors) != '' && (!isset($disableDefaultErrorOutPut) || $disableDefaultErrorOutPut == false)}
<div class="bootstrap">
<div class="alert alert-danger">
<button type="button" class="close" data-dismiss="alert">&times;</button>
{if count($errors) == 1}
{reset($errors)}
{else }
{l s='There are %d errors.' sprintf=[$errors|count] d='Admin.Notifications.Error'}
<br/>
<ol>
{foreach $errors as $error}
<li>{$error}</li>
{/foreach}
</ol>
{/if}
</div>
</div>
{/if}

View File

@@ -0,0 +1,36 @@
{**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*}
{if isset($informations) && count($informations) && $informations}
<div class="bootstrap">
<div class="alert alert-info">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<ul id="infos_block" class="list-unstyled">
{foreach $informations as $info}
<li>{$info}</li>
{/foreach}
</ul>
</div>
</div>
{/if}

View File

@@ -0,0 +1,125 @@
{**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*}
<nav class="nav-bar d-none d-print-none d-md-block">
<span class="menu-collapse" data-toggle-url="{$toggle_navigation_url}">
<i class="material-icons">chevron_left</i>
<i class="material-icons">chevron_left</i>
</span>
<div class="nav-bar-overflow">
<ul class="main-menu{if $collapse_menu} sidebar-closed{/if}">
{foreach $tabs as $level1}
{if $level1.active}
{$level1Href = $level1.href|escape:'html':'UTF-8'}
{if $level1.sub_tabs|@count && isset($level1.sub_tabs[0].href)}
{$level1Href = $level1.sub_tabs[0].href|escape:'html':'UTF-8'}
{/if}
{$level1Name = $level1.name|escape:'html':'UTF-8'}
{if $level1.name eq ''}
{$level1Name = $level1.class_name|escape:'html':'UTF-8'}
{/if}
{if $level1.icon != ''}
<li class="link-levelone{if $level1.current} link-levelone-active{/if}" data-submenu="{$level1.id_tab}" id="tab-{$level1.class_name}">
<a href="{$level1Href}" class="link" >
<i class="material-icons">{$level1.icon}</i> <span>{$level1Name}</span>
</a>
</li>
{else}
<li class="category-title{if $level1.current} link-active{/if}" data-submenu="{$level1.id_tab}" id="tab-{$level1.class_name}">
<span class="title">{$level1Name}</span>
</li>
{foreach $level1.sub_tabs as $level2}
{if $level2.active}
{$level2Href = $level2.href|escape:'html':'UTF-8'}
{$level2Name = $level2.name|escape:'html':'UTF-8'}
{if $level2.name eq ''}
{$level2Name = $level2.class_name|escape:'html':'UTF-8'}
{/if}
{assign var="levelOneClass" value=''}
{if $level2.current and not $collapse_menu}
{assign var="levelOneClass" value=" link-active open ul-open"}
{elseif $level2.current and $collapse_menu}
{assign var="levelOneClass" value=" link-active"}
{/if}
<li class="link-levelone{if $level2.sub_tabs|@count} has_submenu{/if}{$levelOneClass}" data-submenu="{$level2.id_tab}" id="subtab-{$level2.class_name}">
<a href="{$level2Href}" class="link">
<i class="material-icons mi-{$level2.icon}">{$level2.icon}</i>
<span>
{$level2Name}
</span>
{if $level1.sub_tabs|@count}
<i class="material-icons sub-tabs-arrow">
{if $level2.current}
keyboard_arrow_up
{else}
keyboard_arrow_down
{/if}
</i>
{/if}
</a>
{if $level2.sub_tabs|@count}
<ul id="collapse-{$level2.id_tab}" class="submenu panel-collapse">
{foreach $level2.sub_tabs as $level3}
{if $level3.active}
{$level3Href = $level3.href|escape:'html':'UTF-8'}
{$level3Name = $level3.name|escape:'html':'UTF-8'}
{if $level3.name eq ''}
{$level3Name = $level3.class_name|escape:'html':'UTF-8'}
{/if}
<li class="link-leveltwo{if $level3.current} link-active{/if}" data-submenu="{$level3.id_tab}" id="subtab-{$level3.class_name}">
<a href="{$level3Href}" class="link"> {$level3Name}
</a>
</li>
{/if}
{/foreach}
</ul>
{/if}
</li>
{/if}
{/foreach}
{/if}
{/if}
{/foreach}
</ul>
</div>
{hook h='displayAdminNavBarBeforeEnd'}
</nav>

View File

@@ -0,0 +1,40 @@
{**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*}
<div id="non-responsive" class="js-non-responsive">
<h1>{l s='Oh no!'}</h1>
<p class="mt-3">
{l s='The mobile version of this page is not available yet.'}
</p>
<p class="mt-2">
{l s='Please use a desktop computer to access this page, until is adapted to mobile.'}
</p>
<p class="mt-2">
{l s='Thank you.'}
</p>
<a href="{$default_tab_link|escape:'html':'UTF-8'}" class="btn btn-primary py-1 mt-3">
<i class="material-icons">arrow_back</i>
{l s='Back' d='Admin.Global'}
</a>
</div>

View File

@@ -0,0 +1,146 @@
{**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*}
<div id="notif" class="notification-center dropdown dropdown-clickable">
<button class="btn notification js-notification dropdown-toggle" data-toggle="dropdown">
<i class="material-icons">notifications_none</i>
<span id="notifications-total" class="count hide">0</span>
</button>
<div class="dropdown-menu dropdown-menu-right js-notifs_dropdown">
<div class="notifications">
<ul class="nav nav-tabs" role="tablist">
{$active = "active"}
{if $show_new_orders}
<li class="nav-item">
<a
class="nav-link {$active}"
id="orders-tab"
data-toggle="tab"
data-type="order"
href="#orders-notifications"
role="tab"
>
{l s='Orders[1][/1]' html=true sprintf=['[1]' => '<span id="_nb_new_orders_">', '[/1]' => '</span>'] d='Admin.Navigation.Notification'}
</a>
</li>
{$active = ""}
{/if}
{if $show_new_customers}
<li class="nav-item">
<a
class="nav-link {$active}"
id="customers-tab"
data-toggle="tab"
data-type="customer"
href="#customers-notifications"
role="tab"
>
{l s='Customers[1][/1]' html=true sprintf=['[1]' => '<span id="_nb_new_customers_">', '[/1]' => '</span>'] d='Admin.Navigation.Notification'}
</a>
</li>
{$active = ""}
{/if}
{if $show_new_messages}
<li class="nav-item">
<a
class="nav-link {$active}"
id="messages-tab"
data-toggle="tab"
data-type="customer_message"
href="#messages-notifications"
role="tab"
>
{l s='Messages[1][/1]' html=true sprintf=['[1]' => '<span id="_nb_new_messages_">', '[/1]' => '</span>'] d='Admin.Navigation.Notification'}
</a>
</li>
{$active = ""}
{/if}
</ul>
<!-- Tab panes -->
<div class="tab-content">
{$active = "active"}
{if $show_new_orders}
<div class="tab-pane {$active} empty" id="orders-notifications" role="tabpanel">
<p class="no-notification">
{l s='No new order for now :(' d='Admin.Navigation.Notification'}<br>
{$no_order_tip}
</p>
<div class="notification-elements"></div>
</div>
{$active = ""}
{/if}
{if $show_new_customers}
<div class="tab-pane {$active} empty" id="customers-notifications" role="tabpanel">
<p class="no-notification">
{l s='No new customer for now :(' d='Admin.Navigation.Notification'}<br>
{$no_customer_tip}
</p>
<div class="notification-elements"></div>
</div>
{$active = ""}
{/if}
{if $show_new_messages}
<div class="tab-pane {$active} empty" id="messages-notifications" role="tabpanel">
<p class="no-notification">
{l s='No new message for now.' d='Admin.Navigation.Notification'}<br>
{$no_customer_message_tip}
</p>
<div class="notification-elements"></div>
</div>
{$active = ""}
{/if}
</div>
</div>
</div>
</div>
{if $show_new_orders}
<script type="text/html" id="order-notification-template">
<a class="notif" href='order_url'>
#_id_order_ -
{l s='from' d='Admin.Navigation.Notification'} <strong>_customer_name_</strong> (_iso_code_)_carrier_
<strong class="float-sm-right">_total_paid_</strong>
</a>
</script>
{/if}
{if $show_new_customers}
<script type="text/html" id="customer-notification-template">
<a class="notif" href='customer_url'>
#_id_customer_ - <strong>_customer_name_</strong>_company_ - {l s='registered' d='Admin.Navigation.Notification'} <strong>_date_add_</strong>
</a>
</script>
{/if}
{if $show_new_messages}
<script type="text/html" id="message-notification-template">
<a class="notif" href='message_url'>
<span class="message-notification-status _status_">
<i class="material-icons">fiber_manual_record</i> _status_
</span>
- <strong>_customer_name_</strong> (_company_) - <i class="material-icons">access_time</i> _date_add_
</a>
</script>
{/if}

View File

@@ -0,0 +1,52 @@
{* Quick access *}
<div class="dropdown quick-accesses">
<button class="btn btn-link btn-sm dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" id="quick_select">
{l s='Quick Access' d='Admin.Navigation.Header'}
</button>
<div class="dropdown-menu">
{foreach $quick_access as $quick}
<a class="dropdown-item quick-row-link{if $link->matchQuickLink({$quick.link})}{assign "matchQuickLink" $quick.id_quick_access} active{/if}"
href="{$quick.link|escape:'html':'UTF-8'}"
{if $quick.new_window} target="_blank"{/if}
data-item="{$quick.name}"
>{$quick.name}</a>
{/foreach}
<div class="dropdown-divider"></div>
{if isset($matchQuickLink)}
<a id="quick-remove-link"
class="dropdown-item js-quick-link"
href="#"
data-method="remove"
data-quicklink-id="{$matchQuickLink}"
data-rand="{1|rand:200}"
data-icon="{$quick_access_current_link_icon}"
data-url="{$link->getQuickLink($smarty.server['REQUEST_URI']|escape:'javascript')}"
data-post-link="{$link->getAdminLink('AdminQuickAccesses')}"
data-prompt-text="{l s='Please name this shortcut:' js=1 d='Admin.Navigation.Header'}"
data-link="{$quick_access_current_link_name|truncate:32}"
>
<i class="material-icons">remove_circle_outline</i>
{l s='Remove from Quick Access' d='Admin.Navigation.Header'}
</a>
{else}
<a id="quick-add-link"
class="dropdown-item js-quick-link"
href="#"
data-rand="{1|rand:200}"
data-icon="{$quick_access_current_link_icon}"
data-method="add"
data-url="{$link->getQuickLink($smarty.server['REQUEST_URI']|escape:'javascript')}"
data-post-link="{$link->getAdminLink('AdminQuickAccesses')}"
data-prompt-text="{l s='Please name this shortcut:' js=1 d='Admin.Navigation.Header'}"
data-link="{$quick_access_current_link_name|truncate:32}"
>
<i class="material-icons">add_circle</i>
{l s='Add current page to Quick Access' d='Admin.Actions'}
</a>
{/if}
<a id="quick-manage-link" class="dropdown-item" href="{$link->getAdminLink("AdminQuickAccesses")|addslashes}">
<i class="material-icons">settings</i>
{l s='Manage your quick accesses' d='Admin.Navigation.Header'}
</a>
</div>
</div>

View File

@@ -0,0 +1,66 @@
{**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*}
<form id="header_search"
class="bo_search_form dropdown-form js-dropdown-form collapsed"
method="post"
action="{$baseAdminUrl}index.php?controller=AdminSearch&amp;token={getAdminToken tab='AdminSearch'}"
role="search">
<input type="hidden" name="bo_search_type" id="bo_search_type" class="js-search-type" />
{if isset($show_clear_btn) && $show_clear_btn}
<a href="#" class="clear_search hide"><i class="icon-remove"></i></a>
{/if}
<div class="input-group">
<input type="text" class="form-control js-form-search" id="bo_query" name="bo_query" value="{$bo_query}" placeholder="{l s='Search (e.g.: product reference, customer name…)' d='Admin.Navigation.Header'}" aria-label="{l s='Searchbar' d='Admin.Navigation.Header'}">
<div class="input-group-append">
<button type="button" class="btn btn-outline-secondary dropdown-toggle js-dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{l s='Everywhere' d='Admin.Navigation.Header'}
</button>
<div class="dropdown-menu js-items-list">
<a class="dropdown-item" data-item="{l s='Everywhere' d='Admin.Navigation.Header'}" href="#" data-value="0" data-placeholder="{l s='What are you looking for?' d='Admin.Navigation.Header'}" data-icon="icon-search"><i class="material-icons">search</i> {l s='Everywhere' d='Admin.Navigation.Header'}</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" data-item="{l s='Catalog' d='Admin.Global'}" href="#" data-value="1" data-placeholder="{l s='Product name, reference, etc.' d='Admin.Navigation.Header'}" data-icon="icon-book"><i class="material-icons">store_mall_directory</i> {l s='Catalog' d='Admin.Global'}</a>
<a class="dropdown-item" data-item="{l s='Customers' d='Admin.Navigation.Header'} {l s='by name'}" href="#" data-value="2" data-placeholder="{l s='Name' d='Admin.Navigation.Header'}" data-icon="icon-group"><i class="material-icons">group</i> {l s='Customers' d='Admin.Navigation.Header'} {l s='by name' d='Admin.Navigation.Header'}</a>
<a class="dropdown-item" data-item="{l s='Customers' d='Admin.Navigation.Header'} {l s='by ip address'}" href="#" data-value="6" data-placeholder="{l s='123.45.67.89' d='Admin.Navigation.Header'}" data-icon="icon-desktop"><i class="material-icons">desktop_mac</i> {l s='Customers' d='Admin.Navigation.Header'} {l s='by IP address' d='Admin.Navigation.Header'}</a>
<a class="dropdown-item" data-item="{l s='Orders' d='Admin.Global'}" href="#" data-value="3" data-placeholder="{l s='Order ID' d='Admin.Navigation.Header'}" data-icon="icon-credit-card"><i class="material-icons">shopping_basket</i> {l s='Orders' d='Admin.Global'}</a>
<a class="dropdown-item" data-item="{l s='Invoices' d='Admin.Global'}" href="#" data-value="4" data-placeholder="{l s='Invoice number' d='Admin.Navigation.Header'}" data-icon="icon-book"><i class="material-icons">book</i> {l s='Invoices' d='Admin.Global'}</a>
<a class="dropdown-item" data-item="{l s='Carts' d='Admin.Global'}" href="#" data-value="5" data-placeholder="{l s='Cart ID' d='Admin.Navigation.Header'}" data-icon="icon-shopping-cart"><i class="material-icons">shopping_cart</i> {l s='Carts' d='Admin.Global'}</a>
<a class="dropdown-item" data-item="{l s='Modules' d='Admin.Global'}" href="#" data-value="7" data-placeholder="{l s='Module name' d='Admin.Navigation.Header'}" data-icon="icon-puzzle-piece"><i class="material-icons">extension</i> {l s='Modules' d='Admin.Global'}</a>
</div>
<button class="btn btn-primary" type="submit"><span class="d-none">{l s='SEARCH' d='Admin.Navigation.Header'}</span><i class="material-icons">search</i></button>
</div>
</div>
</form>
<script type="text/javascript">
$(document).ready(function(){
{if isset($search_type) && $search_type}
$('.search-option a[data-value='+{$search_type|intval}+']').click();
{/if}
$('#bo_query').one('click', function() {
$(this).closest('form').removeClass('collapsed');
});
});
</script>

View File

@@ -0,0 +1,57 @@
{**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*}
{if isset($is_multishop)
&& $is_multishop
&& $shop_list
&& (
isset($multishop_context)
&& $multishop_context & Shop::CONTEXT_GROUP
|| $multishop_context & Shop::CONTEXT_SHOP
|| $multishop_context & Shop::CONTEXT_ALL
)}
<div id="shop-list" class="shop-list dropdown ps-dropdown stores">
<button class="btn btn-link" type="button" data-toggle="dropdown">
<span class="selected-item">
<i class="material-icons visibility">visibility</i>
{if !isset($current_shop_name) || $current_shop_name == ''}
{l s='All shops' d='Admin.Global'}
{else}
{$current_shop_name}
{/if}
<i class="material-icons arrow-down">arrow_drop_down</i>
</span>
</button>
<div class="dropdown-menu dropdown-menu-right ps-dropdown-menu">
{$shop_list}
</div>
</div>
{else}
<div class="shop-list">
<a class="link" id="header_shopname" href="{$base_url|escape:'html':'UTF-8'}" target= "_blank">
<i class="material-icons">visibility</i>
<span>{l s='View my shop' d='Admin.Navigation.Header'}</span>
</a>
</div>
{/if}

View File

@@ -0,0 +1,39 @@
{**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*}
{if count($warnings)}
<div class="bootstrap">
<div class="alert alert-warning">
<button type="button" class="close" data-dismiss="alert">&times;</button>
{if count($warnings) > 1}
<h4>{l s='There are %d warnings.' sprintf=[count($warnings)] d='Admin.Notifications.Error'}</h4>
{/if}
<ul class="list-unstyled">
{foreach $warnings as $warning}
<li>{$warning}</li>
{/foreach}
</ul>
</div>
</div>
{/if}