#16 EventBundle participation (fix errors and improve ux)

This commit is contained in:
Mathieu Jaumotte 2022-11-16 10:57:06 +01:00
parent fc607d6a0e
commit 9623a35e6f
2 changed files with 3 additions and 20 deletions

View File

@ -151,7 +151,7 @@ class PickEventType extends AbstractType
} else { } else {
$centers = $this->authorizationHelper->getReachableCenters( $centers = $this->authorizationHelper->getReachableCenters(
$this->user, $this->user,
(string) $options['role'] (string) $options['role']->getRole()
); );
} }

View File

@ -108,31 +108,14 @@
{{ chill_pagination(paginator) }} {{ chill_pagination(paginator) }}
{% endif %} {% endif %}
<div class="input-group mb-3"> <div class="input-group mt-3">
{{ form_start(form_add_event_participation_by_person) }} {{ form_start(form_add_event_participation_by_person) }}
{#
<input type="text" class="form-control" placeholder="Recipient's username" aria-label="Recipient's username" aria-describedby="button-addon2">
#}
{{ form_widget(form_add_event_participation_by_person.event_id, { 'attr' : { 'class' : 'form-control' } } ) }} {{ form_widget(form_add_event_participation_by_person.event_id, { 'attr' : { 'class' : 'form-control' } } ) }}
<div class="input-group-append input-group-btn"> <div class="input-group-append input-group-btn">
{# {{ form_widget(form_add_event_participation_by_person.submit, { 'attr' : { 'class' : 'btn btn-sm btn-success' } } ) }}
<button class="btn btn-outline-secondary" type="button" id="button-addon2">Button</button>
#}
{{ form_widget(form_add_event_participation_by_person.submit, { 'attr' : { 'class' : 'btn btn-success' } } ) }}
</div> </div>
{{ form_rest(form_add_event_participation_by_person) }} {{ form_rest(form_add_event_participation_by_person) }}
{{ form_end(form_add_event_participation_by_person) }} {{ form_end(form_add_event_participation_by_person) }}
</div> </div>
{#
{{ form(form_add_event_participation_by_person) }}
#}
<div class="input-group mb-3">
<input class="form-control" placeholder="Recipient's username">
<div class="input-group-append">
<button class="btn btn-success">Button</button>
</div>
</div>
{% endblock %} {% endblock %}