36 lines
1.9 KiB
HTML
36 lines
1.9 KiB
HTML
{% extends "base.html" %}
|
|
{% load static i18n %}
|
|
|
|
{% block title %}{% trans "Delete Application" %} - {{ block.super }}{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h1>
|
|
<svg class="heroicon" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
</svg>
|
|
{% trans "Delete Application" %}: {{ object.candidate.full_name }}
|
|
</h1>
|
|
<a href="{% url 'applications_list' %}" class="btn btn-secondary">{% trans "Back to List" %}</a>
|
|
</div>
|
|
<p>{% trans "Are you sure you want to delete this application for" %} "{{ object.candidate.full_name }}" {% trans "for the job" %} "{{ object.job.title }}"? {% trans "This action cannot be undone." %}</p>
|
|
{% if object.job %}
|
|
<p><strong>{% trans "Job:" %}</strong> {{ object.job.title }}</p>
|
|
{% endif %}
|
|
{% if object.candidate %}
|
|
<p><strong>{% trans "Candidate:" %}</strong> {{ object.candidate.full_name }}</p>
|
|
{% endif %}
|
|
<p><strong>{% trans "Application Date:" %}</strong> {{ object.created_at|date:"M d, Y" }}</p>
|
|
<form method="post">
|
|
{% csrf_token %}
|
|
<button type="submit" class="btn btn-danger">
|
|
<svg class="heroicon" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
</svg>
|
|
{% trans "Yes, Delete Application" %}
|
|
</button>
|
|
</form>
|
|
</div>
|
|
{% endblock %}
|