Julien Fastré c9ce3aca96 some improvement to the Update / create event pages
- i18n of all the form
- add a title to each page
- chill layout of each page
- add flash message on successfully creation and update action

For the update page, (see #23), the user is not allowed to update
the center

close #23
close #2
2016-03-24 23:00:45 +01:00

29 lines
816 B
Twig

{% extends 'ChillEventBundle::layout.html.twig' %}
{% block title 'Event creation'|trans %}
{% block event_content -%}
<h1>{{ 'Event creation'|trans }}</h1>
{{ form_start(form) }}
{{ form_errors(form) }}
{{ form_row(form.circle) }}
{{ form_row(form.center) }}
{{ form_row(form.label) }}
{{ form_row(form.date) }}
{{ form_row(form.type, { 'label': 'Event type' }) }}
<ul class="record_actions">
<li>
<a href="{{ path('chill_event_list_most_recent') }}" class="sc-button bt-cancel">
{{ 'Back to the most recent events'|trans }}
</a>
</li>
<li>
{{ form_widget(form.submit, { 'attr' : { 'class' : 'sc-button bt-create' } }) }}
</li>
</ul>
{{ form_end(form) }}
{% endblock %}