agdar/psychology/templates/psychology/goal_confirm_delete.html
Marwan Alwali 2f1681b18c update
2025-11-11 13:44:48 +03:00

41 lines
1.8 KiB
HTML

{% extends "psychology/base.html" %}
{% load i18n %}
{% block title %}{% trans "Delete Goal" %}{% endblock %}
{% block breadcrumb %}
<li class="breadcrumb-item"><a href="{% url 'psychology:goal_list' %}">{% trans "Goals" %}</a></li>
<li class="breadcrumb-item active">{% trans "Delete" %}</li>
{% endblock %}
{% block psychology_content %}
<div class="card psychology-card border-danger">
<div class="card-header bg-danger text-white">
<h5 class="mb-0"><i class="bi bi-trash"></i> {% trans "Delete Treatment Goal" %}</h5>
</div>
<div class="card-body">
<div class="alert alert-danger">
<h5><i class="bi bi-exclamation-triangle"></i> {% trans "Warning" %}</h5>
<p>{% trans "Are you sure you want to delete this goal?" %}</p>
<p><strong>{% trans "Patient:" %}</strong> {{ object.patient.get_full_name }}</p>
<p><strong>{% trans "Goal:" %}</strong> {{ object.goal_description|truncatewords:20 }}</p>
<p><strong>{% trans "Status:" %}</strong> {{ object.get_status_display }}</p>
<p><strong>{% trans "Progress:" %}</strong> {{ object.progress_percentage }}%</p>
<p class="mb-0"><strong>{% trans "This action cannot be undone!" %}</strong></p>
</div>
<form method="post">
{% csrf_token %}
<div class="d-flex justify-content-between">
<a href="{% url 'psychology:goal_list' %}" class="btn btn-secondary">
<i class="bi bi-x-circle"></i> {% trans "Cancel" %}
</a>
<button type="submit" class="btn btn-danger">
<i class="bi bi-trash"></i> {% trans "Delete Goal" %}
</button>
</div>
</form>
</div>
</div>
{% endblock %}