{% extends app.request.query.get('action') == 'edit' ? '@LcShop/backend/default/edit.html.twig' : '@LcShop/backend/default/new.html.twig' %} {% trans_default_domain 'lcshop' %} {% block global_actions %} {% endblock %} {% block entity_form %} {% import '@LcShop/backend/default/block/macros.html.twig' as macros %} {{ form_start(form) }} {% form_theme form '@LcShop/backend/form/custom_bootstrap_4.html.twig' %}
{{ macros.card_start() }}
{% for field in form.children %} {{ form_row(field) }} {% endfor %}
{{ macros.card_end() }}
{% for address in entity.addresses %} {% if address.status >=0 %} {% include '@LcShop/backend/user/block_useraddress.html.twig' %} {% endif %} {% endfor %}
{{ form_end(form) }} {% endblock entity_form %} {% block script_javascript %} {{ parent() }} {% include '@LcShop/backend/default/block/script-vuejs.html.twig' %} {% endblock %}