déblocage du max 1ETP par jour

This commit is contained in:
afornerot
2022-09-08 13:42:28 +02:00
parent f1baf4d87e
commit bfedc2f593
5 changed files with 162 additions and 82 deletions

View File

@@ -34,14 +34,16 @@
font-size: 12px;
float:left;
width:100%;
height: 18px;
height: 18px;
flex: 0 0 auto;
}
.am, .ap {
font-size: 12px;
float:left;
width:50%;
height: 18px;
height: 18px;
flex: 0 0 auto;
}
.astreinte {
@@ -83,7 +85,8 @@
{% if nbday==1 %}
<tr id="{{user.user.id}}-{{event.date|date("Ymd")}}"}">
<td class="no-print" style="vertical-align:middle">
{% if event.validate %}
{% set first=event.events|first %}
{% if first and first.validate %}
<i class="fa fa-thumbs-down devalidate-{{user.user.id}}" onClick="devalidate({{user.user.id}},'{{event.date|date("Ymd")}}','{{event.date|date("m/d/Y")}}')" style="cursor:pointer; color:red;"></i>
{%else%}
<i class="fa fa-thumbs-up validate-{{user.user.id}}" onClick="validate({{user.user.id}},'{{event.date|date("Ymd")}}','{{event.date|date("m/d/Y")}}')" style="cursor:pointer; color:green;{% if btnvalidate %}display:none{% endif %}"></i>
@@ -95,21 +98,24 @@
<td>
<div class="date">{{ event.date | date("d/m") }}</div>
{% if event.allday %}
<div class='allday' style='background-color:{{ event.colorday }};' title='{{ event.descriptionday }}'>1</div>
{% else %}
{%if event.am %}
<div class='am' style='background-color:{{ event.coloram }};' title='{{ event.descriptionam }}'>0.5</div>
{% else %}
<div class='am'></div>
{% endif %}
<div class="d-flex flex-wrap">
{% set haveam=false %}
{% for detail in event.events %}
{% if detail.allday %}
<div class='allday' style='background-color:{{ detail.colorday }};' title='{{ detail.descriptionday }}'>1</div>
{% else %}
{%if detail.am %}
{% set haveam=true %}
<div class='am' style='background-color:{{ detail.coloram }};' title='{{ detail.descriptionam }}'>0.5</div>
{% endif %}
{%if event.ap %}
<div class='ap' style='background-color:{{ event.colorap }};' title='{{ event.descriptionap }}'>0.5</div>
{% else %}
<div class='ap'></div>
{% endif %}
{% endif %}
{%if detail.ap %}
{% if not haveam %}<div class='am'></div>{%endif%}
<div class='ap' style='background-color:{{ detail.colorap }};' title='{{ detail.descriptionap }}'>0.5</div>
{% endif %}
{% endif %}
{% endfor %}
</div>
{% if event.astreinte %}
<div class='astreinte' style='background-color:{{ event.colorastreinte }};' title='{{ event.descriptionastreinte }}'>*</div>