forked from ScoDoc/ScoDoc
EDT: ajuste taille calendrier et plage horaire.
This commit is contained in:
parent
83765b584e
commit
78d72d2d54
@ -14,3 +14,14 @@
|
||||
color: red;
|
||||
background-color: yellow;
|
||||
}
|
||||
|
||||
.toastui-calendar-timegrid {
|
||||
height: 100% !important;
|
||||
min-height: auto !important;
|
||||
}
|
||||
.toastui-calendar-time{
|
||||
height: calc(100% - 44px) !important;
|
||||
}
|
||||
.toastui-calendar-week-view-day-names, .toastui-calendar-time {
|
||||
overflow: hidden !important;
|
||||
}
|
||||
|
@ -13,7 +13,7 @@
|
||||
<div class="tab-content">
|
||||
<h2>Expérimental: emploi du temps</h2>
|
||||
|
||||
<div id="calendar" style="height: 900px;"></div>
|
||||
<div id="calendar" style="height: calc(100vh - 180px);"></div>
|
||||
|
||||
</div>
|
||||
{% endblock app_content %}
|
||||
@ -55,8 +55,8 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
week: {
|
||||
dayNames: [ "Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi"],
|
||||
eventView: ['time'],
|
||||
hourStart: 7, // TODO préférence
|
||||
hourEnd:24, // TODO préférence
|
||||
hourStart: {{ hour_start }},
|
||||
hourEnd: {{ hour_end }},
|
||||
showNowIndicator: true,
|
||||
startDayOfWeek: 1,
|
||||
taskView: false,
|
||||
|
@ -38,7 +38,7 @@ from app.decorators import (
|
||||
permission_required,
|
||||
)
|
||||
from app.forms.formsemestre import change_formation, edit_modimpls_codes_apo
|
||||
from app.models import Formation, FormSemestre
|
||||
from app.models import Formation, FormSemestre, ScoDocSiteConfig
|
||||
from app.scodoc import sco_formations, sco_formation_versions
|
||||
from app.scodoc.sco_permissions import Permission
|
||||
from app.views import notes_bp as bp
|
||||
@ -158,8 +158,14 @@ def formsemestre_edit_modimpls_codes(formsemestre_id: int):
|
||||
def formsemestre_edt(formsemestre_id: int):
|
||||
"""Expérimental: affiche emploi du temps du semestre"""
|
||||
formsemestre = FormSemestre.get_formsemestre(formsemestre_id)
|
||||
cfg = ScoDocSiteConfig.query.filter_by(name="assi_morning_time").first()
|
||||
hour_start = cfg.value.split(":")[0].lstrip(" 0") if cfg else "7"
|
||||
cfg = ScoDocSiteConfig.query.filter_by(name="assi_afternoon_time").first()
|
||||
hour_end = cfg.value.split(":")[0].lstrip(" 0") if cfg else "18"
|
||||
return render_template(
|
||||
"formsemestre/edt.j2",
|
||||
formsemestre=formsemestre,
|
||||
hour_start=hour_start,
|
||||
hour_end=hour_end,
|
||||
sco=ScoData(formsemestre=formsemestre),
|
||||
)
|
||||
|
@ -1,7 +1,7 @@
|
||||
# -*- mode: python -*-
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
SCOVERSION = "9.6.52"
|
||||
SCOVERSION = "9.6.53"
|
||||
|
||||
SCONAME = "ScoDoc"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user