{% extends 'base.html' %} {% load static %} {% load is_already_applied %} {% load humanize %} {% block title %} Job details {% endblock %} {% block content %}

{{ job.title }}
at {{ job.company_name }}

{{ job.location }} | Posted {{ job.created_at|timesince }} ({{ job.created_at }}) | {% if job.type == '1' %} Full time {% elif job.type == '2' %} Part time {% else %} Internship {% endif %}

Category: {{ job.category }}

Last date: {{ job.last_date|date }}
Vacancy: {{ job.vacancy }}
Salary: {% if job.salary > 0 %} {{ job.salary | intcomma }}/Monthly {% else %} Negotiable {% endif %}
Tags: {% for tag in job.tags.all %} {{ tag.name }} {% endfor %}

{{ job.description | safe }}

{% if request.user.is_authenticated and user.role == 'employee' %} {% is_already_applied job request.user as is_applied %} {% if is_applied %} {% else %}
{% csrf_token %}
{% endif %} {% endif %}

About {{ job.company_name }}

{{ job.company_description | safe }}

{% if user.is_authenticated and user.role == 'employee' %}
{% if is_applied %} {% else %}
{% csrf_token %}
{% endif %}
{% endif %}
{% endblock %}