Browse Source

[Backend] Adresses : ajout de latitudeOverride et longitudeOverride

feature/export_comptable
Guillaume 4 years ago
parent
commit
82d109b7f1
2 changed files with 10 additions and 4 deletions
  1. +1
    -1
      ShopBundle/Form/Backend/Common/AddressType.php
  2. +9
    -3
      ShopBundle/Resources/views/backend/default/block/form_address.html.twig

+ 1
- 1
ShopBundle/Form/Backend/Common/AddressType.php View File

@@ -48,9 +48,9 @@ class AddressType extends AbstractType
])
->add('lastname', TextType::class, ['required' => false])
->add('firstname', TextType::class, ['required' => false])
->add('address', TextareaType::class)
->add('zip', TextType::class)
->add('city', TextType::class)
->add('address', TextType::class)
->add('phone', CollectionType::class, [
'allow_add'=>true,
'allow_delete'=>true,

+ 9
- 3
ShopBundle/Resources/views/backend/default/block/form_address.html.twig View File

@@ -21,15 +21,15 @@
<div class="col-6">
{{ form_row(form.firstname) }}
</div>
<div class="col-12">
{{ form_row(form.address) }}
</div>
<div class="col-6">
{{ form_row(form.zip) }}
</div>
<div class="col-6">
{{ form_row(form.city) }}
</div>
<div class="col-12">
{{ form_row(form.address) }}
</div>
<div class="col-12">
{{ form_row(form.phone) }}
</div>
@@ -57,6 +57,12 @@
<div class="col-6">
{{ form_row(form.longitude) }}
</div>
<div class="col-6">
{{ form_row(form.latitudeOverride) }}
</div>
<div class="col-6">
{{ form_row(form.longitudeOverride) }}
</div>

{{ form_row(form.country) }}


Loading…
Cancel
Save