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.

26 lines
1.3KB

  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') %}
  19. {% form_theme form_switch_merchant '@LcSov/adminlte/crud/form_theme.html.twig' %}
  20. {{ form_start(form_switch_merchant) }}
  21. {{ form(form_switch_merchant) }}
  22. {{ form_end(form_switch_merchant) }}
  23. <button id="carac-button-visit-merchant" type="button" class="btn btn-default"
  24. data-dismiss="modal">Visiter</button>
  25. {% endblock %}
  26. {% endembed %}