mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
37 lines
1.0 KiB
Twig
37 lines
1.0 KiB
Twig
{% extends '@ChillEvent/layout.html.twig' %}
|
|
|
|
{% block title 'Event edit'|trans %}
|
|
|
|
{% block event_content -%}
|
|
<div class="col-10">
|
|
<h1>{{ 'Event edit'|trans }}</h1>
|
|
|
|
{{ form_start(edit_form) }}
|
|
{{ form_errors(edit_form) }}
|
|
{{ form_row(edit_form.circle) }}
|
|
{{ form_row(edit_form.name) }}
|
|
{{ form_row(edit_form.date) }}
|
|
|
|
{{ form_row(edit_form.type, { 'label': 'Event type' }) }}
|
|
{{ form_row(edit_form.moderator) }}
|
|
|
|
<ul class="record_actions">
|
|
<li class="cancel">
|
|
|
|
{% set returnPath = app.request.get('return_path') %}
|
|
{% set returnLabel = app.request.get('return_label') %}
|
|
|
|
<a href="{{ returnPath |default( path('chill_event_list_most_recent') ) }}" class="btn btn-cancel">
|
|
{{ returnLabel |default('Back to the most recent events'|trans) }}
|
|
</a>
|
|
</li>
|
|
<li>
|
|
{{ form_widget(edit_form.submit, { 'attr' : { 'class' : 'btn btn-update' } }) }}
|
|
</li>
|
|
</ul>
|
|
|
|
{{ form_end(edit_form) }}
|
|
|
|
</div>
|
|
{% endblock %}
|