def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) context['title'] = 'Workshop inquiry #{}'.format(self.get_object().pk) person_lookup_form = AdminLookupForm() if self.object.assigned_to: person_lookup_form = AdminLookupForm( initial={'person': self.object.assigned_to}) person_lookup_form.helper = BootstrapHelper(form_action=reverse( 'workshopinquiry_assign', args=[self.object.pk]), add_cancel_button=False) context['person_lookup_form'] = person_lookup_form return context
def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) context['title'] = 'DC self-organized workshop request #{}'.format( self.get_object().pk) person_lookup_form = AdminLookupForm() if self.object.assigned_to: person_lookup_form = AdminLookupForm( initial={'person': self.object.assigned_to} ) person_lookup_form.helper = BootstrapHelper( form_action=reverse('dcselforganizedeventrequest_assign', args=[self.object.pk])) context['person_lookup_form'] = person_lookup_form return context
def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) context["title"] = "Workshop inquiry #{}".format(self.get_object().pk) person_lookup_form = AdminLookupForm() if self.object.assigned_to: person_lookup_form = AdminLookupForm( initial={"person": self.object.assigned_to}) person_lookup_form.helper = BootstrapHelper( form_action=reverse("workshopinquiry_assign", args=[self.object.pk]), add_cancel_button=False, ) context["person_lookup_form"] = person_lookup_form return context
def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) context['title'] = 'SWC/DC Event request #{}'.format( self.get_object().pk) person_lookup_form = AdminLookupForm() if self.object.assigned_to: person_lookup_form = AdminLookupForm( initial={'person': self.object.assigned_to} ) person_lookup_form.helper = BootstrapHelper( form_action=reverse('eventrequest_assign', args=[self.object.pk]), add_cancel_button=False) context['person_lookup_form'] = person_lookup_form return context
def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) context["title"] = "Workshop request #{}".format(self.get_object().pk) person_lookup_form = AdminLookupForm() if self.object.assigned_to: person_lookup_form = AdminLookupForm( initial={"person": self.object.assigned_to}) person_lookup_form.helper = BootstrapHelper( form_action=reverse("workshoprequest_assign", args=[self.object.pk]), add_cancel_button=False, ) context["person_lookup_form"] = person_lookup_form context["templates"] = EmailTemplate.objects.filter( slug__startswith="request-review", active=True).order_by("slug") context["template_form"] = GenericEmailScheduleForm() return context