Example #1
0
 def _getBody(self, params):
     params["endpoints"] = self.endpoints
     calendar = RoomBookingCalendarWidget(
         params["occurrences"], params["start_dt"], params["end_dt"], specific_room=params["room"]
     )
     params["calendar"] = calendar.render(show_navbar=False, can_navigate=False)
     return WRoomBookingRoomDetails(self._rh, standalone=True).getHTML(params)
Example #2
0
 def _getBody(self, params):
     params['endpoints'] = self.endpoints
     calendar = RoomBookingCalendarWidget(params['occurrences'], params['start_dt'], params['end_dt'],
                                          candidates=params['candidates'], specific_room=params['room'],
                                          repeat_frequency=params['repeat_frequency'],
                                          repeat_interval=params['repeat_interval'])
     params['calendar'] = calendar.render(show_navbar=False, details_in_new_tab=True)
     return WTemplated('RoomBookingBookingForm').getHTML(params)
Example #3
0
 def _getBody(self, params):
     calendar = RoomBookingCalendarWidget(params['occurrences'], params['start_dt'], params['end_dt'],
                                          candidates=params['candidates'], rooms=params['rooms'],
                                          repeat_frequency=params['repeat_frequency'],
                                          repeat_interval=params['repeat_interval'],
                                          flexible_days=params['flexible_days'])
     params['calendar'] = calendar.render(show_summary=False, can_navigate=False, details_in_new_tab=True)
     return WTemplated('RoomBookingNewBookingSelectPeriod').getHTML(params)
Example #4
0
 def _getPageContent(self, params):
     params['endpoints'] = self.endpoints
     calendar = RoomBookingCalendarWidget(params['occurrences'], params['start_dt'], params['end_dt'],
                                          candidates=params['candidates'], specific_room=params['room'],
                                          repeat_frequency=params['repeat_frequency'],
                                          repeat_interval=params['repeat_interval'])
     params['calendar'] = calendar.render(show_navbar=False, details_in_new_tab=True)
     params['serializable_room'] = Room.get(params['room'].id).to_serializable('__public_exhaustive__')
     params['booking_limit'] = rb_settings.get('booking_limit')
     return WTemplated('RoomBookingBookingForm').getHTML(params)
Example #5
0
 def _getBody(self, params):
     params["summary"] = self._get_criteria_summary(params)
     calendar = RoomBookingCalendarWidget(
         params["occurrences"],
         params["start_dt"],
         params["end_dt"],
         rooms=params["rooms"],
         show_blockings=params["show_blockings"],
     )
     params["calendar"] = calendar.render(form_data=params["form_data"])
     return WTemplated("RoomBookingSearchBookingsResults").getHTML(params)
Example #6
0
 def _getBody(self, params):
     params['endpoints'] = self.endpoints
     if params['start_dt'] and params['end_dt']:
         calendar = RoomBookingCalendarWidget(params['occurrences'], params['start_dt'], params['end_dt'],
                                              candidates=params['candidates'],
                                              specific_room=params['room'],
                                              repeat_frequency=params['repeat_frequency'],
                                              repeat_interval=params['repeat_interval'])
         params['calendar'] = calendar.render(show_navbar=False, details_in_new_tab=True)
     else:
         params['calendar'] = ''
     return WTemplated('RoomBookingBookingForm').getHTML(params)
Example #7
0
 def _getBody(self, params):
     params["endpoints"] = self.endpoints
     calendar = RoomBookingCalendarWidget(
         params["occurrences"],
         params["start_dt"],
         params["end_dt"],
         candidates=params["candidates"],
         specific_room=params["room"],
         repeat_frequency=params["repeat_frequency"],
         repeat_interval=params["repeat_interval"],
     )
     params["calendar"] = calendar.render(show_navbar=False, details_in_new_tab=True)
     return WTemplated("RoomBookingBookingForm").getHTML(params)
Example #8
0
 def _getBody(self, params):
     calendar = RoomBookingCalendarWidget(
         params["occurrences"],
         params["start_dt"],
         params["end_dt"],
         candidates=params["candidates"],
         rooms=params["rooms"],
         repeat_frequency=params["repeat_frequency"],
         repeat_interval=params["repeat_interval"],
         flexible_days=params["flexible_days"],
     )
     params["calendar"] = calendar.render(show_summary=False, can_navigate=False, details_in_new_tab=True)
     return WTemplated("RoomBookingNewBookingSelectPeriod").getHTML(params)
Example #9
0
 def _getBody(self, params):
     calendar = RoomBookingCalendarWidget(
         params['occurrences'],
         params['start_dt'],
         params['end_dt'],
         candidates=params['candidates'],
         rooms=params['rooms'],
         repeat_frequency=params['repeat_frequency'],
         repeat_interval=params['repeat_interval'],
         flexible_days=params['flexible_days'])
     params['calendar'] = calendar.render(show_summary=False,
                                          can_navigate=False,
                                          details_in_new_tab=True)
     return WTemplated('RoomBookingNewBookingSelectPeriod').getHTML(params)
Example #10
0
 def _getPageContent(self, params):
     params['endpoints'] = self.endpoints
     if params['start_dt'] and params['end_dt']:
         calendar = RoomBookingCalendarWidget(params['occurrences'], params['start_dt'], params['end_dt'],
                                              candidates=params['candidates'],
                                              specific_room=params['room'],
                                              repeat_frequency=params['repeat_frequency'],
                                              repeat_interval=params['repeat_interval'])
         params['calendar'] = calendar.render(show_navbar=False, details_in_new_tab=True)
     else:
         params['calendar'] = ''
     params['serializable_room'] = Room.get(params['room'].id).to_serializable('__public_exhaustive__')
     params['booking_limit'] = rb_settings.get('booking_limit')
     return WTemplated('RoomBookingBookingForm').getHTML(params)
Example #11
0
 def _getBody(self, params):
     params['calendar'] = RoomBookingCalendarWidget(
         params['occurrences'],
         params['start_dt'],
         params['end_dt'],
         rooms=params['rooms']).render()
     return WTemplated('RoomBookingCalendar').getHTML(params)
Example #12
0
 def _getBody(self, params):
     params['summary'] = self._get_criteria_summary(params)
     calendar = RoomBookingCalendarWidget(params['occurrences'], params['start_dt'], params['end_dt'],
                                          rooms=params['rooms'], show_blockings=params['show_blockings'])
     params['calendar'] = calendar.render(form_data=params['form_data'])
     return WTemplated('RoomBookingSearchBookingsResults').getHTML(params)
Example #13
0
 def _getBody(self, params):
     params['summary'] = self._get_criteria_summary(params)
     calendar = RoomBookingCalendarWidget(params['occurrences'], params['start_dt'], params['end_dt'],
                                          rooms=params['rooms'], show_blockings=params['show_blockings'])
     params['calendar'] = calendar.render(form_data=params['form_data'])
     return WTemplated('RoomBookingSearchBookingsResults').getHTML(params)
Example #14
0
 def _getBody(self, params):
     params['endpoints'] = self.endpoints
     calendar = RoomBookingCalendarWidget(params['occurrences'], params['start_dt'], params['end_dt'],
                                          specific_room=params['room'])
     params['calendar'] = calendar.render(show_navbar=False, can_navigate=False)
     return WRoomBookingRoomDetails(self._rh, standalone=True).getHTML(params)
Example #15
0
 def _getPageContent(self, params):
     params['endpoints'] = self.endpoints
     calendar = RoomBookingCalendarWidget(params['occurrences'], params['start_dt'], params['end_dt'],
                                          specific_room=params['room'])
     params['calendar'] = calendar.render(show_navbar=False, can_navigate=False)
     return WRoomBookingRoomDetails(self._rh, standalone=True).getHTML(params)