|
- {% extends app.request.query.get('action') == 'edit' ? '@LcShop/backend/default/edit.html.twig' : '@LcShop/backend/default/new.html.twig' %}
- {% trans_default_domain 'lcshop' %}
- {% 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' %}
- <div class="row">
- <div class="col-7">
- {{ macros.card_start() }}
- <div class="col">
- {% for field in form.children %}
- {{ form_row(field) }}
- {% endfor %}
- </div>
- {{ macros.card_end() }}
- </div>
-
-
- <div class="col-5">
- <div class="row" id="user-addresses">
- {% for address in entity.addresses %}
- {% include '@LcShop/backend/user/block_useraddress.html.twig' %}
- {% endfor %}
- </div>
- <button type="button" data-url="{{ path('easyadmin', {"action": 'editAddressUser', 'entity': 'User', 'id': entity.id, 'addressId': 'new'}) }}"
- class="btn btn-primary btn-add-user-address" ><i class="fa fa-plus"></i> {{ 'action.address.add'|trans }}
- </button>
-
- </div>
- </div>
-
-
- {{ form_end(form) }}
-
- {% endblock entity_form %}
-
-
- {% block script_javascript %}
- {{ parent() }}
- {% include '@LcShop/backend/default/block/script-vuejs.html.twig' %}
-
- <script src="{{ asset('bundles/lcshop/js/backend/script/user/init-edit.js') }}"></script>
-
- {% endblock %}
|