From d2995fcd0c885ffdec34bc7b42dad5a9060afa28 Mon Sep 17 00:00:00 2001 From: Horilla Date: Fri, 21 Jun 2024 10:04:03 +0530 Subject: [PATCH] [FIX] RECRUITMENT: Survey question forms erros showed, options toggle fixed --- recruitment/forms.py | 2 +- .../templates/survey/template_form.html | 31 ++++++++++--------- .../survey/template_update_form.html | 31 ++++++++++--------- 3 files changed, 35 insertions(+), 29 deletions(-) diff --git a/recruitment/forms.py b/recruitment/forms.py index a43a9f031..8fa3185fe 100644 --- a/recruitment/forms.py +++ b/recruitment/forms.py @@ -684,7 +684,7 @@ class QuestionForm(ModelForm): options = self.cleaned_data["options"] if not recruitment.exists(): # or jobs.exists()): raise ValidationError( - "Choose any recruitment or job positions to apply this question" + {"recruitment": _("Choose any recruitment to apply this question")} ) self.recruitment = recruitment # self.job_positions = jobs diff --git a/recruitment/templates/survey/template_form.html b/recruitment/templates/survey/template_form.html index e6df4d16a..9d9686aff 100644 --- a/recruitment/templates/survey/template_form.html +++ b/recruitment/templates/survey/template_form.html @@ -1,25 +1,28 @@
{% csrf_token %} {{form.as_p}}
diff --git a/recruitment/templates/survey/template_update_form.html b/recruitment/templates/survey/template_update_form.html index 6549d604f..a94d03b9b 100644 --- a/recruitment/templates/survey/template_update_form.html +++ b/recruitment/templates/survey/template_update_form.html @@ -1,25 +1,28 @@
{% csrf_token %} {{form.as_p}}