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.

create.html.twig 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. {% embed "@LcShop/backend/default/block/embed_modal.twig" %}
  2. {% trans_default_domain 'lcshop' %}
  3. {% block id %}modal-new-ticket{% endblock %}
  4. {% block title %}{{ "action.ticket.writeToUser"|trans }}{% endblock %}
  5. {% block form_start %}
  6. {{ form_start(form, {'attr': { 'id' : 'newTicket', 'action': path('easyadmin', {'entity' : 'Ticket', 'action': 'new'})}}) }}
  7. {% form_theme form '@LcShop/backend/form/custom_modal_bootstrap_4.html.twig' %}
  8. {% endblock %}
  9. {% block content %}
  10. <div class="col">
  11. {{ form_row(form.user) }}
  12. {{ form_row(form.subject) }}
  13. {% if form.orderId.vars.value is not empty %}
  14. <p>
  15. <strong>Ce ticket concernera la commande #{{ form.orderId.vars.value }}</strong><br />
  16. <i>Si vous ne le souhaitez pas, écrivez à l'utilisateur depuis l'onglet utilisateur</i>
  17. </p>
  18. {% endif %}
  19. {{ form_rest(form) }}
  20. </div>
  21. {% endblock %}
  22. {% block footer %}
  23. {{ parent() }}
  24. <button type="button" class="btn btn-primary btn-save" >{{ 'action.send'|trans }}</button>
  25. {#{{ form_rest(form) }}#}
  26. {% endblock %}
  27. {% block form_end %}
  28. {{ form_end(form) }}
  29. {% endblock %}
  30. {% endembed %}