Skip to content

Commit

Permalink
add TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
xavfernandez committed Jan 7, 2025
1 parent 9d4bf5d commit 46e07ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions itou/www/apply/views/batch_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ def get_step_url(self, step):
return reverse(self.url_name, kwargs={"session_uuid": self.wizard_session.name, "step": step})

def get_initial(self):
# TODO: call loader.render_to_string("apply/refusal_messages/{refusal_reason}.txt", ...)
# to provide initial text
return self.wizard_session.get("data", {}).get(self.step)

def get_form_kwargs(self):
Expand All @@ -256,6 +258,7 @@ def get_form_kwargs(self):
kwargs["data"] = self.request.POST

if self.step in (RefuseViewStep.REASON, RefuseViewStep.PRESCRIBER_ANSWER):
# TODO: provide more kwargs to forms to tweak the wording
kwargs["job_application"] = self.applications[0]
return kwargs

Expand All @@ -270,6 +273,7 @@ def get_form(self):
return self.get_form_class()(**self.get_form_kwargs())

def get_context_data(self, **kwargs):
# TODO: provide more info to template to show correct wording
return super().get_context_data(**kwargs) | {
"job_applications": self.applications,
"can_view_personal_information": True, # SIAE members have access to personal info
Expand Down

0 comments on commit 46e07ca

Please sign in to comment.