Se abre cada mañana al arrancar la tienda: tarjeta grande junto a Punto de venta, Beyond y Contactos. Referencia por string, sin dependencia dura.
50 lines
2.8 KiB
XML
50 lines
2.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<templates xml:space="preserve">
|
|
<!--
|
|
C-005/C-006 · Lanzador Beyond. Se extiende el menú de apps nativo
|
|
(ADR-005): botón de casa, y las apps repartidas en DOS BANDAS desde
|
|
la plantilla — diarias y ocasionales — para que cada banda alinee
|
|
tarjetas de un solo tamaño (C-006: nada de mosaicos irregulares).
|
|
-->
|
|
<t t-name="beyond_base.NavBar.AppsMenu"
|
|
t-inherit="web.NavBar.AppsMenu"
|
|
t-inherit-mode="extension">
|
|
<xpath expr="//button[@data-hotkey='h']/i" position="replace">
|
|
<i class="fa fa-home fs-4"/>
|
|
</xpath>
|
|
<xpath expr="//DropdownItem[@t-foreach='apps']" position="replace">
|
|
<!-- Referencias por string: si un módulo no está instalado, su
|
|
xmlid simplemente no empata (sin dependencia dura). El
|
|
Kiosco (C-023) es de uso diario: se abre cada mañana. -->
|
|
<t t-set="beyondDaily"
|
|
t-value="['point_of_sale.menu_point_root', 'beyond_attendance_qr.menu_kiosco_app', 'beyond_branch.menu_beyond_root', 'contacts.menu_contacts']"/>
|
|
<div class="beyond_launcher_band beyond_launcher_daily">
|
|
<t t-foreach="apps" t-as="app" t-key="app.id">
|
|
<DropdownItem
|
|
t-if="beyondDaily.includes(app.xmlid)"
|
|
class="{ 'o_app': true, 'beyond_app_card': true, focus: menuService.getCurrentApp() === app }"
|
|
onSelected="() => this.onNavBarDropdownItemSelection(app)"
|
|
attrs="{ href: getMenuItemHref(app), 'data-menu-xmlid': app.xmlid, 'data-section': app.id }"
|
|
>
|
|
<img t-if="app.webIconData" class="beyond_app_icon" t-att-src="app.webIconData" alt=""/>
|
|
<span class="beyond_app_name" t-esc="app.name"/>
|
|
</DropdownItem>
|
|
</t>
|
|
</div>
|
|
<div class="beyond_launcher_band beyond_launcher_ocasional">
|
|
<t t-foreach="apps" t-as="app" t-key="app.id">
|
|
<DropdownItem
|
|
t-if="!beyondDaily.includes(app.xmlid)"
|
|
class="{ 'o_app': true, 'beyond_app_card': true, focus: menuService.getCurrentApp() === app }"
|
|
onSelected="() => this.onNavBarDropdownItemSelection(app)"
|
|
attrs="{ href: getMenuItemHref(app), 'data-menu-xmlid': app.xmlid, 'data-section': app.id }"
|
|
>
|
|
<img t-if="app.webIconData" class="beyond_app_icon" t-att-src="app.webIconData" alt=""/>
|
|
<span class="beyond_app_name" t-esc="app.name"/>
|
|
</DropdownItem>
|
|
</t>
|
|
</div>
|
|
</xpath>
|
|
</t>
|
|
</templates>
|