From d92e1b6daa9cbc68e5dc864b79898fc2bcd56625 Mon Sep 17 00:00:00 2001 From: Horilla Date: Wed, 4 Sep 2024 20:51:44 +0530 Subject: [PATCH] [UPDT] RECRUITMENT: Updated design for survey template --- .../survey/candidate_survey_form.html | 14 +++++--- recruitment/templates/survey_form.html | 36 ++++++++++--------- 2 files changed, 28 insertions(+), 22 deletions(-) diff --git a/recruitment/templates/survey/candidate_survey_form.html b/recruitment/templates/survey/candidate_survey_form.html index 7e2617308..d3c4dd525 100644 --- a/recruitment/templates/survey/candidate_survey_form.html +++ b/recruitment/templates/survey/candidate_survey_form.html @@ -10,12 +10,16 @@ {% endfor %} {% endif %} -
-
+
+ {% csrf_token %} -

- {{candidate.name}}'s {% trans "Survey" %} -

+
+
+

+ {{candidate.name}}'s {% trans "Survey" %} +

+
+
{{form}}
diff --git a/recruitment/templates/survey_form.html b/recruitment/templates/survey_form.html index 495ba0483..622fd49ec 100644 --- a/recruitment/templates/survey_form.html +++ b/recruitment/templates/survey_form.html @@ -5,15 +5,15 @@ padding: 0px; } -
-
-
+
+
+
{{form.non_field_errors}}
{% for question in questions %} {% if question.type == "textarea" %} -
+
{% if question.is_mandatory %} {{ question.question }} * {% trans "Mandatory Question" %} {% else %} @@ -23,12 +23,12 @@ type="text" name="{{question.question}}" class="oh-input w-100" - id="id_{{question.id}}" + id="id_{{qgvuestion.id}}" {% if question.is_mandatory %}required{% endif %} >
{% elif question.type == "options" %} -
+
{% if question.is_mandatory %} {{ question.question }} * {% trans "Mandatory Question" %} {% else %} @@ -48,7 +48,7 @@ {% endfor %} {% elif question.type == "multiple" %} -
+
{% if question.is_mandatory %} {{ question.question }} * {% trans "Mandatory Question" %} {% else %} @@ -67,7 +67,7 @@
{% elif question.type == "percentage" %} -
+
{% if question.is_mandatory %} {{ question.question }} * {% trans "Mandatory Question" %} {% else %} @@ -95,7 +95,7 @@
{% elif question.type == "file" %} -
+
{% if question.is_mandatory %} {{ question.question }} * {% trans "Mandatory Question" %} {% else %} @@ -110,7 +110,7 @@ />
{% elif question.type == "date" %} -
+
{% if question.is_mandatory %} {{ question.question }} * {% trans "Mandatory Question" %} {% else %} @@ -132,7 +132,7 @@ {% endif %} {% include "rating_input.html" %} {% elif question.type == "checkbox" %} -
+
{% if question.is_mandatory %} {{ question.question }} * {% trans "Mandatory Question" %} {% else %} @@ -157,7 +157,7 @@
{% else %} -
+
{% if question.is_mandatory %} {{ question.question }} * {% trans "Mandatory Question" %} {% else %} @@ -174,14 +174,16 @@
{% endif %} {% endfor %}
-
-
+
+

+ © {% now 'Y' %} {{white_label_company_name}}. All rights resevered. +

+