layout of show and list

- remove attendee from list
- multiple case in show + layout
This commit is contained in:
Julien Fastré 2015-07-05 23:45:49 +02:00
parent 943032a918
commit 7f367a857e
3 changed files with 5 additions and 4 deletions

View File

@ -14,6 +14,7 @@ not present: absent
Delete: Supprimer
Update: Mettre à jour
Update activity: Édition de l'activité
Scope: Cercle
#forms
Activity creation: Nouvelle activité

View File

@ -28,7 +28,6 @@
<th>{{'Duration Time' | trans }}</th>
<th>{{'Reason' | trans}}</th>
<th>{{'Type' | trans}}</th>
<th>{{'Attendee' | trans }}</th>
<th></th>
<th></th>
</tr>
@ -40,7 +39,6 @@
<td>{{ activity.durationTime|date('H:i') }}</td>
<td>{{ activity.reason.name | localize_translatable_string }}</td>
<td>{{ activity.type.name | localize_translatable_string }}</td>
<td>{{ activity.attendee }}</td>
<td>
<a href="{{ path('chill_activity_activity_show', { 'id': activity.id, 'person_id': person.id }) }}">{{ 'Show the activity' | trans }}</a>
</td>

View File

@ -3,6 +3,8 @@
{% set activeRouteKey = 'chill_activity_activity_list' %}
{% block personcontent -%}
<h1>{{ "Activity"|trans }}</h1>
<a href="{{ path('chill_activity_activity_edit', { 'id': entity.id, 'person_id': person.id }) }}">
<i class="fa fa-pencil"></i> {{ 'Edit the activity'|trans }}
</a>
@ -23,9 +25,9 @@
<dt class="inline">{{ 'Type'|trans }}</dt>
<dd>{{ entity.type.name | localize_translatable_string }}</dd>
<dt class="inline">{{ 'Attendee'|trans }}</dt>
<dd>{{ entity.attendee }}</dd>
<dd>{% if entity.attendee is not null %}{% if entity.attendee %}{{ 'present'|trans|capitalize }} {% else %} {{ 'not present'|trans|capitalize }}{% endif %}{% else %}{{ 'None'|trans|capitalize }}{% endif %}</dd>
<dt class="inline">{{ 'Remark'|trans }}</dt>
<dd>{{ entity.remark }}</dd>
<dd>{% if entity.remark is empty %}{{ 'No remarks'|trans }}{% else %}<pre>{{ entity.remark }}</pre>{% endif %}</dd>
<dt class="inline">{{ ''|trans }}</dt>
<dd></dd>
<dt class="inline">{{ ''|trans }}</dt>