No puede seleccionar más de 25 temas
Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
|
- {% extends '@LcSov/adminlte/layout.html.twig' %}
-
- {% block navbar_header %}
- {{ parent() }}
-
- {% set section_current = section_resolver.getCurrent() %}
-
- <nav class="carac navbar navbar-expand navbar-light main-header" style="border-color: {{ section_current.color }};">
- <ul class="navbar-nav left">
- {% for section in carac_get_sections() %}
- <li class="nav-item d-none d-sm-inline-block">
- {% set form_switch_section = carac_get_form_switch_section(section) %}
- {% form_theme form_switch_section '@LcSov/adminlte/crud/form_theme.html.twig' %}
- {{ form_start(form_switch_section) }}
- {{ form(form_switch_section) }}
- {{ form_end(form_switch_section) }}
- </li>
- {% endfor %}
- </ul>
- <ul class="navbar-nav ml-auto right">
- <li class="nav-item nav-switch-merchant">
- <i class="fa fa-store"></i>
- {% set form_switch_merchant = carac_get_form_switch_merchant('admin') %}
- {% form_theme form_switch_merchant '@LcSov/adminlte/crud/form_theme.html.twig' %}
- {{ form_start(form_switch_merchant) }}
- {{ form(form_switch_merchant) }}
- {{ form_end(form_switch_merchant) }}
- </li>
- </ul>
- </nav>
- {% endblock %}
-
- {% block append_body %}
- {# modal switch merchant #}
- {% set user = app.user %}
- {% set merchant_current = merchant_resolver.getCurrent() %}
-
- {% if(user.favoriteMerchant != merchant_current) %}
- {# modal affichée uniquement si la sessionStorage.visit_merchant n'est pas défini (js) #}
- {% embed '@LcSov/adminlte/embed/modal.twig' %}
- {% block id %}carac-modal-switch-merchant{% endblock %}
- {% block size %}modal-lg{% endblock %}
- {% block title %}
- Bienvenue sur le marchand <i>{{ merchant_current.getTitle() }}</i>
- {% endblock %}
- {% block body %}
- {% if not user.favoriteMerchant %}
- <p>Vous n'avez pas de marchand favoris.</p>
- {% endif %}
- {% if user.favoriteMerchant and user.favoriteMerchant != merchant_current %}
- <p>Vous n'êtes pas sur votre marchand par favoris.</p>
- {% endif %}
- <p>Vous pouvez soit définir le marchand <strong>{{ merchant_current.getTitle() }}</strong>
- comme marchand favoris ou simplement indiquer que vous visitez ce marchand pour aujourd'hui.</p>
- {% endblock %}
- {% block footer %}
- {% set form_switch_merchant = carac_get_form_switch_merchant('admin', 'carac_favorite_merchant') %}
- {% form_theme form_switch_merchant '@LcSov/adminlte/crud/form_theme.html.twig' %}
- {{ form_start(form_switch_merchant) }}
- {{ form(form_switch_merchant) }}
- {{ form_end(form_switch_merchant) }}
- <button id="carac-button-visit-merchant" type="button" class="btn btn-default"
- data-dismiss="modal">Visiter</button>
- {% endblock %}
- {% endembed %}
- {% endif %}
- {% endblock %}
|