Changeset c8a3a93 in indico
- Timestamp:
- 03/22/12 18:05:24 (14 months ago)
- Branches:
- master, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 0da0c1403bae8e51d8229f460181c71b9e6dda72
- Children:
- 2626c2
- Parents:
- b49d75
- Location:
- indico
- Files:
-
- 7 edited
-
MaKaC/rb_reservation.py (modified) (3 diffs)
-
MaKaC/webinterface/rh/roomBooking.py (modified) (2 diffs)
-
MaKaC/webinterface/tpls/RoomBookingBookingForm.tpl (modified) (1 diff)
-
MaKaC/webinterface/tpls/RoomBookingDetails.tpl (modified) (1 diff)
-
MaKaC/webinterface/tpls/RoomBookingEmail_AssistanceAfterBookingModification.tpl (modified) (1 diff)
-
locale/fr_FR/LC_MESSAGES/messages.po (modified) (2 diffs)
-
locale/messages.pot (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/rb_reservation.py
rb5c359 rc8a3a93 489 489 return emails 490 490 491 def notifyAboutUpdate( self ):491 def notifyAboutUpdate( self, attrsBefore ): 492 492 """ 493 493 FINAL (not intented to be overriden) … … 558 558 # ---- Email Assistance ---- 559 559 560 if getRoomBookingOption('assistanceNotificationEmails') and self.room.resvNotificationAssistance :560 if getRoomBookingOption('assistanceNotificationEmails') and self.room.resvNotificationAssistance and (attrsBefore.get('needsAssistance', False) or self.needsAssistance): 561 561 to = getRoomBookingOption('assistanceNotificationEmails') 562 562 if to: … … 566 566 else: 567 567 user = None 568 subject = "[Support Request Modification][" + self.room.getFullName() + "] Modified request for " + formatDateTime(self.startDT) 568 hasCancelled = attrsBefore.get('needsAssistance', False) and not self.needsAssistance 569 textHeader = "Cancelled" if hasCancelled else "Modification" 570 subject = "[Support Request "+textHeader+"][" + self.room.getFullName() + "] Modified request for " + formatDateTime(self.startDT) 569 571 wc = WTemplated( 'RoomBookingEmail_AssistanceAfterBookingModification' ) 570 text = wc.getHTML( { 'reservation': self, 'currentUser': user } )572 text = wc.getHTML( { 'reservation': self, 'currentUser': user, 'hasCancelled': hasCancelled } ) 571 573 fromAddr = Config.getInstance().getNoReplyEmail() 572 574 addrs = [] -
indico/MaKaC/webinterface/rh/roomBooking.py
rf777b0 rc8a3a93 1240 1240 1241 1241 self._clearSessionState() 1242 self._isAssistenceEmailSetup = getRoomBookingOption('assistanceNotificationEmails') 1242 1243 1243 1244 def _businessLogic( self ): … … 1531 1532 self._orig_candResv.update() 1532 1533 self._orig_candResv.indexDayReservations() 1533 emailsToBeSent += self._orig_candResv.notifyAboutUpdate( )1534 emailsToBeSent += self._orig_candResv.notifyAboutUpdate(self._resvAttrsBefore) 1534 1535 1535 1536 # Add entry to the log -
indico/MaKaC/webinterface/tpls/RoomBookingBookingForm.tpl
rb5c359 rc8a3a93 244 244 </td> 245 245 </tr> 246 <tr>247 <td align="right" class="subFieldWidth" valign="top"><small><span style="color: Red;"> ${ _("I need assistance with this video-conf. system")}</span> </small></td>248 <td align="left" class="blacktext">249 <input id="needsAVCSupport" name="needsAVCSupport" type="checkbox" ${' checked="checked" ' if candResv.needsAVCSupport else ""} />250 ${contextHelp('iNeedAVCSupport' )}251 </td>252 </tr>253 246 % endif 254 % if rh._isAssistenceEmailSetup and candResv.room.resvNotificationAssistance:255 <tr>247 % if candResv.room.needsAVCSetup or (rh._isAssistenceEmailSetup and candResv.room.resvNotificationAssistance): 248 <tr> 256 249 <td align="right" class="subFieldWidth" valign="top"><small>${ _("Assistance")} </small></td> 257 <td align="left" class="blacktext"> 258 <table cellpadding=0 cellspacing=0> 259 <tr> 260 <td style="vertical-align:top;"><input id="needsAssistance" name="needsAssistance" type="checkbox" ${' checked="checked" ' if candResv.needsAssistance else ""} /></td> 261 <td style="width:100%;padding-left: 3px;">${_("Request technical assistance for the startup of your meeting. A technician will be present 10 to 15 mn before the event to help you start up the room equipment")}</td> 262 </tr> 250 <td> 251 <table valign='top' cellpadding=0 cellspacing=0> 252 % if candResv.room.needsAVCSetup: 253 <tr> 254 <td align="left" class="blacktext"> 255 <table cellpadding=0 cellspacing=0> 256 <tr> 257 <td style="vertical-align:top;"><input id="needsAVCSupport" name="needsAVCSupport" type="checkbox" ${' checked="checked" ' if candResv.needsAVCSupport else ""} /></td> 258 <td style="width:100%;padding-left: 3px;">${ _("Request assistance for the startup of the videoconference session. This support will most probably be done remotely")}</td> 259 </tr> 260 </table> 261 </td> 262 </tr> 263 % endif 264 % if rh._isAssistenceEmailSetup and candResv.room.resvNotificationAssistance: 265 <tr> 266 <td align="left" class="blacktext"> 267 <table cellpadding=0 cellspacing=0> 268 <tr> 269 <td style="vertical-align:top;"><input id="needsAssistance" name="needsAssistance" type="checkbox" ${' checked="checked" ' if candResv.needsAssistance else ""} /></td> 270 <td style="width:100%;padding-left: 3px;">${_("Request assistance for the startup of your meeting. A technician will be physically present 10 to 15 mn before the event to help you start up the room equipment (microphone, projector, etc)")}</td> 271 </tr> 272 </table> 273 </td> 274 </tr> 275 % endif 263 276 </table> 264 277 </td> 265 </tr>278 </tr> 266 279 % endif 267 280 </table> -
indico/MaKaC/webinterface/tpls/RoomBookingDetails.tpl
r443bee rc8a3a93 226 226 </tr> 227 227 <tr> 228 <td align="right" valign="top" ><small> ${ _("Assistance")} </small></td>228 <td align="right" valign="top" nowrap><small> ${ _("Video-conf Assistance")} </small></td> 229 229 <td align="left" class="blacktext"> 230 230 ${ verbose( reservation.needsAVCSupport, "no" ) } 231 231 ${contextHelp('iNeedAVCSupport' )} 232 </td> 233 </tr> 234 % endif 235 % if rh._isAssistenceEmailSetup and reservation.room.resvNotificationAssistance: 236 <tr> 237 <td align="right" valign="top" nowrap><small> ${ _("Startup Assistance")} </small></td> 238 <td align="left" class="blacktext"> 239 ${ verbose( reservation.needsAssistance, "no" ) } 232 240 </td> 233 241 </tr> -
indico/MaKaC/webinterface/tpls/RoomBookingEmail_AssistanceAfterBookingModification.tpl
rb5c359 rc8a3a93 2 2 3 3 4 ${ currentUser.getStraightFullName()} requestedASSISTANCE for the meeting startup.4 ${ currentUser.getStraightFullName()} ${'has cancelled' if hasCancelled else 'requested'} ASSISTANCE for the meeting startup. 5 5 6 6 For: ${ reservation.bookedForName } -
indico/locale/fr_FR/LC_MESSAGES/messages.po
re6dc57 rc8a3a93 2 2 # Copyright (C) 2012 ORGANIZATION 3 3 # This file is distributed under the same license as the indico project. 4 # 4 # 5 5 # Translators: 6 6 # Dirk Hoffmann <Hoffmann@cppm.in2p3.fr>, 2012. … … 23342 23342 #: MaKaC/webinterface/tpls/RoomBookingBookingForm.tpl:247 23343 23343 #: indico/MaKaC/webinterface/tpls/RoomBookingBookingForm.tpl:247 23344 msgid " I need assistance with this video-conf. system"23344 msgid "Request assistance for the startup of the videoconference session. This support will most probably be done remotely" 23345 23345 msgstr "J'ai besoin d'assistance avec ce systÚme de video-conférence" 23346 23346 -
indico/locale/messages.pot
re9a1f8 rc8a3a93 23150 23150 #: MaKaC/webinterface/tpls/RoomBookingBookingForm.tpl:247 23151 23151 #: indico/MaKaC/webinterface/tpls/RoomBookingBookingForm.tpl:247 23152 msgid " I need assistance with this video-conf. system"23152 msgid "Request assistance for the startup of the videoconference session. This support will most probably be done remotely" 23153 23153 msgstr "" 23154 23154
Note: See TracChangeset
for help on using the changeset viewer.
