show budget and time-budget columns in listing views (#2429)

This commit is contained in:
Kevin Papst
2021-03-13 20:44:10 +01:00
committed by GitHub
parent 3e9371bd6a
commit ec0eca39ff
7 changed files with 24 additions and 6 deletions

View File

@@ -16,13 +16,14 @@
{% block box_body %}
<table class="table table-hover dataTable" role="grid">
<tbody>
{% for stats in projectStats|sort((a, b) => a.project.name <=> b.project.name) %}
{% set project = stats.project %}
<tr{% if is_granted('details', stats.project) %} class="alternative-link open-edit" data-href="{{ path('project_details', {'id': stats.project.id}) }}"{% endif %}>
{% for row in projectStats|sort((a, b) => a.project.name <=> b.project.name) %}
{% set stats = row.stats %}
{% set project = row.project %}
<tr{% if is_granted('details', project) %} class="alternative-link open-edit" data-href="{{ path('project_details', {'id': project.id}) }}"{% endif %}>
<td>
{{ widgets.label_project(stats.project) }}
{{ widgets.label_project(project) }}
<br>
<small>{{ widgets.label_customer(stats.project.customer) }}</small>
<small>{{ widgets.label_customer(project.customer) }}</small>
</td>
<td class="hidden-xs hidden-sm hidden-md">
{% for team in project.teams %}