diff --git a/src/ninebadge-1.0/templates/Tallyday/month.html.twig b/src/ninebadge-1.0/templates/Tallyday/month.html.twig index ce7add6..86f9d41 100644 --- a/src/ninebadge-1.0/templates/Tallyday/month.html.twig +++ b/src/ninebadge-1.0/templates/Tallyday/month.html.twig @@ -19,13 +19,21 @@ td { {% if fgprint %}color:#000000 !important;{%endif%} } -{% if fgprint %} +@media print { + .noprint { display:none; } + body,h1,.card-header {font-family: 'arial' !important} + .card {float: none !important; } .card, .card-header {border: none;} .breakpage { page-break-after: always; } -{% endif %} + .nobreakpage{ + page-break-after: unset; + } + .card-body {padding:0px;} + .fulltable{width:100%;} +} .date { color: #ffffff; @@ -43,23 +51,26 @@ td { RAPPORT MENSUEL = {{ monthof|date("m/Y") }} +
{% if not fgprint %} - Retour - Mois Précédent - Mois Suivant - Export PDF + Retour + Mois Précédent + Mois Suivant + + Imprimer + - Export CSV - Gestion des Pointages - Gestion Heures Sup - {% if message is defined and not message is empty %} -
- Erreur
- {{ message|raw }}
-
+ Export CSV + Gestion des Pointages + Gestion Heures Sup + {% if message is defined and not message is empty %} +
+ Erreur
+ {{ message|raw }}
+
+ {% endif %} {% endif %} - {% endif %} - +
{% set nbusers=0 %} @@ -67,16 +78,16 @@ td { {% if date.validates %} {% set nbusers=nbusers+1 %} -
+
- {{ date.displayname }} + {% if not fgprint %} {%endif%} {{ date.displayname }}
{{date.timemonth}} / {{ timetowork }}
- +
@@ -201,6 +212,11 @@ td { maxheight=$(this).height(); }); $( ".card" ).height(maxheight); + + $("#btnprint").click(function(){ + window.print(); + return false; + }); }); {% endblock %} \ No newline at end of file
s