forked from ScoDoc/ScoDoc
fix group_selector / info_etu popup
This commit is contained in:
parent
eded2fffe9
commit
b56f205e89
@ -165,7 +165,6 @@ def form_groups_choice(groups_infos, with_selectall_butt=False, submit_on_change
|
||||
Si submit_on_change, ajoute une classe "submit_on_change" qui est utilisee en JS
|
||||
"""
|
||||
default_group_id = sco_groups.get_default_group(groups_infos.formsemestre_id)
|
||||
|
||||
H = [
|
||||
"""<form id="group_selector" method="get">
|
||||
<input type="hidden" name="formsemestre_id" id="formsemestre_id" value="%s"/>
|
||||
@ -306,7 +305,7 @@ class DisplayedGroupsInfos(object):
|
||||
if group_ids:
|
||||
group_ids = [group_ids] # cas ou un seul parametre, pas de liste
|
||||
else:
|
||||
group_ids = []
|
||||
group_ids = [int(g) for g in group_ids]
|
||||
if not formsemestre_id and moduleimpl_id:
|
||||
mods = sco_moduleimpl.do_moduleimpl_list(moduleimpl_id=moduleimpl_id)
|
||||
if len(mods) != 1:
|
||||
|
@ -537,7 +537,7 @@ def etud_info_html(etudid, with_photo="1", REQUEST=None, debug=False):
|
||||
"""An HTML div with basic information and links about this etud.
|
||||
Used for popups information windows.
|
||||
"""
|
||||
formsemestre_id = sco_formsemestre_status.retreive_formsemestre_from_request()
|
||||
formsemestre_id = int(sco_formsemestre_status.retreive_formsemestre_from_request())
|
||||
with_photo = int(with_photo)
|
||||
etud = sco_etud.get_etud_info(filled=True)[0]
|
||||
photo_html = sco_photos.etud_photo_html(
|
||||
|
Loading…
Reference in New Issue
Block a user