allow report edit w/ scope + add deny statements

[ci skip]
This commit is contained in:
2015-06-25 22:42:19 +02:00
parent 8445e81d44
commit c10445c8a4
2 changed files with 31 additions and 11 deletions

View File

@@ -26,7 +26,7 @@
<tr>
<th>{{ 'Date' | trans }}</th>
<th>{{ 'Report type' | trans }}</th>
<!-- <th>{{ 'Report scope' | trans }}</th> -->
<th>{{ 'Report scope' | trans }}</th>
<th></th>
<th></th>
</tr>
@@ -36,7 +36,7 @@
<tr>
<td>{% if report.date %}{{ report.date|localizeddate('long', 'none') }}{% endif %}</td>
<td>{{ report.cFGroup.getName(app.request.locale) }}</td>
<!-- <td>{{ report.scope }}</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_edit', { 'person_id': report.person.id, 'report_id': report.id }) }}">{{ 'Update the report' | trans }}</a></td>
</tr>