Example #1
0
 def _process(self):
     form = self._make_form()
     widget_attrs = {
         field.short_name: {
             'disabled': True
         }
         for field in form
     } if self.event.is_locked else {}
     return WPFeatures.render_template('features.html',
                                       self.event,
                                       form=form,
                                       widget_attrs=widget_attrs)
Example #2
0
 def _process(self):
     form = self._make_form()
     widget_attrs = {field.short_name: {'disabled': True} for field in form} if self.event.is_locked else {}
     return WPFeatures.render_template('features.html', self.event, form=form, widget_attrs=widget_attrs)
Example #3
0
 def _process(self):
     form = self._make_form()
     return WPFeatures.render_template('features.html', self.event, event=self.event, form=form)
Example #4
0
 def _process(self):
     form = self._make_form()
     return WPFeatures.render_template('features.html',
                                       self._conf,
                                       event=self.event_new,
                                       form=form)