mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-14 14:24:24 +00:00
sort events by date (DESC)
This commit is contained in:
parent
42c9a24472
commit
c235fb75a7
@ -294,6 +294,7 @@ class EventController extends Controller
|
|||||||
JOIN participation.event event
|
JOIN participation.event event
|
||||||
WHERE participation.person = :person_id
|
WHERE participation.person = :person_id
|
||||||
AND event.circle IN (:reachable_circles)
|
AND event.circle IN (:reachable_circles)
|
||||||
|
ORDER BY event.date DESC
|
||||||
")
|
")
|
||||||
->setParameters(array(
|
->setParameters(array(
|
||||||
':person_id' => $person_id,
|
':person_id' => $person_id,
|
||||||
|
@ -30,10 +30,6 @@
|
|||||||
<th class="chill-red">{{ 'Name'|trans }}</th>
|
<th class="chill-red">{{ 'Name'|trans }}</th>
|
||||||
<th class="chill-green">{{ 'Date'|trans }}</th>
|
<th class="chill-green">{{ 'Date'|trans }}</th>
|
||||||
<th class="chill-orange">{{ 'Event type'|trans }}</th>
|
<th class="chill-orange">{{ 'Event type'|trans }}</th>
|
||||||
{#
|
|
||||||
<th class="chill-green">{{ 'Circle'|trans }}</th>
|
|
||||||
<th class="chill-green">{{ 'Moderator'|trans }}</th>
|
|
||||||
#}
|
|
||||||
<th class="chill-red">{{ 'Role'|trans }}</th>
|
<th class="chill-red">{{ 'Role'|trans }}</th>
|
||||||
<th class="chill-green">{{ 'Status'|trans }}</th>
|
<th class="chill-green">{{ 'Status'|trans }}</th>
|
||||||
<th> </th>
|
<th> </th>
|
||||||
@ -49,10 +45,6 @@
|
|||||||
</td>
|
</td>
|
||||||
<td>{{ participation.event.date|localizeddate('long', 'short') }}</td>
|
<td>{{ participation.event.date|localizeddate('long', 'short') }}</td>
|
||||||
<td>{{ participation.event.type.name|localize_translatable_string }}</td>
|
<td>{{ participation.event.type.name|localize_translatable_string }}</td>
|
||||||
{#
|
|
||||||
<td>{{ participation.event.circle.name|localize_translatable_string }}</td>
|
|
||||||
<td>{{ participation.event.moderator|trans|default('-') }}</td>
|
|
||||||
#}
|
|
||||||
<td>{{ participation.role.name|localize_translatable_string }}</td>
|
<td>{{ participation.role.name|localize_translatable_string }}</td>
|
||||||
<td>{{ participation.status.name|localize_translatable_string }}</td>
|
<td>{{ participation.status.name|localize_translatable_string }}</td>
|
||||||
<td>
|
<td>
|
||||||
@ -69,8 +61,7 @@
|
|||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if is_granted('CHILL_EVENT_PARTICIPATION_UPDATE', participation) %}
|
{% if is_granted('CHILL_EVENT_PARTICIPATION_UPDATE', participation) %}
|
||||||
<a href="{{ path('chill_event_participation_edit', { 'participation_id' : participation.id } ) }}"
|
<a href="{{ path('chill_event_participation_edit', { 'participation_id' : participation.id } ) }}" class="sc-button bt-edit">
|
||||||
class="sc-button bt-edit">
|
|
||||||
{{ 'Edit'|trans }}
|
{{ 'Edit'|trans }}
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -88,6 +79,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
|
{#
|
||||||
<pre>
|
<pre>
|
||||||
/!\ dev notes
|
/!\ dev notes
|
||||||
=============
|
=============
|
||||||
@ -98,7 +90,6 @@
|
|||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
{{ dump() }}
|
{{ dump() }}
|
||||||
{#
|
|
||||||
#}
|
#}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
x
Reference in New Issue
Block a user