Quellcode durchsuchen

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

feature/export_comptable
Fab vor 4 Jahren
Ursprung
Commit
c6b85c2866
2 geänderte Dateien mit 6 neuen und 1 gelöschten Zeilen
  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 Datei anzeigen

@@ -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 Datei anzeigen

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

{{ form_row(form.country) }}

</div>

Laden…
Abbrechen
Speichern