From 1ab9b44737c153841b65825a015c339981285406 Mon Sep 17 00:00:00 2001 From: Marc Ducobu Date: Wed, 12 Nov 2014 12:35:57 +0100 Subject: [PATCH] Report View CF --- Resources/views/Report/list.html.twig | 4 +- Resources/views/Report/show.html.twig | 66 ++++++++++++--------------- 2 files changed, 33 insertions(+), 37 deletions(-) diff --git a/Resources/views/Report/list.html.twig b/Resources/views/Report/list.html.twig index bf5e53ee2..a14b373e8 100644 --- a/Resources/views/Report/list.html.twig +++ b/Resources/views/Report/list.html.twig @@ -28,6 +28,7 @@ {{ 'Report Type' | trans }} {{ 'Report Scope' | trans }} + @@ -36,7 +37,8 @@ {% if report.date %}{{ report.date|date('d-m-Y') }}{% endif %} {{ report.cFGroup.getName(app.request.locale) }} {{ report.scope }} - {{ 'update' | trans }} + {{ 'View' | trans }} + {{ 'Update' | trans }} {% endfor %} diff --git a/Resources/views/Report/show.html.twig b/Resources/views/Report/show.html.twig index 539ac25ca..2579bdeb8 100644 --- a/Resources/views/Report/show.html.twig +++ b/Resources/views/Report/show.html.twig @@ -21,40 +21,34 @@ {% block title %}{{ 'Details d\' un rapport' |trans() }}{% endblock title %} {% block personcontent %} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Id{{ entity.id }}
User{{ entity.user }}
Person{{ entity.person }}
Date{{ entity.date|date('d-m-Y') }}
Scope{{ entity.scope }}
Cfdata{# { entity.cFData } #}
Cfgroup{{ entity.cFGroup.getName(app.request.locale) }}
{{ 'update' | trans }}
+ + + {{ 'Modifier' | trans }} + +

{{ 'Details'|trans }}

+ +
+
{{ 'Personne'|trans }}
+
{{ entity.person }}
+
{{ 'Scope'|trans }}
+
{{ entity.scope }}
+
{{ 'Date'|trans }}
+
{{ entity.date|date('d-m-Y') }}
+
{{ 'Agent'|trans }}
+
{{ entity.user }}
+
{{ 'Type de rapport'|trans }}
+
{{ entity.cFGroup.getName(app.request.locale) }}
+ + {% for customField in entity.cFGroup.customFields %} + {% if customField.type == 'title' %} + {{ chill_custom_field_widget(entity.cFData , customField) }} + {% else %} +
{{ chill_custom_field_label(customField) }}
+
{{ chill_custom_field_widget(entity.cFData , customField) }}
+ {% endif %} + {% endfor %} +
+ + {{ 'Modifier' | trans }} + {% endblock %} \ No newline at end of file