mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
added button for moderators and fixed participant styling
This commit is contained in:
parent
46c647cbb7
commit
d50d067bf7
@ -18,6 +18,7 @@ use Chill\MainBundle\Entity\Center;
|
|||||||
use Chill\MainBundle\Form\Type\ChillCollectionType;
|
use Chill\MainBundle\Form\Type\ChillCollectionType;
|
||||||
use Chill\MainBundle\Form\Type\ChillDateTimeType;
|
use Chill\MainBundle\Form\Type\ChillDateTimeType;
|
||||||
use Chill\MainBundle\Form\Type\CommentType;
|
use Chill\MainBundle\Form\Type\CommentType;
|
||||||
|
use Chill\MainBundle\Form\Type\PickUserDynamicType;
|
||||||
use Chill\MainBundle\Form\Type\PickUserLocationType;
|
use Chill\MainBundle\Form\Type\PickUserLocationType;
|
||||||
use Chill\MainBundle\Form\Type\ScopePickerType;
|
use Chill\MainBundle\Form\Type\ScopePickerType;
|
||||||
use Chill\MainBundle\Form\Type\UserPickerType;
|
use Chill\MainBundle\Form\Type\UserPickerType;
|
||||||
@ -45,14 +46,9 @@ class EventType extends AbstractType
|
|||||||
'class' => '',
|
'class' => '',
|
||||||
],
|
],
|
||||||
])
|
])
|
||||||
->add('moderator', UserPickerType::class, [
|
->add('moderator', PickUserDynamicType::class, [
|
||||||
'center' => $options['center'],
|
'label' => 'Pick a moderator',
|
||||||
'role' => $options['role'],
|
|
||||||
'placeholder' => 'Pick a moderator',
|
|
||||||
'attr' => [
|
|
||||||
'class' => '',
|
|
||||||
],
|
|
||||||
'required' => false,
|
|
||||||
])
|
])
|
||||||
->add('location', PickUserLocationType::class, [
|
->add('location', PickUserLocationType::class, [
|
||||||
'label' => 'event.fields.location',
|
'label' => 'event.fields.location',
|
||||||
|
@ -1,10 +1,14 @@
|
|||||||
{% extends '@ChillEvent/layout.html.twig' %}
|
{% extends '@ChillEvent/layout.html.twig' %} {% block js %}
|
||||||
|
{{ encore_entry_script_tags("mod_async_upload") }}
|
||||||
|
{{ encore_entry_script_tags("mod_pickentity_type") }}
|
||||||
|
|
||||||
{% block title 'Event edit'|trans %}
|
{% endblock %} {% block css %}
|
||||||
|
{{ encore_entry_link_tags("mod_async_upload") }}
|
||||||
|
{{ encore_entry_link_tags("mod_pickentity_type") }}
|
||||||
|
|
||||||
{% block event_content -%}
|
{% endblock %} {% block title 'Event edit'|trans %} {% block event_content -%}
|
||||||
<div class="col-10">
|
<div class="col-10">
|
||||||
<h1>{{ 'Event edit'|trans }}</h1>
|
<h1>{{ "Event edit" | trans }}</h1>
|
||||||
|
|
||||||
{{ form_start(edit_form) }}
|
{{ form_start(edit_form) }}
|
||||||
{{ form_errors(edit_form) }}
|
{{ form_errors(edit_form) }}
|
||||||
@ -12,7 +16,7 @@
|
|||||||
{{ form_row(edit_form.name) }}
|
{{ form_row(edit_form.name) }}
|
||||||
{{ form_row(edit_form.date) }}
|
{{ form_row(edit_form.date) }}
|
||||||
|
|
||||||
{{ form_row(edit_form.type, { 'label': 'Event type' }) }}
|
{{ form_row(edit_form.type, { label: "Event type" }) }}
|
||||||
{{ form_row(edit_form.moderator) }}
|
{{ form_row(edit_form.moderator) }}
|
||||||
{{ form_row(edit_form.location) }}
|
{{ form_row(edit_form.location) }}
|
||||||
{{ form_row(edit_form.organizationCost) }}
|
{{ form_row(edit_form.organizationCost) }}
|
||||||
@ -22,16 +26,22 @@
|
|||||||
|
|
||||||
<ul class="record_actions sticky-form-buttons">
|
<ul class="record_actions sticky-form-buttons">
|
||||||
<li class="cancel">
|
<li class="cancel">
|
||||||
<a href="{{ chill_return_path_or('chill_event_event_list') }}" class="btn btn-cancel">
|
<a
|
||||||
{{ 'List of events'|trans|chill_return_path_label }}
|
href="{{ chill_return_path_or('chill_event_event_list') }}"
|
||||||
|
class="btn btn-cancel"
|
||||||
|
>
|
||||||
|
{{ "List of events" | trans | chill_return_path_label }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
{{ form_widget(edit_form.submit, { 'attr' : { 'class' : 'btn btn-update' } }) }}
|
{{
|
||||||
|
form_widget(edit_form.submit, {
|
||||||
|
attr: { class: "btn btn-update" }
|
||||||
|
})
|
||||||
|
}}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
{{ form_end(edit_form) }}
|
{{ form_end(edit_form) }}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -1,7 +1,11 @@
|
|||||||
{% extends '@ChillEvent/layout.html.twig' %} {% block js %}
|
{% extends '@ChillEvent/layout.html.twig' %} {% block js %}
|
||||||
{{ encore_entry_script_tags("mod_async_upload") }}
|
{{ encore_entry_script_tags("mod_async_upload") }}
|
||||||
|
{{ encore_entry_script_tags("mod_pickentity_type") }}
|
||||||
|
|
||||||
{% endblock %} {% block css %}
|
{% endblock %} {% block css %}
|
||||||
{{ encore_entry_link_tags("mod_async_upload") }}
|
{{ encore_entry_link_tags("mod_async_upload") }}
|
||||||
|
{{ encore_entry_link_tags("mod_pickentity_type") }}
|
||||||
|
|
||||||
{% endblock %} {% block title 'Event creation'|trans %} {% block event_content
|
{% endblock %} {% block title 'Event creation'|trans %} {% block event_content
|
||||||
-%}
|
-%}
|
||||||
<div class="col-10">
|
<div class="col-10">
|
||||||
@ -12,12 +16,10 @@
|
|||||||
{{ form_row(form.circle) }}
|
{{ form_row(form.circle) }}
|
||||||
{{ form_row(form.name) }}
|
{{ form_row(form.name) }}
|
||||||
{{ form_row(form.date) }}
|
{{ form_row(form.date) }}
|
||||||
|
|
||||||
{{ form_row(form.type, { label: "Event type" }) }}
|
{{ form_row(form.type, { label: "Event type" }) }}
|
||||||
{{ form_row(form.moderator) }}
|
{{ form_row(form.moderator) }}
|
||||||
{{ form_row(form.location) }}
|
{{ form_row(form.location) }}
|
||||||
{{ form_row(form.organizationCost) }}
|
{{ form_row(form.organizationCost) }}
|
||||||
|
|
||||||
{{ form_row(form.comment) }}
|
{{ form_row(form.comment) }}
|
||||||
{{ form_row(form.documents) }}
|
{{ form_row(form.documents) }}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user