forked from ScoDoc/ScoDoc
Update opolka/ScoDoc from ScoDoc/ScoDoc #2
@ -631,16 +631,16 @@ class BasePreferences:
|
||||
"category": "assi",
|
||||
},
|
||||
),
|
||||
(
|
||||
"forcer_present",
|
||||
{
|
||||
"initvalue": 0,
|
||||
"title": "Forcer l'appel des présents",
|
||||
"input_type": "boolcheckbox",
|
||||
"labels": ["non", "oui"],
|
||||
"category": "assi",
|
||||
},
|
||||
),
|
||||
# (
|
||||
# "forcer_present",
|
||||
# {
|
||||
# "initvalue": 0,
|
||||
# "title": "Forcer l'appel des présents",
|
||||
# "input_type": "boolcheckbox",
|
||||
# "labels": ["non", "oui"],
|
||||
# "category": "assi",
|
||||
# },
|
||||
# ),
|
||||
(
|
||||
"periode_defaut",
|
||||
{
|
||||
@ -656,6 +656,7 @@ class BasePreferences:
|
||||
(
|
||||
"assi_etat_defaut",
|
||||
{
|
||||
"explanation": "⚠ non fonctionnel, travaux en cours !",
|
||||
"initvalue": "aucun",
|
||||
"input_type": "menu",
|
||||
"labels": ["aucun", "present", "retard", "absent"],
|
||||
|
@ -273,7 +273,7 @@
|
||||
</style>
|
||||
|
||||
<script>
|
||||
const etatDef = "{{etat_def}}";
|
||||
const assi_etat_defaut = "{{assi_etat_defaut}}";
|
||||
|
||||
window.forceModule = "{{ forcer_module }}"
|
||||
window.forceModule = window.forceModule == "True" ? true : false
|
||||
@ -375,8 +375,8 @@
|
||||
|
||||
|
||||
rows[i].appendChild(td);
|
||||
if (etatDef != "" && etatDef != "aucun") {
|
||||
const inp = td.querySelector(`[value='${etatDef}']`).checked = true;
|
||||
if (assi_etat_defaut != "" && assi_etat_defaut != "aucun") {
|
||||
const inp = td.querySelector(`[value='${assi_etat_defaut}']`).checked = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1317,7 +1317,7 @@ def _differee(
|
||||
dept_id=g.scodoc_dept_id,
|
||||
)
|
||||
|
||||
etat_def = sco_preferences.get_preference(
|
||||
assi_etat_defaut = sco_preferences.get_preference(
|
||||
"assi_etat_defaut",
|
||||
formsemestre_id=formsemestre_id,
|
||||
dept_id=g.scodoc_dept_id,
|
||||
@ -1326,7 +1326,7 @@ def _differee(
|
||||
return render_template(
|
||||
"assiduites/widgets/differee.j2",
|
||||
etudiants=etudiants,
|
||||
etat_def=etat_def,
|
||||
assi_etat_defaut=assi_etat_defaut,
|
||||
forcer_module=forcer_module,
|
||||
moduleimpl_select=moduleimpl_select,
|
||||
date=date,
|
||||
|
@ -107,7 +107,7 @@ urllib3==2.0.6
|
||||
visitor==0.1.3
|
||||
weasyprint==60.1
|
||||
webencodings==0.5.1
|
||||
Werkzeug==3.0.0
|
||||
Werkzeug==2.3.7
|
||||
wrapt==1.15.0
|
||||
WTForms==3.0.1
|
||||
xmltodict==0.13.0
|
||||
|
Loading…
Reference in New Issue
Block a user