diff --git a/app/but/jury_but_pv.py b/app/but/jury_but_pv.py index c0b07ba2..cdb46acd 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) def pvjury_table_but( diff --git a/app/forms/main/config_logos.py b/app/forms/main/config_logos.py index fcea427c..31f8bc6f 100644 --- a/app/forms/main/config_logos.py +++ b/app/forms/main/config_logos.py @@ -46,10 +46,8 @@ from app.scodoc.sco_config_actions import LogoInsert from app.scodoc.sco_exceptions import ScoValueError from app.scodoc.sco_logos import find_logo - -JAVASCRIPTS = html_sco_header.BOOTSTRAP_MULTISELECT_JS + [] - -CSSSTYLES = html_sco_header.BOOTSTRAP_MULTISELECT_CSS +CSSSTYLES = html_sco_header.BOOTSTRAP_CSS +JAVASCRIPTS = html_sco_header.BOOTSTRAP_JS # class ItemForm(FlaskForm): # """Unused Generic class to document common behavior for classes diff --git a/app/forms/multiselect.py b/app/forms/multiselect.py new file mode 100644 index 00000000..77b13626 --- /dev/null +++ b/app/forms/multiselect.py @@ -0,0 +1,118 @@ +""" +Simplification des multiselect HTML/JS +""" + + +class MultiSelect: + """ + Classe pour faciliter l'utilisation du multi-select HTML/JS + + Les values sont représentées en dict { + value: "...", + label:"...", + selected: True/False (default to False), + single: True/False (default to False) + } + + Args: + values (dict[str, list[dict]]): Dictionnaire des valeurs + génère des pour chaque clef du dictionnaire + génère des