You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.5KB

  1. {% embed '@LcSov/adminlte/embed/modal.twig' %}
  2. {% block id %}carac-modal-switch-merchant{% endblock %}
  3. {% block size %}modal-lg{% endblock %}
  4. {% block title %}
  5. Bienvenue sur le marchand <i>{{ merchant_current.getTitle() }}</i>
  6. {% endblock %}
  7. {% block body %}
  8. {% if not user.favoriteMerchant %}
  9. <p>Vous n'avez pas de marchand favoris.</p>
  10. {% endif %}
  11. {% if user.favoriteMerchant and user.favoriteMerchant != merchant_current %}
  12. <p>Vous n'êtes pas sur votre marchand par favoris.</p>
  13. {% endif %}
  14. <p>Vous pouvez soit définir le marchand <strong>{{ merchant_current.getTitle() }}</strong>
  15. comme marchand favoris ou simplement indiquer que vous visitez ce marchand pour aujourd'hui.</p>
  16. {% endblock %}
  17. {% block footer %}
  18. {% set form_switch_merchant = carac_form_switch_merchant('admin', 'carac_merchant_favorite_admin') %}
  19. {% form_theme form_switch_merchant '@LcSov/adminlte/crud/form_theme.html.twig' %}
  20. {{ form_start(form_switch_merchant) }}
  21. <div class="hidden">
  22. {{ form_widget(form_switch_merchant.merchant, {attr:{'class': 'disable-select2'}}) }}
  23. </div>
  24. {{ form_rest(form_switch_merchant) }}
  25. {{ form_end(form_switch_merchant) }}
  26. <button id="carac-button-visit-merchant" type="button" class="btn btn-default"
  27. data-dismiss="modal">Visiter
  28. </button>
  29. {% endblock %}
  30. {% endembed %}