Skip to content

Commit

Permalink
fix event group form
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerrialn committed Apr 27, 2024
1 parent c4f5ff0 commit 2039980
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Controller/Controller/Group/EventGroupController.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Routing\Attribute\Route;
use Symfony\Component\Security\Http\Attribute\CurrentUser;
use Symfony\Contracts\Translation\TranslatorInterface;

Expand Down
1 change: 1 addition & 0 deletions src/Form/Form/EventGroup/EventGroupFormType.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
'class' => Category::class,
'choice_label' => 'title',
'choice_translation_domain' => true,
'multiple' => true,
'autocomplete' => true,
'row_attr' => [
'class' => 'form-floating',
Expand Down
4 changes: 3 additions & 1 deletion templates/groups/create.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
<div class="container">
<div class="row justify-content-center mt-3">
<div class="col-12 col-md-6">
{{ component('event_group_form_component') }}
{{ component('event_group_form_component', {
eventGroup: null
}) }}
</div>
</div>
</div>
Expand Down

0 comments on commit 2039980

Please sign in to comment.