export astreintes actives et exports

This commit is contained in:
2020-07-28 16:11:53 +02:00
parent 2513eced52
commit 46805a2e3d
7 changed files with 79 additions and 3 deletions

View File

@@ -58,6 +58,7 @@
<div class="card-body">
{{ form_row(form.task) }}
{{ form_row(form.description) }}
{{ form_row(form.activepenalty) }}
{{ form_row(form.start) }}
{{ form_row(form.end) }}
{{ form_row(form.duration) }}

View File

@@ -0,0 +1,7 @@
{% block body %}
Astreintes Actives
Tâche;Active;Utilisateur;Début;Fin;Durée;Description;
{% for timer in timers %}
{{timer.taskname}};{{timer.activepenalty}};{{timer.user}};{{timer.start|date("d/m/Y H:i")}};{{timer.end|date("d/m/Y H:i")}};{{timer.duration|date("H:i")}};{{timer.description}};
{% endfor %}
{% endblock %}

View File

@@ -16,7 +16,7 @@ SUIVI HORAIRE
<div id="timer" class="card">
<div class="card-header">
<a class="btn btn-success" style="float:right" href={{ path('app_timer_view') }}>Voir le calendrier</a>
<a class="btn btn-success" style="float:right" href={{ path('app_timer_submit') }}>Créer un Timer</a>
Lancer un Timer :
<select class="select2entity" id="timer-task" name="timer-task">
<option> Tâche </option>
@@ -36,7 +36,8 @@ SUIVI HORAIRE
</table>
</div>
<a class="btn btn-success" href={{ path('app_timer_submit') }}>Créer un Timer</a>
<a class="btn btn-success" href={{ path('app_timer_view') }}>Voir le calendrier</a>
<a class="btn btn-success" href={{ path('app_timer_view') }}>Exporter Astreintes actives</a>
<p></p>
<div class="dataTable_wrapper">
<table class="table table-striped table-bordered table-hover small" id="dataTables" style="width:100%">
@@ -54,7 +55,10 @@ SUIVI HORAIRE
{%for timer in timers %}
<tr>
<td>{{ timer.task.displayname }}</td>
<td>{{ timer.description }}</td>
<td>
<span class="font-weight-bold">{{ timer.activepenalty ? "Astreinte active" : "" }}</span>
<p>{{ timer.description }}</p>
</td>
<td>{{ timer.start|date("d/m/Y H:i") }}</td>
<td>{{ timer.end|date("d/m/Y H:i") }}</td>
<td>{{ timer.duration|date("H:i") }}</td>