HH/templates/projects/task_delete_confirm.html
ismail c5f76b3855
Some checks are pending
Build and Push Docker Image / build (push) Waiting to run
updates
2026-05-11 14:45:30 +03:00

58 lines
3.0 KiB
HTML

{% extends "layouts/base.html" %}
{% load i18n %}
{% block title %}{% trans "Delete Task" %} - PX360{% endblock %}
{% block content %}
<div class="container-fluid">
<div class="row justify-content-center">
<div class="col-md-6">
<div class="card border-danger">
<div class="card-header bg-danger text-white">
<h5 class="mb-0">
<i class="bi bi-exclamation-triangle me-2"></i>
{% trans "Delete Task" %}
</h5>
</div>
<div class="card-body">
<p class="mb-3">
{% trans "Are you sure you want to delete this task?" %}
</p>
<div class="alert alert-secondary">
<strong>{% trans "Task:" %}</strong> {{ task.title }}<br>
<strong>{% trans "Project:" %}</strong> {{ project.name }}
</div>
<p class="text-danger mb-4">
<strong>{% trans "This action cannot be undone." %}</strong>
</p>
<form method="post">
{% csrf_token %}
<div class="flex gap-3">
<button type="submit" class="px-6 py-3 bg-red-600 text-white rounded-xl font-bold text-sm hover:bg-red-700 transition inline-flex items-center gap-2">
<i data-lucide="trash-2" class="w-4 h-4"></i> {% trans "Delete Task" %}
</button>
{% if focus_phase %}
<a href="{% url 'projects:focus_phase_detail' pk=project.pk phase=focus_phase.phase %}" class="px-6 py-3 border-2 border-slate-200 rounded-xl font-semibold text-slate-600 hover:bg-slate-50 transition text-sm inline-flex items-center gap-2">
{% trans "Cancel" %}
</a>
{% elif pdca_phase %}
<a href="{% url 'projects:pdca_phase_detail' pk=project.pk phase=pdca_phase.phase %}" class="px-6 py-3 border-2 border-slate-200 rounded-xl font-semibold text-slate-600 hover:bg-slate-50 transition text-sm inline-flex items-center gap-2">
{% trans "Cancel" %}
</a>
{% else %}
<a href="{% url 'projects:project_detail' pk=project.pk %}" class="px-6 py-3 border-2 border-slate-200 rounded-xl font-semibold text-slate-600 hover:bg-slate-50 transition text-sm inline-flex items-center gap-2">
{% trans "Cancel" %}
</a>
{% endif %}
</div>
</form>
</div>
</div>
</div>
</div>
</div>
{% endblock %}