|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- {% 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 class="col-6">
- <button type="button" data-url="{{ path('easyadmin', {"action": 'editAddressUser', 'entity': 'User', 'id': entity.id, 'addressId': 'new'}) }}"
- class="btn btn-primary btn-edit-user-address" ><i class="fa fa-plus"></i> {{ 'action.address.add'|trans }}
- </button>
-
- </div>
- </div>
- </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 %}
|