From b154f5db6530d74651df8bae5951e834f5d12d26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Sat, 19 Aug 2017 20:11:45 +0200 Subject: [PATCH] improve layout of list --- Resources/views/Activity/edit.html.twig | 14 ++++++++---- Resources/views/Activity/list.html.twig | 29 ++++++++++++++++-------- Resources/views/Activity/show.html.twig | 7 +++++- Test/Fixtures/App/.DS_Store | Bin 6148 -> 0 bytes Test/Fixtures/App/app/.DS_Store | Bin 6148 -> 0 bytes 5 files changed, 35 insertions(+), 15 deletions(-) delete mode 100644 Test/Fixtures/App/.DS_Store delete mode 100644 Test/Fixtures/App/app/.DS_Store diff --git a/Resources/views/Activity/edit.html.twig b/Resources/views/Activity/edit.html.twig index c0e082920..0c52cadf4 100644 --- a/Resources/views/Activity/edit.html.twig +++ b/Resources/views/Activity/edit.html.twig @@ -38,10 +38,16 @@ {{ form_widget(edit_form) }} -
- - -
+ {{ form_end(edit_form) }} {# {{ form(delete_form) }} #} diff --git a/Resources/views/Activity/list.html.twig b/Resources/views/Activity/list.html.twig index d2d53d64c..1379d3472 100644 --- a/Resources/views/Activity/list.html.twig +++ b/Resources/views/Activity/list.html.twig @@ -26,7 +26,10 @@

{{ 'Activity list' |trans }}

{% if activities|length == 0 %} -

{{ "There isn't any activities."|trans }}

+

+ {{ "There isn't any activities."|trans }} + +

{% else %} @@ -54,17 +57,21 @@
{% endif %} -

- - {{ 'Add a new activity' | trans }} - -

+ {% endblock %} diff --git a/Resources/views/Activity/show.html.twig b/Resources/views/Activity/show.html.twig index db769ee18..5f3b00b9f 100644 --- a/Resources/views/Activity/show.html.twig +++ b/Resources/views/Activity/show.html.twig @@ -41,9 +41,14 @@