Utilisation taille CSS pour TD key

This commit is contained in:
Ambulance Clerc
2022-10-16 01:34:58 +02:00
parent a89b1eb31e
commit 230adca8d6
8 changed files with 33 additions and 15 deletions

View File

@@ -37,8 +37,11 @@ table{
}
.team_svg_icon{
width: 24px;
height: 24px;
width: 14px;
height: 14px;
fill: white;
}
.td_key{
width: 150px
}

View File

@@ -7,7 +7,7 @@
{% for task in latest_task_list %}
<tr>
<td style="vertical-align: top;padding-bottom: 18px" width="120" >
<td class="td_key" style="vertical-align: top;" >
<span style="font-weight: bold;">{{task.key}}</span><br>
{{task.str_start_date}} - {{task.str_end_date}}<br>
{{task.str_start_time}} - {{task.str_end_time}}<br>

View File

@@ -7,7 +7,7 @@
{% for task in latest_task_list %}
<tr>
<td style="vertical-align: top;" width="150" >
<td style="vertical-align: top;" class="td_key" >
<span style="font-weight: bold;">{{task.key}}</span><br>
{{task.str_start_date}} - {{task.str_end_date}}<br>
{{task.str_start_time}} - {{task.str_end_time}}

View File

@@ -7,7 +7,7 @@
{% for task in latest_task_list %}
<tr>
<td style="vertical-align: top;" width="150" >
<td style="vertical-align: top;" class="td_key" >
<span style="font-weight: bold;">{{task.key}}</span><br>
{{task.str_start_date}} - {{task.str_end_date}}<br>

View File

@@ -7,7 +7,7 @@
{% for task in latest_task_list %}
<tr>
<td style="vertical-align: top;" width="150" >
<td style="vertical-align: top;"class="td_key" >
<span style="font-weight: bold;">{{task.key}}</span><br>
{{task.str_start_date}} - {{task.str_end_date}}<br>
{{task.str_start_time}} - {{task.str_end_time}}<br>

View File

@@ -6,14 +6,14 @@
<table>
<td style="font-weight: bold;padding-bottom: 5px; text-align: center;" colspan="2">Jour</td>
{% for task in latest_task_list %}
<tr><td style="font-weight: bold;vertical-align: top;" width="75" >{{task.key}}</td>&nbsp;&nbsp;&nbsp;&nbsp;<td style="{% if task.done %}text-decoration:line-through;{% endif %}vertical-align: top;">{{ task.name }}<br>{{task.desc}}</td></tr>
<tr><td style="font-weight: bold;vertical-align: top;" class="td_key" >{{task.key}}</td>&nbsp;&nbsp;&nbsp;&nbsp;<td style="{% if task.done %}text-decoration:line-through;{% endif %}vertical-align: top;">{{ task.name }}<br>{{task.desc}}</td></tr>
{% endfor %}
<tr><td>&nbsp;</td></tr>
<tr>
<td style="border-top: 1px dashed white;font-weight: bold;padding: 5px; text-align: center;" colspan="2">Nuit</td>
</tr>
{% for task in night_task_list %}
<tr><td style="font-weight: bold;vertical-align: top;" width="75" >{{task.key}}</td>&nbsp;&nbsp;&nbsp;&nbsp;<td style="{% if task.done %}text-decoration:line-through;{% endif %}vertical-align: top;">{{ task.name }}<br>{{task.desc}}</td></tr>
<tr><td style="font-weight: bold;vertical-align: top;" class="td_key" >{{task.key}}</td>&nbsp;&nbsp;&nbsp;&nbsp;<td style="{% if task.done %}text-decoration:line-through;{% endif %}vertical-align: top;">{{ task.name }}<br>{{task.desc}}</td></tr>
{% endfor %}
</table>

View File

@@ -7,7 +7,7 @@
{% for task in latest_task_list %}
<tr style="" title="{{task.desc}}">
<td style="vertical-align: top;font-weight: bold;" width="100" >
<td style="vertical-align: top;font-weight: bold;" class="td_key" >
{{task.key}}
{% if task.team_transfert %}
<svg class="team_svg_icon" x="0px" y="0px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
@@ -24,8 +24,8 @@
{% endif %}
</td>
<td style="{% if task.done %}text-decoration:line-through{% endif %}">
<span style="{% if task.team_1_chef %}color: yellow !important;{% endif %}; width: 45%;display: inline-block">{{ task.team_1 }}</span>&nbsp;
<span style="{% if task.team_2_chef %}color: yellow !important;{% endif %};width: 45%;display: inline-block">{{ task.team_2 }}</span>
<span style="{% if task.team_1_chef %}color: yellow !important;{% endif %}; width: 150px;display: inline-block">{{ task.team_1 }}</span>&nbsp;
<span style="{% if task.team_2_chef %}color: yellow !important;{% endif %};width: 150px;display: inline-block">{{ task.team_2 }}</span>
</td>
</tr>
{% endfor %}
@@ -35,10 +35,25 @@
</tr>
{% for task in night_task_list %}
{% if task.str_start_date == today %}
<tr style=""><td style="font-weight: bold;vertical-align: top;{% if task.team_transfert %}background-color: orange;{% endif %}" width="100" >{{task.key}}</td>
<tr style=""><td style="font-weight: bold;vertical-align: top;{% if task.team_transfert %}background-color: orange;{% endif %}" class="td_key" >
{{task.key}}
{% if task.team_transfert %}
<svg class="team_svg_icon" x="0px" y="0px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<use class="team_svg_icon" xlink:href="{% static 'mycaldav/images/team_trans_1.svg' %}#icon"></use>
</svg>
<svg class="team_svg_icon" x="0px" y="0px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<use class="team_svg_icon" xlink:href="{% static 'mycaldav/images/team_trans_2.svg' %}#icon"></use>
</svg>
{% endif %}
{% if task.team_manif %}
<svg class="team_svg_icon" x="0px" y="0px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<use class="team_svg_icon" xlink:href="{% static 'mycaldav/images/team_manif.svg' %}#icon"></use>
</svg>
{% endif %}
</td>
<td style="{% if task.done %}text-decoration:line-through{% endif %}">
<span style="{% if task.team_1_chef %}color: yellow !important;{% endif %};width: 45%;display: inline-block">{{ task.team_1 }}</span>&nbsp;
<span style="{% if task.team_2_chef %}color: yellow !important;{% endif %};width: 45%;display: inline-block">{{ task.team_2 }}</span>
<span style="{% if task.team_1_chef %}color: yellow !important;{% endif %};width: 150px;display: inline-block">{{ task.team_1 }}</span>&nbsp;
<span style="{% if task.team_2_chef %}color: yellow !important;{% endif %};width: 150px;display: inline-block">{{ task.team_2 }}</span>
</td>
</tr>
{% endif %}

View File

@@ -7,7 +7,7 @@
{% for task in latest_task_list %}
<tr>
<td style="vertical-align: top;padding-bottom: 18px" width="120" >
<td style="vertical-align: top;padding-bottom: 18px" class="td_key" >
<span style="font-weight: bold;">{{task.key}}</span><br>
{{task.str_start_date}} - {{task.str_end_date}}<br>
{{task.str_start_time}} - {{task.str_end_time}}