Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)