ajout de system impression team_pdf
This commit is contained in:
30
mycaldav/templates/team/team_pdf.html
Normal file
30
mycaldav/templates/team/team_pdf.html
Normal file
@@ -0,0 +1,30 @@
|
||||
{% if latest_task_list %}
|
||||
<table style="font-family: 'Source Sans Pro', sans-serif; font-size: 12pt;">
|
||||
{% for task in latest_task_list %}
|
||||
|
||||
<tr style="{% if task.team_transfert %}background-color: orange;{% endif %}">
|
||||
<td style="vertical-align: top;font-weight: bold;" width="150" >
|
||||
{{task.key}}
|
||||
</td>
|
||||
<td style="{% if task.done %}text-decoration:line-through{% endif %}">
|
||||
<span style="{% if task.team_1_chef %}background-color: yellow;{% endif %}">{{ task.team_1 }}</span>
|
||||
<span style="{% if task.team_2_chef %}background-color: yellow;{% endif %}">{{ task.team_2 }}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<td style="border-top: 1px dashed black;font-weight: bold;padding: 5px; text-align: center;" colspan="2">Nuit</td>
|
||||
</tr>
|
||||
{% for task in night_task_list %}
|
||||
<tr style="{% if task.team_transfert %}background-color: orange;{% endif %}"><td style="font-weight: bold;vertical-align: top;" width="150" >{{task.key}}</td>
|
||||
<td style="{% if task.done %}text-decoration:line-through{% endif %}">
|
||||
<span style="{% if task.team_1_chef %}background-color: yellow;{% endif %}">{{ task.team_1 }}</span>
|
||||
<span style="{% if task.team_2_chef %}background-color: yellow;{% endif %}">{{ task.team_2 }}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% else %}
|
||||
<p>Aucune information opérationnelle</p>
|
||||
{% endif %}
|
Reference in New Issue
Block a user