diff --git a/db.sqlite3 b/db.sqlite3 index d093f67..0890a9d 100644 Binary files a/db.sqlite3 and b/db.sqlite3 differ diff --git a/recruitment/__pycache__/models.cpython-312.pyc b/recruitment/__pycache__/models.cpython-312.pyc index 44e9fbd..bf44977 100644 Binary files a/recruitment/__pycache__/models.cpython-312.pyc and b/recruitment/__pycache__/models.cpython-312.pyc differ diff --git a/recruitment/__pycache__/views.cpython-312.pyc b/recruitment/__pycache__/views.cpython-312.pyc index 70cde35..584200d 100644 Binary files a/recruitment/__pycache__/views.cpython-312.pyc and b/recruitment/__pycache__/views.cpython-312.pyc differ diff --git a/recruitment/models.py b/recruitment/models.py index 1852081..f4e6780 100644 --- a/recruitment/models.py +++ b/recruitment/models.py @@ -229,7 +229,7 @@ class JobPosting(Base): parts.append(self.location_city) if self.location_state: parts.append(self.location_state) - if self.location_country and self.location_country != "United States": + if self.location_country: parts.append(self.location_country) return ", ".join(parts) if parts else "Not specified" diff --git a/recruitment/views.py b/recruitment/views.py index 3fb5839..cb49cd2 100644 --- a/recruitment/views.py +++ b/recruitment/views.py @@ -963,6 +963,8 @@ def submit_form(request, template_id): resume=resume.get_file if resume.is_file else None, job=submission.template.job, ) + return redirect('application_success') + except Exception as e: logger.error(f"Candidate creation failed,{e}") pass diff --git a/templates/forms/form_builder.html b/templates/forms/form_builder.html index 328e686..5caea5d 100644 --- a/templates/forms/form_builder.html +++ b/templates/forms/form_builder.html @@ -5,7 +5,9 @@
| {% trans "Job Title" %} | -{% trans "Department" %} | -{% trans "Location" %} | -{% trans "Job Type" %} | -{% trans "Status" %} | +{% trans "Job ID" %} | + {% comment %}{% trans "Job Title" %} | +{% trans "Status" %} | {% endcomment %}{% trans "Source" %} | -{% trans "Actions" %} | +{% trans "Actions" %} | +{% trans "Manage Forms" %} | + +
+ {% trans "Applicants Metrics" %}
+
|
|||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ job.title }} | -{{ job.department|default:"N/A" }} | -{{ job.get_location_display }} | -{{ job.get_job_type_display }} | -+ | {{ job }} | + {% comment %}{{ job.title }} | +{{ job.status }} | {% endcomment %}{{ job.get_source }} | -+ | + | + + | + + {# CANDIDATE MANAGEMENT DATA - 7 SEPARATE COLUMNS CORRESPONDING TO THE HEADER #} +{% if job.metrics.applied %}{{ job.metrics.applied }}{% else %}-{% endif %} | +{% if job.metrics.screening %}{{ job.metrics.screening }}{% else %}-{% endif %} | +{% if job.metrics.exam_p %}{{ job.metrics.exam_p }}{% else %}-{% endif %} | +{% if job.metrics.exam_f %}{{ job.metrics.exam_f }}{% else %}-{% endif %} | +{% if job.metrics.interview_p %}{{ job.metrics.interview_p }}{% else %}-{% endif %} | +{% if job.metrics.interview_f %}{{ job.metrics.interview_f }}{% else %}-{% endif %} | +{% if job.metrics.offer %}{{ job.metrics.offer }}{% else %}-{% endif %} | |||||||||||