mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
minor changes
This commit is contained in:
parent
8c3c9c4a1f
commit
ad45e71051
@ -442,4 +442,7 @@ class EventController extends Controller
|
||||
return $builder->getForm();
|
||||
}
|
||||
|
||||
// pour aller plus loin
|
||||
// TODO ?? inclure le type d'événement et la date dans les résultats de recherche (ex: on tape 'vis' --> il affiche les visites )
|
||||
// TODO ?? exclure des résultats les événement déjà sélectionnés pour une personne. empêcher d'inscrire 2x une personne !
|
||||
}
|
||||
|
@ -120,8 +120,9 @@ class PickEventType extends AbstractType
|
||||
$resolver->setDefaults(array(
|
||||
'class' => Event::class,
|
||||
'choice_label' => function(Event $e) {
|
||||
return $e->getDate()->format('d-m-Y'). ' ' .$e->getName();
|
||||
// TODO ajouter si possible le type de l'événement !
|
||||
return $e->getDate()->format('d/m/Y, H:i') . ' → ' .
|
||||
// $e->getType()->getName()['fr'] . ': ' . // display the type of event
|
||||
$e->getName();
|
||||
},
|
||||
'placeholder' => 'Pick an event',
|
||||
'attr' => array('class' => 'select2 '),
|
||||
@ -133,6 +134,7 @@ class PickEventType extends AbstractType
|
||||
return new EventChoiceLoader($this->eventRepository, $centers);
|
||||
}
|
||||
));
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -27,8 +27,8 @@
|
||||
<table class="events">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="chill-red">{{ 'Name'|trans }}</th>
|
||||
<th class="chill-green">{{ 'Date'|trans }}</th>
|
||||
<th class="chill-red">{{ 'Name'|trans }}</th>
|
||||
<th class="chill-orange">{{ 'Event type'|trans }}</th>
|
||||
<th class="chill-red">{{ 'Role'|trans }}</th>
|
||||
<th class="chill-green">{{ 'Status'|trans }}</th>
|
||||
@ -38,8 +38,8 @@
|
||||
<tbody>
|
||||
{% for participation in participations %}
|
||||
<tr>
|
||||
<td>{{ participation.event.name }}</td>
|
||||
<td>{{ participation.event.date|localizeddate('long', 'short') }}</td>
|
||||
<td>{{ participation.event.name }}</td>
|
||||
<td>{{ participation.event.type.name|localize_translatable_string }}</td>
|
||||
<td>{{ participation.role.name|localize_translatable_string }}</td>
|
||||
<td>{{ participation.status.name|localize_translatable_string }}</td>
|
||||
|
@ -120,7 +120,9 @@ class EventSearch extends AbstractSearch
|
||||
foreach ($search as $item) {
|
||||
$results[] = [
|
||||
'id' => $item->getId(),
|
||||
'text' => $item->getDate()->format('d-m-Y, H:i'). ' → ' .$item->getName()
|
||||
'text' => $item->getDate()->format('d/m/Y, H:i') . ' → ' .
|
||||
// $item->getType()->getName()['fr'] . ': ' . // display the type of event
|
||||
$item->getName()
|
||||
];
|
||||
}
|
||||
return [
|
||||
|
Loading…
x
Reference in New Issue
Block a user