add a title on page "list activities" and statement if empty

fix #16
This commit is contained in:
Julien Fastré 2016-06-08 21:35:31 +02:00
parent 1e476b39da
commit ef76453fbc
2 changed files with 8 additions and 1 deletions

View File

@ -17,6 +17,7 @@ Update activity: Édition de l'activité
Scope: Cercle
Activity data: Données de l'activité
No reason associated: Aucun sujet
There isn't any activities.: Aucune activité enregistrée.
#forms
Activity creation: Nouvelle activité

View File

@ -23,6 +23,11 @@
{% block title %}{{ 'Activity list' |trans }}{% endblock title %}
{% block personcontent %}
<h2>{{ 'Activity list' |trans }}</h2>
{% if activities|length == 0 %}
<p class="chill-no-data-statement">{{ "There isn't any activities."|trans }}</p>
{% else %}
<table class="records_list">
<thead>
<tr>
@ -68,6 +73,7 @@
{% endfor %}
</tbody>
</table>
{% endif %}
<p>
<a href="{{ path('chill_activity_activity_new', {'person_id': person.id}) }}" class="sc-button bt-create">