diff --git a/app/but/jury_but_pv.py b/app/but/jury_but_pv.py index c0b07ba2..1462f1fb 100644 --- a/app/but/jury_but_pv.py +++ b/app/but/jury_but_pv.py @@ -105,7 +105,7 @@ def pvjury_page_but(formsemestre_id: int, fmt="html"): }, xls_style_base=xls_style_base, ) - return tab.make_page(fmt=fmt, javascripts=["js/etud_info.js"], init_qtip=True) + return tab.make_page(fmt=fmt, javascripts=["js/etud_info.js"]) def pvjury_table_but( diff --git a/app/scodoc/TrivialFormulator.py b/app/scodoc/TrivialFormulator.py index fe71c12b..cbabc42d 100644 --- a/app/scodoc/TrivialFormulator.py +++ b/app/scodoc/TrivialFormulator.py @@ -95,7 +95,6 @@ def TrivialFormulator( To use text_suggest elements, one must: - specify options in text_suggest_options (a dict) - HTML page must load JS AutoSuggest.js and CSS autosuggest_inquisitor.css - - bodyOnLoad must call JS function init_tf_form(formid) """ method = method.lower() if method == "get": @@ -776,9 +775,12 @@ var {field}_as = new bsn.AutoSuggest('{field}', {field}_opts); # => only one form with text_suggest field on a page. R.append( """""" % "\n".join(suggest_js) ) diff --git a/app/scodoc/html_sco_header.py b/app/scodoc/html_sco_header.py index 011ab49d..7a0f4441 100644 --- a/app/scodoc/html_sco_header.py +++ b/app/scodoc/html_sco_header.py @@ -27,10 +27,7 @@ """HTML Header/Footer for ScoDoc pages""" -import html - from flask import g, render_template, url_for -from flask import request from flask_login import current_user import app.scodoc.sco_utils as scu @@ -85,7 +82,6 @@ _HTML_BEGIN = f"""
- @@ -98,6 +94,7 @@ _HTML_BEGIN = f""" + + + + + + + """ def scodoc_top_html_header(page_title="ScoDoc: bienvenue"): + """HTML header for top level pages""" H = [ _HTML_BEGIN % {"page_title": page_title, "encoding": scu.SCO_ENCODING}, """""", @@ -143,13 +147,8 @@ def sco_header( cssstyles=(), # additionals CSS sheets javascripts=(), # additionals JS filenames to load scripts=(), # script to put in page header - bodyOnLoad="", # JS - init_qtip=False, # include qTip init_google_maps=False, # Google maps - init_datatables=True, titrebandeau="", # titre dans bandeau superieur - head_message="", # message action (petit cadre jaune en haut) DEPRECATED - user_check=True, # verifie passwords temporaires etudid=None, formsemestre_id=None, ): @@ -162,12 +161,6 @@ def sco_header( g.current_etudid = etudid scodoc_flash_status_messages() - # Get head message from http request: - if not head_message: - if request.method == "POST": - head_message = request.form.get("head_message", "") - elif request.method == "GET": - head_message = request.args.get("head_message", "") params = { "page_title": page_title or sco_version.SCONAME, "no_side_bar": no_side_bar, @@ -176,37 +169,13 @@ def sco_header( "titrebandeau_mkup": "Cette page permet de générer et d'archiver tous les documents résultant de ce semestre: PV de jury, lettres individuelles, diff --git a/app/scodoc/sco_etape_apogee_view.py b/app/scodoc/sco_etape_apogee_view.py index 5845013b..9a576be8 100644 --- a/app/scodoc/sco_etape_apogee_view.py +++ b/app/scodoc/sco_etape_apogee_view.py @@ -597,7 +597,6 @@ def _view_etuds_page( return f""" {html_sco_header.sco_header( page_title=title, - init_qtip=True, javascripts=["js/etud_info.js"], )}
Cette opération duplique un semestre: on reprend les mêmes modules et responsables. Aucun étudiant n'est inscrit.
""", ] diff --git a/app/scodoc/sco_formsemestre_inscriptions.py b/app/scodoc/sco_formsemestre_inscriptions.py index 217a096e..bbe9f4f3 100644 --- a/app/scodoc/sco_formsemestre_inscriptions.py +++ b/app/scodoc/sco_formsemestre_inscriptions.py @@ -853,7 +853,6 @@ def formsemestre_inscrits_ailleurs(formsemestre_id): H = [ html_sco_header.html_sem_header( "Inscriptions multiples parmi les étudiants du semestre ", - init_qtip=True, javascripts=["js/etud_info.js"], ) ] diff --git a/app/scodoc/sco_groups_view.py b/app/scodoc/sco_groups_view.py index 40ff6d7c..c111520d 100644 --- a/app/scodoc/sco_groups_view.py +++ b/app/scodoc/sco_groups_view.py @@ -116,7 +116,6 @@ def groups_view( { html_sco_header.sco_header( javascripts=JAVASCRIPTS, cssstyles=CSSSTYLES, - init_qtip=True, ) }