mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
#16 EventBundle participation (fix errors and improve ux)
This commit is contained in:
parent
fc607d6a0e
commit
9623a35e6f
@ -151,7 +151,7 @@ class PickEventType extends AbstractType
|
||||
} else {
|
||||
$centers = $this->authorizationHelper->getReachableCenters(
|
||||
$this->user,
|
||||
(string) $options['role']
|
||||
(string) $options['role']->getRole()
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -108,31 +108,14 @@
|
||||
{{ chill_pagination(paginator) }}
|
||||
{% endif %}
|
||||
|
||||
<div class="input-group mb-3">
|
||||
<div class="input-group mt-3">
|
||||
{{ 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' } } ) }}
|
||||
<div class="input-group-append input-group-btn">
|
||||
{#
|
||||
<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' } } ) }}
|
||||
{{ form_widget(form_add_event_participation_by_person.submit, { 'attr' : { 'class' : 'btn btn-sm btn-success' } } ) }}
|
||||
</div>
|
||||
{{ form_rest(form_add_event_participation_by_person) }}
|
||||
{{ form_end(form_add_event_participation_by_person) }}
|
||||
</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 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user