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%' }">
|
2021-01-15 15:19:10 +01:00
|
|
|
<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>Detail</span></p>
|
2021-01-17 12:13:39 +01:00
|
|
|
<h1 class="mb-3 bread" data-scrollax="properties: { translateY: '30%', opacity: 1.6 }">{{ job.title }}</h1>
|
2021-01-13 20:24:06 +01:00
|
|
|
</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">
|
2021-01-17 10:12:40 +01:00
|
|
|
{% if in_my_list %}
|
2021-01-17 11:30:13 +01:00
|
|
|
<a href="javascripts:void(0);" id="jobwl{{ job.id }}" title="Remove from my wish list" data-wl="1" onclick="addorremove({{ job.id }})" class="btn btn-danger rounded-circle btn-favorite d-flex align-items-center">
|
2021-01-17 10:12:40 +01:00
|
|
|
<span class="icon-heart"></span>
|
|
|
|
</a>
|
|
|
|
{% else %}
|
2021-01-17 11:30:13 +01:00
|
|
|
<a href="javascripts:void(0);" id="jobwl{{ job.id }}" title="Add to my wish list" data-wl="0" onclick="addorremove({{ job.id }})" class="btn btn-primary rounded-circle btn-favorite d-flex align-items-center">
|
2021-01-17 10:12:40 +01:00
|
|
|
<span class="icon-heart"></span>
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
2021-01-14 20:31:47 +01:00
|
|
|
{% 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 15:19:10 +01:00
|
|
|
<a href="{% url 'users:employee_profile' employee_id=employee.pk job_id=job.id %}" 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 %}
|
2021-01-15 19:58:42 +01:00
|
|
|
<div class="tag-widget post-tag-container mb-5 mt-5">
|
|
|
|
<a href="{% url 'jobs:delete_job' slug=job.slug pk=job.pk %}" class="btn btn-danger py-2 mr-1">Delete</a>
|
|
|
|
<a href="{% url 'jobs:update_job' slug=job.slug pk=job.pk %}" class="btn btn-primary py-2 mr-1">Update</a>
|
|
|
|
</div>
|
2021-01-15 08:24:37 +01:00
|
|
|
{% 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 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 %}
|