{% extends "jobs/base.html" %}
{% load job_tags %}
{% load i18n %}

{% block title %}{% trans "Delete Job" %} - {{ job.title }}{% endblock %}

{% block extra_head %}
{{ block.super }}
<link rel="stylesheet" href="{{ STATIC_URL }}css/jobs.css">
<link rel="stylesheet" href="{{ STATIC_URL }}css/delete.css">
{% endblock %}

{% block body %}
<div class="t">
    {% job_nav user job %}
    <h1>{% firstof MODULE_JOBS_LABEL 'Job' %} {% trans "Delete Page" %}</h1>

    <div class="info" style="margin: 10px 0px 10px 0px;">
        <h2><a href="{{ job.get_absolute_url }}">{% firstof job.title "Untitled" %}</a></h2>
        <div style="margin: 10px 0px 10px 0px;">
            {{ job.description|striptags|safe }}
        </div>
    </div>
    <div class="delete-prompt"> 
        {% trans "Are you sure you want to permanently delete this" %} {% firstof MODULE_JOBS_LABEL 'Job' %}?
    </div>
    <div class="delete-form">
        <form name="job-delete" method="POST" action="{% url job.delete job.pk %}">{% csrf_token %}
            <input type="hidden" name="action" value="delete">
            <input type="submit" name="submit" value="{% trans 'Confirm Delete' %}">
        </form>
    </div>
    <div class="back-item"><a href="{{ job.get_absolute_url }}">&laquo; {% trans "Back to this" %} {% firstof MODULE_JOBS_LABEL 'Job' %} - {{ job.title }}</a></div>
    <div class="back-search"><a href="{% url job.search %}">&laquo; {% trans "Back to all" %} {% firstof MODULE_JOBS_LABEL_PLURAL 'Jobs' %} </a></div>
</div>
{% endblock %}
