From 8ea360a16194972be89e19a3b4fe51ba196ae43a Mon Sep 17 00:00:00 2001 From: Horilla Date: Mon, 10 Jun 2024 16:31:12 +0530 Subject: [PATCH] [UPDT] RECRUITMENT: Description field in interview section --- recruitment/models.py | 3 +++ .../templates/candidate/individual.html | 3 +++ .../templates/candidate/interview_list.html | 14 +++++++++++-- .../question_template_organized_form.html | 4 ++-- recruitment/views/views.py | 21 +++++++------------ 5 files changed, 28 insertions(+), 17 deletions(-) diff --git a/recruitment/models.py b/recruitment/models.py index 2ed452704..d4a7f7599 100644 --- a/recruitment/models.py +++ b/recruitment/models.py @@ -837,6 +837,9 @@ class InterviewSchedule(HorillaModel): employee_id = models.ManyToManyField(Employee, verbose_name=_("interviewer")) interview_date = models.DateField(verbose_name=_("Interview Date")) interview_time = models.TimeField(verbose_name=_("Interview Time")) + description = models.TextField( + verbose_name=_("Description"), blank=True, max_length=255 + ) completed = models.BooleanField( default=False, verbose_name=_("Is Interview Completed") ) diff --git a/recruitment/templates/candidate/individual.html b/recruitment/templates/candidate/individual.html index 7de61d843..8bf536de1 100644 --- a/recruitment/templates/candidate/individual.html +++ b/recruitment/templates/candidate/individual.html @@ -619,6 +619,9 @@  radio_button_checked {{ interviewer }} {% endfor %}
+ {% if interview_schedule.description %} + {% trans "Description" %} : {{ interview_schedule.description }} + {% endif %} {% if interview_schedule.completed %}
diff --git a/recruitment/templates/candidate/interview_list.html b/recruitment/templates/candidate/interview_list.html index a80054ab9..b96e275ee 100644 --- a/recruitment/templates/candidate/interview_list.html +++ b/recruitment/templates/candidate/interview_list.html @@ -46,7 +46,10 @@
{% trans "Interview Time" %}
-
{% trans "Description" %}
+
{% trans "Status" %}
{% trans "Actions" %}
@@ -105,7 +108,14 @@
{{interview.interview_time}}
-
+
+ {% if interview.description %} + {{interview.description}} + {% else %} + {% trans "None" %} + {% endif %} +
+
{% if interview.completed %}
check_circle diff --git a/recruitment/templates/survey/question_template_organized_form.html b/recruitment/templates/survey/question_template_organized_form.html index 56c2955d9..3be7706db 100644 --- a/recruitment/templates/survey/question_template_organized_form.html +++ b/recruitment/templates/survey/question_template_organized_form.html @@ -14,7 +14,7 @@ {% for field in form.visible_fields %} {% if field.field.widget|is_text_area %}