diff --git a/recruitment/models.py b/recruitment/models.py index 1090a5c..826b858 100644 --- a/recruitment/models.py +++ b/recruitment/models.py @@ -996,6 +996,18 @@ class Application(Base): return True else: return False + + @property + def is_active(self): + deadline=self.job.application_deadline + now=timezone.now().date() + if deadline>now: + return True + else: + return False + + + diff --git a/templates/recruitment/candidate_application_detail.html b/templates/recruitment/candidate_application_detail.html index 8afce5f..711fdf2 100644 --- a/templates/recruitment/candidate_application_detail.html +++ b/templates/recruitment/candidate_application_detail.html @@ -285,21 +285,21 @@
- +
{% trans "Department" %}

{{ application.job.department|default:"-" }}

- +
{% trans "Job Type" %}

{{ application.get_job_type_display }}

- +
{% trans "Location" %}

{{ application.get_workplace_type_display }}

@@ -332,7 +332,7 @@ target="_blank" class="text-decoration-none text-dark">
- +
{% trans "Download Resume" %}

{% trans "Get your submitted file" %}

- @@ -543,42 +543,42 @@
{% if application.stage == 'Applied' %} -
+
{% trans "Your application is being reviewed by our recruitment team. You will receive an update within 3-5 business days." %}
{% elif application.stage == 'Screening' %} -
+
{% trans "Your application is currently under screening. We are evaluating your qualifications against the job requirements." %}
{% elif application.stage == 'Document Review' %} -
+
{% trans "Please upload the required documents for review. Our team will evaluate your submitted materials." %}
{% elif application.stage == 'Exam' %} -
+
{% trans "You have been shortlisted for an assessment. Please check your email for exam details and preparation materials." %}
{% elif application.stage == 'Interview' %} -
+
{% trans "Congratulations! You have been selected for an interview. Please check the interview schedule above and prepare accordingly." %}
{% elif application.stage == 'Offer' %} -
+
{% trans "You have received a job offer! Please check your email for the detailed offer letter and next steps." %}
{% elif application.stage == 'Hired' %} -
+
{% trans "Welcome to the team! You will receive onboarding information shortly." %}
{% elif application.stage == 'Rejected' %} -
+
{% trans "Thank you for your interest. Unfortunately, your application was not selected at this time. We encourage you to apply for other positions." %}
diff --git a/templates/recruitment/candidate_profile.html b/templates/recruitment/candidate_profile.html index 67d1344..4bdab2c 100644 --- a/templates/recruitment/candidate_profile.html +++ b/templates/recruitment/candidate_profile.html @@ -508,16 +508,16 @@
{% trans "Current Stage" %} - + {{ application.stage }}
{% trans "Status" %} {% if application.is_active %} - {% trans "Active" %} + {% trans "Active" %} {% else %} - {% trans "Closed" %} + {% trans "Closed" %} {% endif %}