Ajout d'un export csv hebdomadaire sur les rapports
This commit is contained in:
15
src/schedule-2.0/templates/Report/export.csv.twig
Normal file
15
src/schedule-2.0/templates/Report/export.csv.twig
Normal 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 %}
|
@@ -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">
|
||||
|
Reference in New Issue
Block a user