Ajout d'un export csv hebdomadaire sur les rapports

This commit is contained in:
2020-06-19 11:56:33 +02:00
parent 32c08bcb52
commit 7fbed84998
4 changed files with 151 additions and 47 deletions

View File

@@ -0,0 +1,15 @@
{% block body %}
{% for project in projects %}
{{ project.projectname|raw }}
{% for years in project %}
{% for year,weeks in years %}
{{year}}
;{% for week in weeks %}S{{week.weeknumber}};{% endfor %}
;{% for week in weeks %}{{week.cumul}};{% endfor %}
{% endfor %}
{% endfor %}
{% endfor %}
{% endblock %}

View File

@@ -93,7 +93,6 @@
{% block body %}
{% if fgprint is defined and fgprint %}<h1>Planning</h1>{%endif%}
{% if access=="customer" and not app.user %}
<div class="no-print" style="margin-top:10px;">
<style> .select2-container { display:inline-block} </style>
@@ -112,6 +111,13 @@
</select>
</div>
{% endif %}
{% if access!="customer" and app.user %}
<div class="card">
<div class="card-header">
<a href="{{ path('app_report_export') }}" class="btn btn-success">Exporter2</a>
</div>
</div>
{% endif %}
{% for project in projects %}
{% if not project.months is empty or project.hors!=0 or not project.before is empty or not project.beforeastreinte is empty %}
<div class="card">