Bulles aide sur formulaire saise absences (contrib. DS)
This commit is contained in:
parent
206b01a5a8
commit
b831daf938
23
ZAbsences.py
23
ZAbsences.py
@ -1331,17 +1331,26 @@ class ZAbsences(
|
||||
checked = "checked"
|
||||
else:
|
||||
checked = ""
|
||||
# bulle lors du passage souris
|
||||
coljour = DAYNAMES[
|
||||
(calendar.weekday(int(date[:4]), int(date[5:7]), int(date[8:])))
|
||||
]
|
||||
datecol = coljour + " " + date[8:] + "/" + date[5:7] + "/" + date[:4]
|
||||
bulle_am = '"' + etud["nomprenom"] + " - " + datecol + ' (matin)"'
|
||||
bulle_pm = '"' + etud["nomprenom"] + " - " + datecol + ' (ap.midi)"'
|
||||
|
||||
H.append(
|
||||
'<td class="%s"><input type="checkbox" name="abslist:list" value="%s" %s onclick="on_toggled(this, \'%s\', \'%s\')"/></td>'
|
||||
'<td class="%s"><a title=%s><input type="checkbox" name="abslist:list" value="%s" %s onclick="on_toggled(this, \'%s\', \'%s\')"/></a></td>'
|
||||
% (
|
||||
td_matin_class,
|
||||
bulle_am,
|
||||
etudid + ":" + date + ":" + "am",
|
||||
checked,
|
||||
etudid,
|
||||
date + ":am",
|
||||
)
|
||||
)
|
||||
# apres midi
|
||||
# après-midi
|
||||
if self.CountAbs(
|
||||
etudid, date, date, False, moduleimpl_id=moduleimpl_id
|
||||
):
|
||||
@ -1349,8 +1358,14 @@ class ZAbsences(
|
||||
else:
|
||||
checked = ""
|
||||
H.append(
|
||||
'<td><input type="checkbox" name="abslist:list" value="%s" %s onclick="on_toggled(this, \'%s\', \'%s\')"/></td>'
|
||||
% (etudid + ":" + date + ":" + "pm", checked, etudid, date + ":pm")
|
||||
'<td><a title=%s><input type="checkbox" name="abslist:list" value="%s" %s onclick="on_toggled(this, \'%s\', \'%s\')"/></a></td>'
|
||||
% (
|
||||
bulle_pm,
|
||||
etudid + ":" + date + ":" + "pm",
|
||||
checked,
|
||||
etudid,
|
||||
date + ":pm",
|
||||
)
|
||||
)
|
||||
H.append("</tr>")
|
||||
H.append("</table>")
|
||||
|
Loading…
Reference in New Issue
Block a user