feat: dedicated logos per country for accommodation bookings

This commit is contained in:
Björn Fromme
2026-08-05 12:28:43 +02:00
parent 84df3a94d9
commit e5fa63b7e8
13 changed files with 171 additions and 3 deletions
@@ -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(),
])
;
}