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.

60 líneas
2.0KB

  1. {% extends app.request.query.get('action') == 'edit' ? '@LcShop/backend/default/edit.html.twig' : '@LcShop/backend/default/new.html.twig' %}
  2. {% trans_default_domain 'lcshop' %}
  3. {% block global_actions %}
  4. <button id="btn-ticket-write-to-user"
  5. data-url="{{ path('easyadmin', {'entity': 'Ticket', 'action': 'new'}) }}"
  6. data-user="{{ entity.id }}"
  7. class="btn-sm btn-success"
  8. type="button"><i class="fa fa-pen-alt"></i> {{ "action.ticket.writeToUser"|trans }}</button>
  9. {% endblock %}
  10. {% block entity_form %}
  11. {% import '@LcShop/backend/default/block/macros.html.twig' as macros %}
  12. {{ form_start(form) }}
  13. {% form_theme form '@LcShop/backend/form/custom_bootstrap_4.html.twig' %}
  14. <div class="row">
  15. <div class="col-7">
  16. {{ macros.card_start() }}
  17. <div class="col">
  18. {% for field in form.children %}
  19. {{ form_row(field) }}
  20. {% endfor %}
  21. </div>
  22. {{ macros.card_end() }}
  23. </div>
  24. <div class="col-5">
  25. <div class="row" id="user-addresses">
  26. {% for address in entity.addresses %}
  27. {% if address.status >=0 %}
  28. {% include '@LcShop/backend/user/block_useraddress.html.twig' %}
  29. {% endif %}
  30. {% endfor %}
  31. </div>
  32. <button type="button"
  33. data-url="{{ path('easyadmin', {"action": 'editAddressUser', 'entity': 'User', 'id': entity.id, 'addressId': 'new'}) }}"
  34. class="btn btn-primary btn-add-user-address"><i
  35. class="fa fa-plus"></i> {{ 'action.address.add'|trans }}
  36. </button>
  37. </div>
  38. </div>
  39. {{ form_end(form) }}
  40. {% endblock entity_form %}
  41. {% block script_javascript %}
  42. {{ parent() }}
  43. {% include '@LcShop/backend/default/block/script-vuejs.html.twig' %}
  44. <script src="{{ asset('bundles/lcshop/js/backend/script/user/init-edit.js')|lc_cache }}"></script>
  45. {% endblock %}