mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-14 06:14:23 +00:00
Basic form to create an Event
This commit is contained in:
parent
26fa6a2c56
commit
041c43a936
@ -16,10 +16,18 @@ class EventType extends AbstractType
|
|||||||
{
|
{
|
||||||
$builder
|
$builder
|
||||||
->add('label')
|
->add('label')
|
||||||
->add('date')
|
->add(
|
||||||
|
'date',
|
||||||
|
'date',
|
||||||
|
array(
|
||||||
|
'required' => true,
|
||||||
|
'widget' => 'single_text',
|
||||||
|
'format' => 'dd-MM-yyyy'
|
||||||
|
)
|
||||||
|
)
|
||||||
->add('center')
|
->add('center')
|
||||||
->add('type')
|
//->add('type')
|
||||||
->add('circle')
|
//->add('circle')
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{% extends '::base.html.twig' %}
|
{% extends 'ChillEventBundle::layout.html.twig' %}
|
||||||
|
|
||||||
{% block body -%}
|
{% block event_content -%}
|
||||||
<h1>Event creation</h1>
|
<h1>Event creation</h1>
|
||||||
|
|
||||||
{{ form(form) }}
|
{{ form(form) }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user