improvements
This commit is contained in:
@@ -1,39 +1,33 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
{% import "macros/widgets.html.twig" as widgets %}
|
||||
{% import "macros/datatables.html.twig" as tables %}
|
||||
|
||||
{% block page_title %}{{ 'admin_project.title'|trans }}{% endblock %}
|
||||
{% block page_subtitle %}{{ 'admin_project.subtitle'|trans }}{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
{% if entries.count > 0 %}
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ 'label.id'|trans }}</th>
|
||||
<th><i class="fa fa-bookmark-o"></i> {{ 'label.name'|trans }}</th>
|
||||
<th><i class="fa fa-comment-o"></i> {{ 'label.comment'|trans }}</th>
|
||||
<th><i class="fa fa-eye"></i> {{ 'label.visible'|trans }}</th>
|
||||
<th><i class="fa fa-tasks"></i> {{ 'label.activity'|trans }}</th>
|
||||
<th><i class="fa fa-credit-card"></i> {{ 'label.budget'|trans }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for entry in entries %}
|
||||
<tr>
|
||||
<td>{{ entry.id }}</td>
|
||||
<td>{{ entry.name }}</td>
|
||||
<td>{{ entry.comment }}</td>
|
||||
<td>{{ widgets.badge_visible(entry.visible) }}</td>
|
||||
<td>{{ widgets.badge_counter(entry.activities.count) }}</td>
|
||||
<td>{{ entry.budget}}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{{ tables.data_table_header({
|
||||
'label.id': '',
|
||||
'label.name': 'bookmark-o',
|
||||
'label.comment': 'comment-o',
|
||||
'label.activity': 'tasks',
|
||||
'label.budget': 'credit-card',
|
||||
'label.visible': 'eye',
|
||||
}) }}
|
||||
|
||||
<div class="navigation text-center">
|
||||
{{ pagerfanta(entries, 'twitter_bootstrap3_translated', { routeName: 'admin_project_paginated' }) }}
|
||||
</div>
|
||||
{% for entry in entries %}
|
||||
<tr>
|
||||
<td>{{ entry.id }}</td>
|
||||
<td>{{ entry.name }}</td>
|
||||
<td>{{ entry.comment }}</td>
|
||||
<td>{{ widgets.badge_counter(entry.activities.count) }}</td>
|
||||
<td>{{ entry.budget|money}}</td>
|
||||
<td>{{ widgets.label_visible(entry.visible) }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
{{ tables.data_table_footer(entries, 'admin_project_paginated') }}
|
||||
{% else %}
|
||||
{{ widgets.callout('warning', 'error.no_entries_found') }}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user