Пример #1
0
 def _process(self):
     form = RegistrationFormScheduleForm(obj=FormDefaults(self.regform), regform=self.regform)
     if form.validate_on_submit():
         self.regform.start_dt = form.start_dt.data
         self.regform.end_dt = form.end_dt.data
         flash(_("Registrations for {} have been scheduled").format(self.regform.title), "success")
         logger.info("Registrations for %s scheduled by %s", self.regform, session.user)
         return jsonify_data(flash=False)
     return jsonify_form(form, submit=_("Schedule"))
Пример #2
0
 def _process(self):
     form = RegistrationFormScheduleForm(obj=FormDefaults(self.regform), regform=self.regform)
     if form.validate_on_submit():
         self.regform.start_dt = form.start_dt.data
         self.regform.end_dt = form.end_dt.data
         flash(_("Registrations for {} have been scheduled").format(self.regform.title), 'success')
         logger.info("Registrations for %s scheduled by %s", self.regform, session.user)
         return jsonify_data(flash=False)
     return jsonify_template('events/registration/management/regform_schedule.html', form=form)
Пример #3
0
 def _process(self):
     form = RegistrationFormScheduleForm(obj=FormDefaults(self.regform), regform=self.regform)
     if form.validate_on_submit():
         self.regform.start_dt = form.start_dt.data
         self.regform.end_dt = form.end_dt.data
         flash(_("Registrations for {} have been scheduled").format(self.regform.title), 'success')
         logger.info("Registrations for %s scheduled by %s", self.regform, session.user)
         return jsonify_data(flash=False)
     return jsonify_form(form, submit=_('Schedule'))