Sfoglia il codice sorgente

[Backend] Adresses : ajout de latitudeOverride et longitudeOverride

feature/export_comptable
Guillaume 4 anni fa
parent
commit
82d109b7f1
2 ha cambiato i file con 10 aggiunte e 4 eliminazioni
  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 Vedi 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 Vedi 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…
Annulla
Salva