{% extends 'base.html' %} {% load static %} {% load is_job_already_applied %} {% load is_job_already_saved %} {% block content %} {{ job.title }} Home / Job / {{ job.title }} {% include 'messages.html' %} {{ job.title }} {{ job.company_name }} {{ job.location }} {% if job.job_type == '1' %} Full Time {% elif job.job_type == '2'%} Part Time {% else %} Internship {% endif %} {% if user.is_authenticated and user.role == 'employee' %} {% is_job_already_saved job request.user as is_saved %} {% if is_saved %} Saved {% else %} {% csrf_token %} {% endif %} {% elif request.user.id == job.user.id and user.role == 'employer' %} Delete {% comment %} {% else %} {% csrf_token %} {% endcomment %} {% endif %} {% if user.is_authenticated and user.role == 'employee' %} {% is_job_already_applied job request.user as is_applied %} {% if is_applied %} Already Applied {% else %} {% csrf_token %} {% endif %} {% elif request.user.id == job.user.id and user.role == 'employer' %} Edit {% else %} Publish Your Job {% endif %} Job Description {{ job.description | safe }} {% if user.is_authenticated and user.role == 'employee' %} {% is_job_already_saved job request.user as is_saved %} {% if is_saved %} Already Saved Job {% else %} {% csrf_token %} {% endif %} {% elif request.user.id == job.user.id and user.role == 'employer' %} Delete {% elif user.role == none %} {% csrf_token %} {% endif %} {% if user.is_authenticated and user.role == 'employee' %} {% is_job_already_applied job request.user as is_applied %} {% if is_applied %} Already Applied {% else %} {% csrf_token %} {% endif %} {% elif request.user.id == job.user.id and user.role == 'employer' %} Edit {% elif user.role == none %} {% csrf_token %} {% endif %} Job Summary Published on: {{ job.timestamp|date:"d M Y" }} Employment Status: {% if job.job_type == '1' %} Full Time {% elif job.job_type == '2'%} Part Time {% else %} Internship {% endif %} Job Location: {{ job.location }} Salary: {{ job.salary }} Application Deadline: {{ job.last_date|date:"d M Y" }} Share {% if page_obj %} {{ total }} Related Jobs {% for job in page_obj %} {{ job.title}} {{ job.company_name }} {{ job.location }} {% if job.job_type == '1' %} Full Time {% elif job.job_type == '2'%} Part Time {% else %} Internship {% endif %} {% endfor %} {% include 'jobapp/paginator.html' %} {% endif %} {% endblock content %} {% block extra_scripts %} {% endblock %}