選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

layout.html.twig 2.2KB

3年前
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {% extends '@LcSov/adminlte/layout.html.twig' %}
  2. {% block navbar_header %}
  3. {{ parent() }}
  4. {% set section_current = section_current() %}
  5. {% set is_display_switch_section = display_switch_section is defined and display_switch_section %}
  6. <nav class="carac navbar navbar-expand navbar-light main-header{% if is_display_switch_section %} display-section-switch{% endif %}" {% if is_display_switch_section %}style="border-color: {{ section_current.color }};"{% endif %}>
  7. {% if is_display_switch_section %}
  8. <ul class="navbar-nav left">
  9. {% for section in carac_sections() %}
  10. <li class="nav-item d-none d-sm-inline-block">
  11. {% set form_switch_section = carac_form_switch_section(section) %}
  12. {% form_theme form_switch_section '@LcSov/adminlte/crud/form_theme.html.twig' %}
  13. {{ form_start(form_switch_section) }}
  14. {{ form(form_switch_section) }}
  15. {{ form_end(form_switch_section) }}
  16. </li>
  17. {% endfor %}
  18. </ul>
  19. {% endif %}
  20. <ul class="navbar-nav ml-auto right">
  21. <li class="nav-item nav-switch-merchant">
  22. <i class="fa fa-store"></i>
  23. {% set form_switch_merchant = carac_form_switch_merchant('admin') %}
  24. {% form_theme form_switch_merchant '@LcSov/adminlte/crud/form_theme.html.twig' %}
  25. {{ form_start(form_switch_merchant) }}
  26. {{ form(form_switch_merchant) }}
  27. {{ form_end(form_switch_merchant) }}
  28. </li>
  29. </ul>
  30. </nav>
  31. {% endblock %}
  32. {% block reminders %}
  33. {% set reminders = carac_reminders(params_reminders) %}
  34. {% include '@LcSov/admin/reminder/block.html.twig' %}
  35. {% endblock %}
  36. {% block append_body %}
  37. {# modal switch merchant #}
  38. {% set user = app.user %}
  39. {% set merchant_current = merchant_current() %}
  40. {% if(user.favoriteMerchant != merchant_current) %}
  41. {# modal affichée uniquement si la sessionStorage.visit_merchant n'est pas défini (js) #}
  42. {% include '@LcCaracole/admin/merchant/modal/switch_merchant.html.twig' %}
  43. {% endif %}
  44. {% endblock %}