Basic form to create an Event

This commit is contained in:
Marc Ducobu 2016-03-22 18:59:59 +01:00
parent 26fa6a2c56
commit 041c43a936
2 changed files with 13 additions and 5 deletions

View File

@ -16,10 +16,18 @@ class EventType extends AbstractType
{
$builder
->add('label')
->add('date')
->add(
'date',
'date',
array(
'required' => true,
'widget' => 'single_text',
'format' => 'dd-MM-yyyy'
)
)
->add('center')
->add('type')
->add('circle')
//->add('type')
//->add('circle')
;
}

View File

@ -1,6 +1,6 @@
{% extends '::base.html.twig' %}
{% extends 'ChillEventBundle::layout.html.twig' %}
{% block body -%}
{% block event_content -%}
<h1>Event creation</h1>
{{ form(form) }}