feat: dedicated logos per country for accommodation bookings
This commit is contained in:
@@ -5,8 +5,10 @@ declare(strict_types=1);
|
||||
namespace App\Form\Admin\Groups;
|
||||
|
||||
use App\Entity\Groups\Accommodation;
|
||||
use App\Enum\Groups\AccommodationCountry;
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\EnumType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\IntegerType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\TextType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
@@ -38,6 +40,11 @@ class AccommodationType extends AbstractType
|
||||
'CHF' => 'CHF',
|
||||
],
|
||||
])
|
||||
->add('country', EnumType::class, [
|
||||
'label' => 'Land',
|
||||
'class' => AccommodationCountry::class,
|
||||
'choice_label' => fn (AccommodationCountry $country): string => $country->label(),
|
||||
])
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user