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

use Lc\ShopBundle\Model\Address; use Lc\ShopBundle\Model\Address;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType; use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\Extension\Core\Type\CollectionType; 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\TextareaType;
use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\Extension\Core\Type\TextType;
use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\EntityManagerInterface;
]) ])
->add('company', TextType::class, ['required' => false]) ->add('company', TextType::class, ['required' => false])
->add('siret', 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

{{ form_row(form.deliveryInfos) }} {{ form_row(form.deliveryInfos) }}
</div> </div>


{{ form_row(form.country) }}

</div> </div>

Loading…
Cancel
Save