mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 05:44:24 +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 {
|
} else {
|
||||||
$centers = $this->authorizationHelper->getReachableCenters(
|
$centers = $this->authorizationHelper->getReachableCenters(
|
||||||
$this->user,
|
$this->user,
|
||||||
(string) $options['role']
|
(string) $options['role']->getRole()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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 %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user