Browse Source

Merge branch 'develop' of https://gitea.laclic.fr/Laclic/LcShopBundle into develop

feature/export_comptable
Fab 4 years ago
parent
commit
c6b85c2866
2 changed files with 6 additions and 1 deletions
  1. +4
    -1
      ShopBundle/Form/Backend/Common/AddressType.php
  2. +2
    -0
      ShopBundle/Resources/views/backend/default/block/form_address.html.twig

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

@@ -5,6 +5,7 @@ namespace Lc\ShopBundle\Form\Backend\Common;
use Lc\ShopBundle\Model\Address;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\Extension\Core\Type\CollectionType;
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Doctrine\ORM\EntityManagerInterface;
@@ -60,7 +61,9 @@ class AddressType extends AbstractType
])
->add('company', TextType::class, ['required' => false])
->add('siret', TextType::class, ['required' => false])
->add('tva', TextType::class, ['required' => false]);
->add('tva', TextType::class, ['required' => false])
->add('country', HiddenType::class, ['data' => 'France'])
;

}


+ 2
- 0
ShopBundle/Resources/views/backend/default/block/form_address.html.twig View File

@@ -57,4 +57,6 @@
{{ form_row(form.deliveryInfos) }}
</div>

{{ form_row(form.country) }}

</div>

Loading…
Cancel
Save