From 4ef4a64ea65fdd088766ddd46e3a5f14592b9a6f Mon Sep 17 00:00:00 2001 From: Marc Ducobu Date: Fri, 2 Oct 2015 14:55:58 +0200 Subject: [PATCH] Template for ActivityReasonCategory with translation + better looking - refs #622 --- Resources/views/ActivityReason/show.html.twig | 4 +- .../ActivityReasonCategory/index.html.twig | 42 +++++++++++-------- .../ActivityReasonCategory/show.html.twig | 16 +++---- 3 files changed, 36 insertions(+), 26 deletions(-) diff --git a/Resources/views/ActivityReason/show.html.twig b/Resources/views/ActivityReason/show.html.twig index 830fd466e..e9d07d5b6 100644 --- a/Resources/views/ActivityReason/show.html.twig +++ b/Resources/views/ActivityReason/show.html.twig @@ -26,14 +26,14 @@ {{ entity.name|localize_translatable_string }} - {{ 'Active' }} + {{ 'Active'|trans }} {% if entity.active %}

{{ 'The entity is active and will be proposed'|trans }}

{% else %}

{{ "The entity is inactive and won't be proposed"|trans }}

{% endif %} - + diff --git a/Resources/views/ActivityReasonCategory/index.html.twig b/Resources/views/ActivityReasonCategory/index.html.twig index afbd867cd..43135ade8 100644 --- a/Resources/views/ActivityReasonCategory/index.html.twig +++ b/Resources/views/ActivityReasonCategory/index.html.twig @@ -22,37 +22,45 @@ - - - - + + + {% for entity in entities %} - - - + + {% endfor %}
IdNameActiveActions{{ 'Name'|trans }}{{ 'Active'|trans }}Active{{ 'Actions'|trans }}
{{ entity.id }}{{ entity.name|localize_translatable_string }}{{ entity.active }} - + + {{ entity.name|localize_translatable_string }} + + + {% if entity.active %} +

{{ 'Active'|trans }}

+ {% else %} +

{{ "Inactive"|trans }}

+ {% endif %} +
+
-