Merge with Bryce sur les generations de password admin + mail reminder
This commit is contained in:
commit
df490ddabe
@ -154,6 +154,18 @@ class MemberModificationController(AuthenticatedRestController):
|
||||
#end if
|
||||
rooms = sorted(rooms, key=lambda t:t.cn.first())
|
||||
|
||||
areas = Room.get_areas(self.user, residence_dn)
|
||||
|
||||
for room in rooms:
|
||||
for area in areas:
|
||||
if area.dn in room.dn:
|
||||
room.area = area
|
||||
break
|
||||
#end if
|
||||
#end for
|
||||
#end for
|
||||
|
||||
|
||||
show_values["rooms"] = rooms
|
||||
|
||||
cotisations = show_values["cotisations"]
|
||||
|
@ -79,6 +79,8 @@ To: """ + member.cn.first().decode("utf-8").encode("ascii", "ignore") + """ <"""
|
||||
Subject: Votre mot de passe WiFi : residence universitaire
|
||||
|
||||
Bienvenue dans votre residence etudiante de Paris Sud
|
||||
|
||||
Votre nom de connexion est : """ + member_uid + """
|
||||
Votre mot de passe WiFi est : """ + password
|
||||
|
||||
message = message.encode("utf-8")
|
||||
|
@ -34,8 +34,8 @@
|
||||
<py:if test="room_ldap is not None">
|
||||
<py:for each="target_room in rooms">
|
||||
<py:choose test="target_room.uid.first()">
|
||||
<option value="${target_room.uid.first()}" py:when="room_ldap.uid.first()" selected="selected">${target_room.cn.first()} (actuelle)</option>
|
||||
<option value="${target_room.uid.first()}" py:otherwise="">${target_room.cn.first()}</option>
|
||||
<option value="${target_room.uid.first()}" py:when="room_ldap.uid.first()" selected="selected">${target_room.cn.first()} [BAT-${target_room.area.cn.first()}] (actuelle)</option>
|
||||
<option value="${target_room.uid.first()}" py:otherwise="">${target_room.cn.first()} [BAT-${target_room.area.cn.first()}]</option>
|
||||
</py:choose>
|
||||
</py:for>
|
||||
</py:if>
|
||||
|
Loading…
Reference in New Issue
Block a user