From b6f4b9927419fcc88982568a5648056e2bf979d9 Mon Sep 17 00:00:00 2001 From: Horilla Date: Mon, 19 Feb 2024 15:25:50 +0530 Subject: [PATCH] [ADD] ONBOARDING: Empty page for filteration in candidates view --- .../templates/onboarding/candidates.html | 324 ++++++++++-------- 1 file changed, 183 insertions(+), 141 deletions(-) diff --git a/onboarding/templates/onboarding/candidates.html b/onboarding/templates/onboarding/candidates.html index a4a31a1b6..e1bde4063 100644 --- a/onboarding/templates/onboarding/candidates.html +++ b/onboarding/templates/onboarding/candidates.html @@ -1,156 +1,190 @@ -{% load i18n %} +{% load i18n %}{% load static %} {% include 'filter_tags.html' %} -
-
-
-
-
-
- -
-
-
{% trans "Candidate" %}
-
{% trans "Email" %}
-
{% trans "Date of joining" %}
-
{% trans "Probation ends" %}
-
{% trans "Job position" %}
-
{% trans "Recruitment" %}
-
{% trans "Offer letter" %}
-
{% trans "Actions" %}
+{% if candidates %} + +
+
+
+ +
+
    +
- {% for candidate in candidates %} -
-
-
-
- -
-
-
-
-
- -
- {{candidate.name}} -
-
- - {{candidate.email|truncatechars:10}} - {% if candidate.get_last_sent_mail %} - - {% endif %} - - - - - - - - {{candidate.job_position_id}} - {{candidate.recruitment_id}} - - - -
-
- - {% if perms.recruitment.change_candidate %} - - {% endif %} - {% if perms.recruitment.change_candidate %} - - {% endif %} - {% if candidate.onboarding_portal %} - - {% else %} - - {% endif %} - -
-
-
-
- {% endfor %}
- -
- - {% trans "Page" %} {{ candidates.number }} {% trans "of" %} {{ candidates.paginator.num_pages }}. - - -
-
+
+ + +
+ + {% trans "Page" %} {{ candidates.number }} {% trans "of" %} {{ candidates.paginator.num_pages }}. + + +
+ +
+{% else %} + +
+ +
+ {% trans "No search result found!" %} +
+
+ +{% endif %} +