From 5f68045eaa14eb1f522c1903663c4ff8ff8c1648 Mon Sep 17 00:00:00 2001 From: Horilla Date: Fri, 3 May 2024 11:33:19 +0530 Subject: [PATCH] [FIX] RECRUITMENT: Survey view count issue and style updation in pipeline views of interview hovering --- .../components/candidate_stage_component.html | 35 ++++++------------- .../candidate_kanban_components.html | 12 ++++--- recruitment/templates/pipeline/nav.html | 33 +++++++++++++++++ .../templates/survey/template_accordion.html | 2 +- 4 files changed, 53 insertions(+), 29 deletions(-) diff --git a/recruitment/templates/pipeline/components/candidate_stage_component.html b/recruitment/templates/pipeline/components/candidate_stage_component.html index b8960e698..3e0a19c95 100644 --- a/recruitment/templates/pipeline/components/candidate_stage_component.html +++ b/recruitment/templates/pipeline/components/candidate_stage_component.html @@ -89,17 +89,23 @@
+ {% for interview_schedule in cand.candidate_interview.all %} {% if interview_schedule.interview_date|date:"Y-m-d" == now|date:"Y-m-d" %} -
- - alarm_on +
+ + + alarm_on + + + {% trans "INTERVIEW : Today at" %} {{interview_schedule.interview_time}} {% trans "with" %} + {% for emp in interview_schedule.employee_id.all %} {{emp}}, {% endfor %} +
{% endif %} {% endfor %} +
@@ -130,25 +136,6 @@ {{cand.mobile}}
- {% comment %}
- - {% if cand.candidate_interview.exists %} - {% for interview_schedule in cand.candidate_interview.all %} - {{forloop.counter}}. {% trans "Date" %}: {{ interview_schedule.interview_date }}   - {% trans "Time" %}: {{ interview_schedule.interview_time }}   - {% trans "Interviewer" %}: - {% for interviewer in interview_schedule.employee_id.all %} - radio_button_checked{{ interviewer }}   - {% endfor %} - -
- {% endfor %} - {% else %} - - - {% endif %} -
-
{% endcomment %} -
{% trans "Interviews Scheduled" %} : {{cand.candidate_interview.count}}
diff --git a/recruitment/templates/pipeline/kanban_components/candidate_kanban_components.html b/recruitment/templates/pipeline/kanban_components/candidate_kanban_components.html index 205635260..0e96f9f48 100644 --- a/recruitment/templates/pipeline/kanban_components/candidate_kanban_components.html +++ b/recruitment/templates/pipeline/kanban_components/candidate_kanban_components.html @@ -81,10 +81,14 @@ {% for interview_schedule in cand.candidate_interview.all %} {% if interview_schedule.interview_date|date:"Y-m-d" == now|date:"Y-m-d" %}
- - alarm_on + + + alarm_on + + + {% trans "INTERVIEW : Today at" %} {{interview_schedule.interview_time}} {% trans "with" %} + {% for emp in interview_schedule.employee_id.all %} {{emp}}, {% endfor %} +
{% endif %} diff --git a/recruitment/templates/pipeline/nav.html b/recruitment/templates/pipeline/nav.html index 721e4c9e7..7d7cfb430 100644 --- a/recruitment/templates/pipeline/nav.html +++ b/recruitment/templates/pipeline/nav.html @@ -4,7 +4,40 @@ .note-modal-backdrop{ z-index: 998 !important; } + + .tooltip { + position: relative; + display: inline-block; /* Ensures that the tooltip container doesn't stretch to the full width */ + } + + .tooltip .tooltiptext { + visibility: hidden; + width: auto; /* Allow the tooltip width to adjust based on content */ + max-width: auto; /* Limit the maximum width of the tooltip to prevent it from overflowing */ + background-color: green; + color: white; + text-align: center; + border-radius: 6px; + padding: 5px; + position: absolute; + z-index: 1; + bottom: 5%; + left: 50%; + transform: translateX(5%); + opacity: 0; + transition: opacity 0.3s; + white-space: nowrap; /* Prevents the text from wrapping */ + overflow: hidden; /* Hides any overflowed content */ + font-size:15px; + } + + .tooltip:hover .tooltiptext { + visibility: visible; + opacity: 1; + } + + {% if recruitment_form.errors %}
diff --git a/recruitment/templates/survey/template_accordion.html b/recruitment/templates/survey/template_accordion.html index def5dcd94..7efae2e18 100644 --- a/recruitment/templates/survey/template_accordion.html +++ b/recruitment/templates/survey/template_accordion.html @@ -10,7 +10,7 @@ {{grouper.grouper}}
- {{grouper.list.paginator.count}} + {{grouper.list|length}}