update some urls

This commit is contained in:
ismail 2025-11-28 20:25:16 +03:00
parent 13fc679a00
commit 3749fbd3ef
3 changed files with 6 additions and 7 deletions

View File

@ -5138,11 +5138,10 @@ def portal_logout(request):
def interview_create_type_selection(request, candidate_slug): def interview_create_type_selection(request, candidate_slug):
"""Show interview type selection page for a candidate""" """Show interview type selection page for a candidate"""
candidate = get_object_or_404(Application, slug=candidate_slug) candidate = get_object_or_404(Application, slug=candidate_slug)
# Validate candidate is in Interview stage # Validate candidate is in Interview stage
if candidate.stage != 'Interview': # if candidate.stage != 'Interview':
messages.error(request, f"Candidate {candidate.name} is not in Interview stage.") # messages.error(request, f"Candidate {candidate.name} is not in Interview stage.")
return redirect('candidate_interview_view', slug=candidate.job.slug) # return redirect('candidate_interview_view', slug=candidate.job.slug)
context = { context = {
'candidate': candidate, 'candidate': candidate,

View File

@ -41,7 +41,7 @@
</div> </div>
<div class="mt-4"> <div class="mt-4">
<a href="{% url 'candidate_interview_view' slug=job.slug %}" <a href="#"
class="btn btn-outline-primary"> class="btn btn-outline-primary">
<i class="fas fa-arrow-left me-2"></i> <i class="fas fa-arrow-left me-2"></i>
Back to Candidate List Back to Candidate List

View File

@ -227,7 +227,7 @@
<div class="vr" style="height: 28px;"></div> <div class="vr" style="height: 28px;"></div>
{# Form 2: Schedule Interviews #} {# Form 2: Schedule Interviews #}
<form hx-boost="true" hx-include="#application-form" action="{% url 'schedule_interviews' job.slug %}" method="get" class="action-group"> <form hx-boost="true" hx-include="#application-form" action="#" method="get" class="action-group">
<button type="submit" class="btn btn-main-action btn-sm"> <button type="submit" class="btn btn-main-action btn-sm">
<i class="fas fa-calendar-plus me-1"></i> {% trans "Schedule Interviews" %} <i class="fas fa-calendar-plus me-1"></i> {% trans "Schedule Interviews" %}
</button> </button>
@ -431,7 +431,7 @@
<button type="button" class="btn btn-outline-primary btn-sm" <button type="button" class="btn btn-outline-primary btn-sm"
data-bs-toggle="modal" data-bs-toggle="modal"
data-bs-target="#candidateviewModal" data-bs-target="#candidateviewModal"
hx-get="{% url 'interview_create_type_selection' application_slug=application.slug %}" hx-get="{% url 'interview_create_type_selection' application.slug %}"
hx-select=".card-body" hx-select=".card-body"
hx-swap="innerHTML" hx-swap="innerHTML"
hx-target="#candidateviewModalBody"> hx-target="#candidateviewModalBody">