Compare commits

...

5 Commits

Author SHA1 Message Date
Iziram
4f40713787 fix pagination tableaux 2024-08-20 15:20:14 +02:00
Iziram
71f88dfa97 bilan_etud : responsive in progress 2024-08-20 15:08:40 +02:00
Iziram
9caa6bf75d fix taille champs desc / raison et modimpl form assiduite 2024-08-20 15:04:09 +02:00
Iziram
3d74979237 scodoc9_mobile.css in progress 2024-08-20 15:03:41 +02:00
Iziram
e1a5ea31cd fix responsive calendriers 2024-08-20 14:50:36 +02:00
9 changed files with 58 additions and 23 deletions

View File

@ -0,0 +1,15 @@
/* == Gestion des styles pour les mobiles == */
@media screen and (max-width: 768px) {
/* <== Module Assiduité ==> */
#ajout-assiduite-etud .description>textarea,
#ajout-justificatif-etud .raison>textarea {
width: 90%;
}
#modimpl,
#moduleimpl_select {
max-width: 200px;
}
}

View File

@ -95,8 +95,8 @@ div.submit > input {
{{ render_field_errors(form, 'est_just') }}
</div>
{# Description #}
<div>
<div>{{ form.description.label }}</div>
<div class="description">
{{ form.description.label }}
{{ form.description() }}
{{ render_field_errors(form, 'description') }}
</div>

View File

@ -106,7 +106,7 @@ div.submit > input {
{{ render_field_errors(form, 'etat') }}
</div>
{# Raison #}
<div>
<div class="raison">
{% if (not justif) or can_view_justif_detail %}
<div>{{ form.raison.label }}</div>
{{ form.raison() }}

View File

@ -76,6 +76,7 @@ Bilan assiduité de {{sco.etud.nomprenom}}
id="stats_date_debut" value="{{date_debut}}"></label>
<label class="stats-label"> Date de fin <input type="text" class="datepicker" name="stats_date_fin"
id="stats_date_fin" value="{{date_fin}}"></label>
<br mobile="true">
<button onclick="stats()">Actualiser</button>
</div>

View File

@ -15,12 +15,15 @@ Calendrier de l'assiduité
<h2>Assiduité de {{sco.etud.html_link_fiche()|safe}}</h2>
<div class="options">
<input type="checkbox" id="show_pres" name="show_pres" class="memo" {{'checked' if show_pres else '' }}><label
for="show_pres">afficher les présences</label>
<input type="checkbox" name="show_reta" id="show_reta" class="memo" {{'checked' if show_reta else '' }}><label
for="show_reta">afficher les retards</label>
<input type="checkbox" name="mode_demi" id="mode_demi" class="memo" {{'checked' if mode_demi else '' }}><label
for="mode_demi">mode demi journée</label>
<label for="show_pres">afficher les présences
<input type="checkbox" id="show_pres" name="show_pres" class="memo" {{'checked' if show_pres else '' }}>
</label>
<label for="show_reta">afficher les retards
<input type="checkbox" name="show_reta" id="show_reta" class="memo" {{'checked' if show_reta else '' }}>
</label>
<label for="mode_demi">mode demi journée
<input type="checkbox" name="mode_demi" id="mode_demi" class="memo"{{'checked' if mode_demi else '' }}>
</label>
</div>
<div class="cal">
@ -86,15 +89,6 @@ Calendrier de l'assiduité
max-width: var(--sco-content-max-width);
}
.calendrier {
display: flex;
justify-content: center;
overflow-x: scroll;
border: 1px solid #444;
border-radius: 12px;
margin-bottom: 12px;
}
.assi_case {
display: flex;
width: 100%;

View File

@ -58,7 +58,7 @@
<!-- Mettre les flèches -->
{% if total_pages > 1 %}
<ul class="pagination">
<li class="">
<li class="{{'disabled' if options.page == 1 else ''}}">
<a onclick="navigateToPage({{options.page - 1}})">&lt;</a>
</li>
<!-- Toujours afficher la première page -->
@ -91,7 +91,7 @@
<li class="{% if options.page == total_pages %}active{% endif %}">
<a onclick="navigateToPage({{total_pages}})">{{ total_pages }}</a>
</li>
<li class="">
<li class="{{'disabled' if options.page == total_pages else ''}}">
<a onclick="navigateToPage({{options.page + 1}})">&gt;</a>
</li>
</ul>
@ -235,7 +235,30 @@
max-width: fit-content;
}
.pagination li{
.pagination li>*{
cursor: pointer;
/*Style pour les boutons de pagination*/
border: 1px solid #ccc;
background-color: #f1f1f1;
padding: 8px 16px;
font-size: 16px;
border-radius: 4px;
margin: 8px 1px;
}
.pagination li:hover >a, .pagination li.active>*{
/*Style pour les boutons actifs*/
background-color: var(--sco-color-ues);
color: white !important;
}
.pagination li.disabled>*{
/*Style pour les boutons désactivés*/
opacity: 0.5;
cursor: default;
pointer-events: none;
user-select: none;
}
</style>

View File

@ -21,11 +21,12 @@
<style>
.calendrier {
display: flex;
justify-content: center;
justify-content: flex-start;
overflow-x: scroll;
border: 1px solid #444;
border-radius: 12px;
margin-bottom: 12px;
padding: 4px;
}
.mois {

View File

@ -15,8 +15,8 @@
margin-top: 10px;
}
.content{
width: 90%;
max-width: 1600px;
padding: 12px;
}
</style>
{% endblock %}

View File

@ -5,6 +5,7 @@
{{super()}}
<link rel="stylesheet" href="{{scu.STATIC_DIR}}/css/scodoc.css">
<link rel="stylesheet" href="{{scu.STATIC_DIR}}/css/scodoc97.css">
<link rel="stylesheet" href="{{scu.STATIC_DIR}}/css/scodoc9_mobile.css">
<link href="{{scu.STATIC_DIR}}/css/menu.css" rel="stylesheet" type="text/css" />
<link href="{{scu.STATIC_DIR}}/css/gt_table.css" rel="stylesheet" type="text/css" />
<link type="text/css" rel="stylesheet" href="{{scu.STATIC_DIR}}/libjs/qtip/jquery.qtip-3.0.3.min.css" />