mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
add time to event dates
This commit is contained in:
parent
97d79c5a22
commit
7836ece3ee
@ -2,8 +2,8 @@
|
||||
|
||||
namespace Chill\EventBundle\Form;
|
||||
|
||||
use Chill\MainBundle\Form\Type\ChillDateTimeType;
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\DateType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
|
||||
use Chill\EventBundle\Form\Type\PickEventType;
|
||||
@ -69,10 +69,8 @@ class EventType extends AbstractType
|
||||
|
||||
$builder
|
||||
->add('name')
|
||||
->add('date', DateType::class, array(
|
||||
'required' => true,
|
||||
'widget' => 'single_text',
|
||||
'format' => 'dd-MM-yyyy'
|
||||
->add('date', ChillDateTimeType::class, array(
|
||||
'required' => true
|
||||
)
|
||||
)
|
||||
->add('center', EntityType::class, array(
|
||||
|
@ -19,7 +19,7 @@
|
||||
{% for event in events %}
|
||||
<tr>
|
||||
<td>{{ event.name }}</td>
|
||||
<td>{{ event.date|localizeddate('long', 'none') }}</td>
|
||||
<td>{{ event.date|localizeddate('long', 'short') }}</td>
|
||||
<td>{{ event.type.name|localize_translatable_string }}</td>
|
||||
<td>
|
||||
<ul class="record_actions">
|
||||
|
@ -15,7 +15,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ 'Date'|trans }}</th>
|
||||
<td>{{ event.date|localizeddate('long', 'none') }}</td>
|
||||
<td>{{ event.date|localizeddate('long', 'short') }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ 'Event type'|trans }}</th>
|
||||
|
@ -13,7 +13,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ 'Date'|trans }} </th>
|
||||
<td>{{ event.date|localizeddate('long', 'none') }}</td>
|
||||
<td>{{ event.date|localizeddate('long', 'short') }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -47,7 +47,6 @@
|
||||
<ul class="record_actions">
|
||||
<li>
|
||||
<a href="{{ path('chill_event__event_show', { 'event_id' : event.id } ) }}" class="sc-button bt-cancel">
|
||||
<i class="fa fa-arrow-left"></i>
|
||||
{{ 'Back to the event'|trans }}
|
||||
</a>
|
||||
</li>
|
||||
|
@ -17,7 +17,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ 'Date'|trans }} </th>
|
||||
<td>{{ participation.event.date|localizeddate('long', 'none') }}</td>
|
||||
<td>{{ participation.event.date|localizeddate('long', 'short') }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -29,7 +29,6 @@
|
||||
<ul class="record_actions">
|
||||
<li>
|
||||
<a href="{{ path('chill_event__event_show', { 'event_id' : participation.event.id } ) }}" class="sc-button bt-cancel">
|
||||
<i class="fa fa-arrow-left"></i>
|
||||
{{ 'Back to the event'|trans }}
|
||||
</a>
|
||||
</li>
|
||||
|
Loading…
x
Reference in New Issue
Block a user