2024-05-06 17:29:21 +02:00
|
|
|
<div class="calendrier">
|
2024-05-30 09:41:36 +02:00
|
|
|
{% for mois,semaines in calendrier.items() %}
|
|
|
|
<div class="mois {{'highlight' if highlight=='mois'}}">
|
2024-05-06 17:29:21 +02:00
|
|
|
<h3>{{mois}}</h3>
|
2024-05-30 09:41:36 +02:00
|
|
|
{% for semaine in semaines %}
|
|
|
|
<div class="jours {{'highlight' if highlight=='semaine'}}" week_index="{{semaine}}">
|
|
|
|
{% for jour in semaines[semaine] %}
|
2024-05-30 10:51:24 +02:00
|
|
|
<div class="jour {{jour.get_class()}} {{'highlight' if highlight=='jour'}}" date="{{jour.get_date('%Y-%m-%d')}}">
|
2024-05-07 15:16:40 +02:00
|
|
|
<span class="nom">{{jour.get_nom()}}</span>
|
|
|
|
<div class="contenu">
|
|
|
|
{{jour.get_html() | safe}}
|
|
|
|
</div>
|
2024-05-06 17:29:21 +02:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2024-05-30 09:41:36 +02:00
|
|
|
{% endfor %}
|
2024-05-06 17:29:21 +02:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.calendrier {
|
|
|
|
display: flex;
|
2024-08-20 14:50:36 +02:00
|
|
|
justify-content: flex-start;
|
2024-05-06 17:29:21 +02:00
|
|
|
overflow-x: scroll;
|
|
|
|
border: 1px solid #444;
|
|
|
|
border-radius: 12px;
|
|
|
|
margin-bottom: 12px;
|
2024-08-20 14:50:36 +02:00
|
|
|
padding: 4px;
|
2024-10-16 10:30:37 +02:00
|
|
|
--color-semaine-courante: yellow;
|
2024-05-06 17:29:21 +02:00
|
|
|
}
|
|
|
|
|
2024-05-17 15:23:29 +02:00
|
|
|
.mois {
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
|
2024-05-06 17:29:21 +02:00
|
|
|
.mois h3 {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.jour {
|
|
|
|
text-align: left;
|
|
|
|
margin: 2px;
|
|
|
|
cursor: default;
|
|
|
|
font-size: 13px;
|
|
|
|
position: relative;
|
|
|
|
font-weight: normal;
|
|
|
|
min-width: 6em;
|
|
|
|
display: flex;
|
|
|
|
justify-content: start;
|
2024-05-07 15:16:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.jour>.contenu {
|
|
|
|
background-color: white;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.jour.jour.non-travail>.nom,
|
|
|
|
.jour.jour.non-travail>.contenu {
|
|
|
|
border: 0;
|
|
|
|
background-color: #badfff;
|
|
|
|
}
|
|
|
|
|
|
|
|
.jour>.nom {
|
|
|
|
width: 3em;
|
|
|
|
min-width: 3em;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
.jour>.contenu,
|
|
|
|
.jour>.nom {
|
|
|
|
border: 1px solid #d5d5d5;
|
|
|
|
position: relative;
|
2024-05-06 17:29:21 +02:00
|
|
|
}
|
2024-05-13 15:38:56 +02:00
|
|
|
|
2024-05-17 15:23:29 +02:00
|
|
|
.jour>.contenu a {
|
|
|
|
padding: 0px 2px;
|
|
|
|
}
|
|
|
|
.jour>.nom {
|
|
|
|
text-align: center;
|
|
|
|
}
|
2024-05-13 15:38:56 +02:00
|
|
|
.sem-courante{
|
2024-10-16 10:30:37 +02:00
|
|
|
border-left: solid 3px var(--color-semaine-courante);
|
|
|
|
border-right: solid 3px var(--color-semaine-courante);
|
2024-05-13 15:38:56 +02:00
|
|
|
}
|
2024-10-16 10:30:37 +02:00
|
|
|
div.jours:has(div.sem-courante) {
|
|
|
|
background-color: var(--color-semaine-courante);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-05-30 09:41:36 +02:00
|
|
|
.highlight:hover{
|
|
|
|
border: solid 3px yellow;
|
|
|
|
}
|
2024-05-13 15:38:56 +02:00
|
|
|
|
2024-05-06 17:29:21 +02:00
|
|
|
</style>
|