diff --git a/recruitment/views.py b/recruitment/views.py index 5951654..590dafb 100644 --- a/recruitment/views.py +++ b/recruitment/views.py @@ -721,6 +721,8 @@ def kaauh_career(request): selected_job_type = request.GET.get("employment_type", "") + + job_type_keys = ( active_jobs.order_by("job_type") .distinct("job_type") @@ -739,6 +741,10 @@ def kaauh_career(request): if selected_workplace_type and selected_workplace_type in workplace_type_keys: active_jobs = active_jobs.filter(workplace_type=selected_workplace_type) + search_query=request.GET.get("q","") + if search_query: + active_jobs=active_jobs.filter(title__icontains=search_query) + JOBS_PER_PAGE = 10 paginator = Paginator(active_jobs, JOBS_PER_PAGE) page_number = request.GET.get("page", 1) @@ -763,6 +769,7 @@ def kaauh_career(request): "department_type_keys": department_type_keys, "total_open_roles": total_open_roles, "page_obj": page_obj, + "q":search_query }, ) @@ -1346,7 +1353,7 @@ def application_submit_form(request, slug): return render( request, "applicant/application_submit_form.html", - {"template_slug": job.form_template.slug,"job_slug": job.slug, "job_id": job.internal_job_id}, + {"template_slug": job.form_template.slug,"job_slug": job.slug, "job_id": job.internal_job_id,"job":job}, ) @@ -3047,6 +3054,7 @@ def portal_login(request): @login_required @candidate_user_required def applicant_portal_dashboard(request): + """applicant portal dashboard""" if not request.user.is_authenticated: return redirect("account_login") diff --git a/templates/applicant/applicant_profile.html b/templates/applicant/applicant_profile.html deleted file mode 100644 index 9bb43cd..0000000 --- a/templates/applicant/applicant_profile.html +++ /dev/null @@ -1,422 +0,0 @@ -{% extends 'applicant/partials/candidate_facing_base.html'%} -{% load static i18n %} - - -{% block title %}{% trans "My Dashboard" %} - {{ block.super }}{% endblock %} - -{% block customCSS %} - -{% endblock %} - -{% block content %} -
{{ candidate.email }}
-| {% trans "Job Title" %} | -{% trans "Applied On" %} | -{% trans "Current Stage" %} | -{% trans "Status" %} | -{% trans "Action" %} | -
|---|---|---|---|---|
| - - {{ application.job.title }} - - | -{{ application.applied_date|date:"d M Y" }} | -- - {{ application.stage }} - - | -- {% if application.is_active %} - {% trans "Active" %} - {% else %} - {% trans "Closed" %} - {% endif %} - | -- - {% trans "Details" %} - - | -
{% trans "You can upload and manage your resume, certificates, and professional documents here. These documents will be attached to your applications." %}
- - - {% trans "Upload New Document" %} - - -{% trans "Update your password regularly to keep your account secure." %}
- - {% trans "Change Password" %} - -{% trans "Manage subscriptions and job alert settings." %}
- - {% trans "Manage Alerts" %} - -