ui is fixed
This commit is contained in:
parent
f3f60d4fc5
commit
1740eccf14
@ -996,6 +996,18 @@ class Application(Base):
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
@property
|
||||
def is_active(self):
|
||||
deadline=self.job.application_deadline
|
||||
now=timezone.now().date()
|
||||
if deadline>now:
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -285,21 +285,21 @@
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="text-center p-3 bg-light rounded h-100 shadow-sm">
|
||||
<i class="fas fa-building text-info fa-2x mb-2"></i>
|
||||
<i class="fas fa-building text-primary-theme fa-2x mb-2"></i>
|
||||
<h6 class="text-muted small">{% trans "Department" %}</h6>
|
||||
<p class="mb-0 fw-bold">{{ application.job.department|default:"-" }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="text-center p-3 bg-light rounded h-100 shadow-sm">
|
||||
<i class="fas fa-briefcase text-success fa-2x mb-2"></i>
|
||||
<i class="fas fa-briefcase text-primary-theme fa-2x mb-2"></i>
|
||||
<h6 class="text-muted small">{% trans "Job Type" %}</h6>
|
||||
<p class="mb-0 fw-bold">{{ application.get_job_type_display }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="text-center p-3 bg-light rounded h-100 shadow-sm">
|
||||
<i class="fas fa-map-marker-alt text-warning fa-2x mb-2"></i>
|
||||
<i class="fas fa-map-marker-alt text-primary-theme fa-2x mb-2"></i>
|
||||
<h6 class="text-muted small">{% trans "Location" %}</h6>
|
||||
<p class="mb-0 fw-bold">{{ application.get_workplace_type_display }}</p>
|
||||
</div>
|
||||
@ -332,7 +332,7 @@
|
||||
target="_blank" class="text-decoration-none text-dark">
|
||||
<div class="kaauh-card h-50 shadow-sm action-card">
|
||||
<div class="card-body text-center mb-4">
|
||||
<i class="fas fa-file-download fa-2x text-success mb-3"></i>
|
||||
<i class="fas fa-file-download fa-2x text-primary-theme mb-3"></i>
|
||||
<h6>{% trans "Download Resume" %}</h6>
|
||||
<p class="text-muted small">{% trans "Get your submitted file" %}</p>
|
||||
<a href="{{ application.resume.url }}"
|
||||
@ -448,7 +448,7 @@
|
||||
</h5>
|
||||
</div>
|
||||
<div class="col-auto">
|
||||
<button class="btn btn-sm btn-light" data-bs-toggle="modal" data-bs-target="#uploadDocumentModal">
|
||||
<button class="btn btn-outline-secondary text-white" data-bs-toggle="modal" data-bs-target="#uploadDocumentModal">
|
||||
<i class="fas fa-plus me-1"></i>
|
||||
{% trans "Upload Document" %}
|
||||
</button>
|
||||
@ -543,42 +543,42 @@
|
||||
</div>
|
||||
<div class="card-body p-4">
|
||||
{% if application.stage == 'Applied' %}
|
||||
<div class="alert alert-info">
|
||||
<div class="alert bg-primary-theme text-white">
|
||||
<i class="fas fa-clock me-2"></i>
|
||||
{% trans "Your application is being reviewed by our recruitment team. You will receive an update within 3-5 business days." %}
|
||||
</div>
|
||||
{% elif application.stage == 'Screening' %}
|
||||
<div class="alert alert-warning">
|
||||
<div class="alert bg-primary-theme text-white">
|
||||
<i class="fas fa-search me-2"></i>
|
||||
{% trans "Your application is currently under screening. We are evaluating your qualifications against the job requirements." %}
|
||||
</div>
|
||||
{% elif application.stage == 'Document Review' %}
|
||||
<div class="alert alert-purple">
|
||||
<div class="alert bg-primary-theme text-white">
|
||||
<i class="fas fa-file-alt me-2"></i>
|
||||
{% trans "Please upload the required documents for review. Our team will evaluate your submitted materials." %}
|
||||
</div>
|
||||
{% elif application.stage == 'Exam' %}
|
||||
<div class="alert alert-purple">
|
||||
<div class="alert bg-primary-theme text-white">
|
||||
<i class="fas fa-clipboard-check me-2"></i>
|
||||
{% trans "You have been shortlisted for an assessment. Please check your email for exam details and preparation materials." %}
|
||||
</div>
|
||||
{% elif application.stage == 'Interview' %}
|
||||
<div class="alert alert-success">
|
||||
<div class="alert bg-primary-theme text-white">
|
||||
<i class="fas fa-video me-2"></i>
|
||||
{% trans "Congratulations! You have been selected for an interview. Please check the interview schedule above and prepare accordingly." %}
|
||||
</div>
|
||||
{% elif application.stage == 'Offer' %}
|
||||
<div class="alert alert-warning">
|
||||
<div class="alert bg-primary-theme text-white">
|
||||
<i class="fas fa-handshake me-2"></i>
|
||||
{% trans "You have received a job offer! Please check your email for the detailed offer letter and next steps." %}
|
||||
</div>
|
||||
{% elif application.stage == 'Hired' %}
|
||||
<div class="alert alert-success">
|
||||
<div class="alert bg-primary-theme text-white">
|
||||
<i class="fas fa-trophy me-2"></i>
|
||||
{% trans "Welcome to the team! You will receive onboarding information shortly." %}
|
||||
</div>
|
||||
{% elif application.stage == 'Rejected' %}
|
||||
<div class="alert alert-danger">
|
||||
<div class="alert bg-primary-theme text-white">
|
||||
<i class="fas fa-times-circle me-2"></i>
|
||||
{% trans "Thank you for your interest. Unfortunately, your application was not selected at this time. We encourage you to apply for other positions." %}
|
||||
</div>
|
||||
|
||||
@ -508,16 +508,16 @@
|
||||
<div class="mb-3">
|
||||
<div class="d-flex justify-content-between align-items-center mb-2">
|
||||
<span class="text-muted small fw-medium">{% trans "Current Stage" %}</span>
|
||||
<span class="badge badge-stage bg-info text-white">
|
||||
<span class="badge badge-stage bg-primary-theme text-white">
|
||||
{{ application.stage }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<span class="text-muted small fw-medium">{% trans "Status" %}</span>
|
||||
{% if application.is_active %}
|
||||
<span class="badge badge-stage bg-success">{% trans "Active" %}</span>
|
||||
<span class="badge badge-stage bg-primary-theme">{% trans "Active" %}</span>
|
||||
{% else %}
|
||||
<span class="badge badge-stage bg-warning text-dark">{% trans "Closed" %}</span>
|
||||
<span class="badge badge-stage bg-danger text-dark">{% trans "Closed" %}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user