2021-01-13 20:24:06 +01:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
{% load static %}
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<div class="hero-wrap js-fullheight" style="background-image: url('{% static 'images/bg_2.jpg' %}');" data-stellar-background-ratio="0.5"> <div class="overlay"></div>
|
|
|
|
<div class="container">
|
|
|
|
<div class="row no-gutters slider-text js-fullheight align-items-end justify-content-start" data-scrollax-parent="true">
|
|
|
|
<div class="col-md-8 ftco-animate text-center text-md-left mb-5" data-scrollax=" properties: { translateY: '70%' }">
|
|
|
|
<p class="breadcrumbs" data-scrollax="properties: { translateY: '30%', opacity: 1.6 }"><span class="mr-3"><a href="index.html">Home <i class="ion-ios-arrow-forward"></i></a></span> <span class="mr-3"><a href="blog.html">Blog <i class="ion-ios-arrow-forward"></i></a></span> <span>Single</span></p>
|
|
|
|
<h1 class="mb-3 bread" data-scrollax="properties: { translateY: '30%', opacity: 1.6 }">Job detail</h1>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<section class="ftco-section ftco-degree-bg">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-8 ftco-animate">
|
|
|
|
<h2 class="mb-3">{{ job.title }}</h2>
|
|
|
|
<p>{{ job.description|safe }}</p>
|
2021-01-14 20:31:47 +01:00
|
|
|
<hr>
|
|
|
|
<form method="post">
|
|
|
|
{% csrf_token %}
|
|
|
|
{% if user.is_employee %}
|
|
|
|
<div class="ml-auto d-flex">
|
|
|
|
{% if employee_applied %}
|
|
|
|
<input type="submit" value="Apply" class="btn btn-primary py-2 mr-1" disabled title="You have already applied.">
|
|
|
|
{% else %}
|
|
|
|
<input type="submit" value="Apply" class="btn btn-primary py-2 mr-1">
|
|
|
|
<a href="#" class="btn btn-danger rounded-circle btn-favorite d-flex align-items-center">
|
|
|
|
<span class="icon-heart"></span>
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</form>
|
2021-01-13 20:24:06 +01:00
|
|
|
|
2021-01-15 09:48:48 +01:00
|
|
|
{% if user.is_employer and user.id == employer_id %}
|
2021-01-15 08:24:37 +01:00
|
|
|
{% if applied_employees %}
|
|
|
|
<div class="list-group">
|
|
|
|
<button type="button" class="list-group-item list-group-item-action active" aria-current="true" style="text-align: center">
|
|
|
|
Applied candidates
|
|
|
|
</button>
|
|
|
|
{% for employee in applied_employees %}
|
2021-01-15 09:48:48 +01:00
|
|
|
<a href="{% url 'users:employee_profile' pk=employee.pk %}" class="list-group-item list-group-item-action">{{ employee.first_name }} {{ employee.last_name }}</a>
|
2021-01-15 08:24:37 +01:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<div class="list-group">
|
|
|
|
<button type="button" class="list-group-item list-group-item-danger" aria-current="true" style="text-align: center">
|
|
|
|
No applied candidates
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
2021-01-13 20:24:06 +01:00
|
|
|
</div> <!-- .col-md-8 -->
|
|
|
|
<div class="col-md-4 sidebar ftco-animate">
|
|
|
|
<div class="sidebar-box">
|
|
|
|
<form action="#" class="search-form">
|
|
|
|
<div class="form-group">
|
|
|
|
<span class="icon icon-search"></span>
|
|
|
|
<input type="text" class="form-control" placeholder="Type a keyword and hit enter">
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="sidebar-box ftco-animate">
|
|
|
|
<div class="categories">
|
|
|
|
<h3>Categories</h3>
|
|
|
|
{% for category in categories %}
|
|
|
|
<li><a href="#">{{ category.title }} <span>{{ category.job_count }}</span></a></li>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section> <!-- .section -->
|
|
|
|
|
|
|
|
{% endblock %}
|