-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaddress-update.html.twig
42 lines (36 loc) · 1.41 KB
/
address-update.html.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{% extends 'base.html.twig' %}
{% block title %}
{{ 'New Address'| trans }}
{% endblock %}
{% set address = resources('/api/front/account/addresses/' ~ addressId) %}
{% block body %}
<main>
{% include "@components/Molecules/Button/Button.html.twig" with {
text: 'My delivery addresses' | trans,
href: path('account_addresses'),
variant: 'minimal',
icon_left: 'chevron-left',
classes: 'mt-2 lg:mt-6 lg:ml-5',
} %}
<div class="lg:w-[400px] mx-6 lg:mx-auto mt-4 lg:mt-8 lg:mt-120 mb-20">
<div class='text-black h3 mb-6 lg:mb-[44px]'>{{'My Address' | trans}}</div>
{% set form = getForm("thelia_address_update", address) %}
{{ form_start(form, {attr : {
class: 'flex flex-col gap-6',
'action': path('account_address_update', {addressId}),
'method': 'POST'
}})}}
{{ form_errors(form) }}
{{form_row(form.success_url, { value: path('account_addresses',{update_success : true}) }) }}
{{form_row(form.error_url, { value: path('account_address_update',{addressId}) }) }}
{{form_rest(form)}}
<div class="flex justify-center mt-4">
{% include "@components/Molecules/Button/Button.html.twig" with {text: 'Update address' | trans, classes: 'Button--large lg:w-full', type: 'submit' } %}
</div>
{{ form_end(form) }}
</div>
</main>
{% endblock %}
{% block footer %}
{% include '@components/Layout/Footer/FooterCheckout.html.twig' %}
{% endblock %}