Amelioration UI

This commit is contained in:
Marc Ducobu 2015-12-04 19:39:47 +01:00
parent 58cd4be383
commit 49339d78fa
2 changed files with 9 additions and 12 deletions

View File

@ -37,8 +37,8 @@
<td>{% if report.date %}{{ report.date|localizeddate('long', 'none') }}{% endif %}</td> <td>{% if report.date %}{{ report.date|localizeddate('long', 'none') }}{% endif %}</td>
<td>{{ report.cFGroup.getName(app.request.locale) }}</td> <td>{{ report.cFGroup.getName(app.request.locale) }}</td>
<td>{{ report.scope.name|localize_translatable_string }}</td> <td>{{ report.scope.name|localize_translatable_string }}</td>
<td><a href="{{ path('report_view', { 'person_id': report.person.id, 'report_id': report.id }) }}">{{ 'View the report' | trans }}</a></td> <td><a href="{{ path('report_view', { 'person_id': report.person.id, 'report_id': report.id }) }}" class="sc-button black">{{ 'View' | trans }}</a></td>
<td><a href="{{ path('report_edit', { 'person_id': report.person.id, 'report_id': report.id }) }}">{{ 'Update the report' | trans }}</a></td> <td><a href="{{ path('report_edit', { 'person_id': report.person.id, 'report_id': report.id }) }}" class="sc-button bt-update">{{ 'Update' | trans }}</a></td>
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>

View File

@ -22,26 +22,23 @@
{% block personcontent %} {% block personcontent %}
<h2 class="chill-red">{{ 'Details'|trans }}</h2>
<a href="{{ path('report_edit', { 'person_id': entity.person.id, 'report_id': entity.id }) }}"><i class="fa fa-pencil"></i> {{ 'Update the report'|trans }}</a>
<h2>{{ 'Details'|trans }}</h2>
<dl> <dl>
<dt class="inline">{{ 'Person'|trans }}</dt> <dt>{{ 'Person'|trans }}&nbsp;:</dt>
<dd>{{ entity.person }}</dd> <dd>{{ entity.person }}</dd>
<dt class="inline">{{ 'Scope'|trans }}</dt> <dt>{{ 'Scope'|trans }}&nbsp;:</dt>
<dd><span class="scope">{{ entity.scope.name|localize_translatable_string }}</span></dd> <dd><span class="scope">{{ entity.scope.name|localize_translatable_string }}</span></dd>
<dt class="inline">{{ 'Date'|trans }}</dt> <dt>{{ 'Date'|trans }}&nbsp;:</dt>
<dd>{{ entity.date|localizeddate('long', 'none') }}</dd> <dd>{{ entity.date|localizeddate('long', 'none') }}</dd>
<dt class="inline">{{ 'User'|trans }}</dt> <dt>{{ 'User'|trans }}&nbsp;:</dt>
<dd>{{ entity.user }}</dd> <dd>{{ entity.user }}</dd>
<dt class="inline">{{ 'Report type'|trans }}</dt> <dt>{{ 'Report type'|trans }}&nbsp;:</dt>
<dd>{{ entity.cFGroup.getName(app.request.locale) }}</dd> <dd>{{ entity.cFGroup.getName(app.request.locale) }}</dd>
{{ chill_custom_fields_group_widget(entity.cFData, entity.cFGroup) }} {{ chill_custom_fields_group_widget(entity.cFData, entity.cFGroup) }}
</dl> </dl>
<a href="{{ path('report_edit', { 'person_id': entity.person.id, 'report_id': entity.id }) }}"><i class="fa fa-pencil"></i> {{ 'Update the report' | trans }}</a> <a class="sc-button bt-update" href="{{ path('report_edit', { 'person_id': entity.person.id, 'report_id': entity.id }) }}"><i class="fa fa-pencil"></i> {{ 'Update the report' | trans }}</a>
{% endblock %} {% endblock %}