156 lines
8.9 KiB
HTML

{% extends 'applicant/partials/candidate_facing_base.html'%}
{% load static i18n %}
{% block title %}{% trans "My Profile" %} - {{ block.super }}{% endblock %}
{% block content %}
<div class="main-content-area">
<header class="hero-section">
<div class="container">
<div class="row">
<div class="col-lg-12 col-xl-10">
<h1 class="hero-title mb-4">
{% translate "Your Career in Health & Academia starts here." %}
</h1>
<p class="lead mb-5">
{% translate "Join KAAUH, a national leader in patient care, research, and education. We are building the future of healthcare." %}
</p>
<a href="#filterSidebar" class="btn btn-hero-action me-3 mb-3 mb-lg-0">
<i class="fas fa-compass me-2"></i> {% translate "Find Your Path" %}
</a>
<a href="https://kaauh.edu.sa/about-us" class="btn btn-outline-light rounded-pill px-4 btn-lg">
{% translate "About US" %}
</a>
</div>
</div>
</div>
</header>
<section class="py-5 job-listing-section">
<div class="container">
<div class="row g-5">
<div class="col-lg-3 col-xl-3">
<button class="btn btn-outline-dark filter-toggle-button d-lg-none" type="button"
data-bs-toggle="collapse" data-bs-target="#filterSidebar" aria-expanded="false" aria-controls="filterSidebar">
<i class="fas fa-filter me-2"></i> {% translate "Filter Jobs" %}
</button>
<div class="collapse d-lg-block filter-sidebar-collapse" id="filterSidebar">
<div class="card sticky-top-filters p-4 bg-white">
<h4 class="fw-bold mb-4 text-primary-theme">
{% translate "Refine Your Search" %}
</h4>
<div class="d-grid gap-3">
<select class="form-select" aria-label="Department filter">
<option selected>{% translate "Department (Faculty/Admin)" %}</option>
<option value="1">{% translate "Clinical Services" %}</option>
<option value="2">{% translate "Research Labs" %}</option>
<option value="3">{% translate "Training & Education" %}</option>
</select>
<select class="form-select" aria-label="Employment Type filter">
<option selected>{% translate "Employment Type" %}</option>
<option value="1">{% translate "Full-Time" %}</option>
<option value="2">{% translate "Part-Time" %}</option>
</select>
<select class="form-select" aria-label="Specialty filter">
<option selected>{% translate "Specialty / Focus" %}</option>
<option value="1">{% translate "Women's Health" %}</option>
<option value="2">{% translate "Child Growth & Dev" %}</option>
</select>
<button class="btn btn-main-action rounded-pill mt-3">{% translate "Apply Filters" %}</button>
</div>
</div>
</div>
</div>
<div class="col-lg-9 col-xl-9">
<div class="sticky-filter-bar">
<div class="d-flex flex-wrap justify-content-between align-items-center">
<h3 class="fw-bold mb-0 text-dark fs-5">
{% comment %}
Assuming a 'job_count' context variable exists, otherwise
this remains static as in the original template.
{% endcomment %}
{% translate "Showing 37 Open Roles" %}
</h3>
<div class="d-flex flex-wrap gap-2">
<span class="filter-chip">
{% translate "Specialty: Women's Health" %}
<i class="fas fa-times text-xs ms-2 cursor-pointer" role="button" aria-label="Remove filter: Women's Health"></i>
</span>
</div>
</div>
</div>
<div class="mt-4 d-grid gap-3">
{% for job in active_jobs %}
{# The original card structure, now dynamically filled with job data #}
<a href="{% url 'application_detail' job.slug %}" class="card d-block text-decoration-none text-dark job-listing-card bg-white">
<div class="d-flex justify-content-between align-items-start">
<h4 class="h5 fw-bold mb-1 text-primary-theme-hover">
{{ job.title }}
</h4>
{# NOTE: You will need to define how job.category or job.tag is determined for the badge logic #}
<span class="badge bg-primary-theme job-tag">
{% comment %} Placeholder: Use job.tag or implement conditional logic {% endcomment %}
{% if job.tag_slug == 'clinical' %}{% translate "Clinical" %}
{% elif job.tag_slug == 'research' %}{% translate "Research/Contract" %}
{% else %}{% translate "General" %}{% endif %}
</span>
</div>
{# NOTE: Assuming job.department and job.location exist in your context #}
<p class="text-muted small mb-3">{{ job.department }}</p>
<div class="d-flex flex-wrap gap-4 small text-muted">
<span class="d-flex align-items-center">
<i class="fas fa-map-marker-alt me-2 job-detail-icon"></i>
{{ job.location|default:"Riyadh, KSA" }}
</span>
<span class="d-flex align-items-center">
<i class="fas fa-user-md me-2 job-detail-icon"></i>
{{ job.focus|default:"High Reliability Focus" }}
</span>
<span class="d-flex align-items-center">
<i class="fas fa-calendar-alt me-2 job-detail-icon"></i>
{{ job.employment_type|default:"Full-Time" }}
</span>
</div>
</a>
{% empty %}
<div class="alert alert-info" role="alert">
{% translate "We currently have no open roles that match your search. Please check back soon!" %}
</div>
{% endfor %}
<div class="text-center mt-5 mb-3">
<button class="btn btn-main-action btn-lg rounded-pill px-5 shadow-sm">
{% translate "Load More Jobs" %}
</button>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
{% endblock content %}