diff --git a/.gitignore b/.gitignore
index 22d1be8bc..ec245bea3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -175,7 +175,7 @@ Thumbs.db
copy
# Symlinks static ScoDoc
-app/static/links/[0-9]*.*[0-9]
+app/static/links/[0-9]*.*
# Essais locaux
xp/
diff --git a/app/__init__.py b/app/__init__.py
index aab9ef3f5..b3944de7c 100755
--- a/app/__init__.py
+++ b/app/__init__.py
@@ -255,7 +255,7 @@ class ScoSMTPHandler(SMTPHandler):
return subject
-class ReverseProxied(object):
+class ReverseProxied:
"""Adaptateur wsgi qui nous permet d'avoir toutes les URL calculées en https
sauf quand on est en dev.
La variable HTTP_X_FORWARDED_PROTO est positionnée par notre config nginx"""
@@ -649,8 +649,6 @@ def scodoc_flash_status_messages():
def critical_error(msg):
"""Handle a critical error: flush all caches, display message to the user"""
- import app.scodoc.sco_utils as scu
-
log(f"\n*** CRITICAL ERROR: {msg}")
subject = f"CRITICAL ERROR: {msg}".strip()[:68]
send_scodoc_alarm(subject, msg)
diff --git a/app/scodoc/sco_edit_ue.py b/app/scodoc/sco_edit_ue.py
index 48e1c90ac..40989539e 100644
--- a/app/scodoc/sco_edit_ue.py
+++ b/app/scodoc/sco_edit_ue.py
@@ -958,7 +958,10 @@ du programme" (menu "Semestre") si vous avez un semestre en cours);
"""
)
- H.append("
")
+ H.append(
+ """
+ """
)
- if has_perm_change:
- H.append(
+ if has_perm_change or current_user.has_permission(Permission.EditFormSemestre):
+ H.append("""""")
+ if has_perm_change and len(formsemestres):
+ H.append(
+ """
+
"""
-
-
"""
- )
- for formsemestre in formsemestres:
- H.append(f"""- {formsemestre.html_link_status()}""")
- if not formsemestre.etat:
- H.append(" [verrouillé]")
- else:
- H.append(
- f""" Modifier"""
- )
- H.append("
")
- H.append("
")
+ )
- if current_user.has_permission(Permission.EditFormSemestre):
- H.append(
- f"""
"""
- )
- #
- (debug) Vérifier cohérence
+ H.append("
")
+ for formsemestre in formsemestres:
+ H.append(f"""- {formsemestre.html_link_status()}""")
+ if not formsemestre.etat:
+ H.append(" [verrouillé]")
+ else:
+ H.append(
+ f""" Modifier"""
+ )
+ H.append("
")
+ H.append("
")
+
+ if current_user.has_permission(Permission.EditFormSemestre):
+ H.append(
+ f"""
"""
+ )
+ H.append("
")
warn, _ = sco_formsemestre_validation.check_formation_ues(formation)
H.append(warn)
@@ -1128,7 +1139,9 @@ def _ue_table_ues(
scodoc_dept=g.scodoc_dept,
ue_id=ue["ue_id"],
)
- ue["code_apogee_str"] = f""", Apo: {
ue["code_apogee"] or ""
diff --git a/app/static/css/ue_table.css b/app/static/css/ue_table.css
index 54679babe..00dfa0f99 100644
--- a/app/static/css/ue_table.css
+++ b/app/static/css/ue_table.css
@@ -214,4 +214,8 @@ span.formation_module_ue {
span.notes_module_list_buts {
margin-right: 5px;
+}
+
+div.formation-actions li {
+ margin-top: 12px;
}
\ No newline at end of file
diff --git a/tools/debian/control b/tools/debian/control
index b3e8cceec..81aa4a70a 100644
--- a/tools/debian/control
+++ b/tools/debian/control
@@ -4,5 +4,5 @@ Architecture: amd64
Maintainer: Emmanuel Viennet
Description: ScoDoc 9
Un logiciel pour le suivi de la scolarité universitaire.
-Depends: adduser, curl, gcc, graphviz, graphviz-dev, libpq-dev, postfix|exim4, cracklib-runtime, libcrack2-dev, libpango-1.0-0, pango1.0-tools, python3-dev, python3-venv, python3-pip, python3-wheel, nginx, postgresql, libpq-dev, redis
+Depends: adduser, curl, gcc, graphviz, graphviz-dev, postfix|exim4, cracklib-runtime, libcrack2-dev, libpango-1.0-0, pango1.0-tools, python3-dev, python3-venv, python3-pip, python3-wheel, nginx, postgresql, libpq-dev, redis
Recommends: ufw