HH/templates/organizations/orgsubsection_confirm_delete.html
ismail 7369d08012
All checks were successful
Build and Push Docker Image / build (push) Successful in 4m14s
feat: unified reference numbers + feedback modules QA audit
Reference numbers (unified scheme PREFIX-YYYYMM-HOSP-NNNN, e.g. CMP-202606-HHN-0001):
- new ReferenceSequence model + generate_reference() helper (apps/core)
- Complaint/Inquiry/Observation/Appreciation/Suggestion emit unified refs via save()
- prefix-based auto-routing in public track API (CMP/INQ/OBS trackable; APR/SGT internal-only)
- removed legacy CMP-/INQ- generators in ui_views, integrations, px_sources
- migrations: core.0003_referencesequence, appreciation.0006, feedback.0008, observations.0012
- unit tests (format, sanitization, monthly reset, 40-thread concurrency)

QA audit:
- isolated E2E hospital sandbox mirroring HH-N + 10 role users (create_e2e_isolated_env)
- feedback-modules-audit.spec.ts + audit helper (headed, run-to-completion)
- reports/feedback-modules-qa-report.md

Also bundles accumulated in-progress work across complaints, observations,
organizations, templates, and other modules.
2026-06-14 14:29:23 +03:00

57 lines
3.0 KiB
HTML

{% extends 'layouts/base.html' %}
{% load i18n %}
{% block title %}{% trans "Delete Sub-Section" %} - PX360{% endblock %}
{% block content %}
<div class="max-w-lg mx-auto">
<div class="bg-white rounded-2xl shadow-sm border border-gray-50 overflow-hidden">
<div class="p-8 text-center">
<div class="w-16 h-16 bg-red-100 rounded-full flex items-center justify-center mx-auto mb-6">
<i data-lucide="alert-triangle" class="w-8 h-8 text-red-500"></i>
</div>
<h1 class="text-2xl font-bold text-gray-800 mb-2">{% trans "Delete Sub-Section" %}</h1>
<p class="text-gray-500 mb-6">
{% blocktrans %}Are you sure you want to delete <strong>{{ sub_section.name_en }}</strong>? This action cannot be undone.{% endblocktrans %}
</p>
<div class="bg-gray-50 rounded-xl p-4 mb-6 text-left">
<div class="grid grid-cols-2 gap-4 text-sm">
<div>
<span class="text-gray-400 block text-xs uppercase font-semibold mb-1">{% trans "Name" %}</span>
<span class="text-gray-800 font-medium">{{ sub_section.name_en }}</span>
</div>
<div>
<span class="text-gray-400 block text-xs uppercase font-semibold mb-1">{% trans "Code" %}</span>
<span class="text-gray-800 font-medium">{{ sub_section.code|default:"-" }}</span>
</div>
<div>
<span class="text-gray-400 block text-xs uppercase font-semibold mb-1">{% trans "Parent Section" %}</span>
<span class="text-gray-800 font-medium">{{ sub_section.section.name_en }}</span>
</div>
<div>
<span class="text-gray-400 block text-xs uppercase font-semibold mb-1">{% trans "Status" %}</span>
<span class="px-2.5 py-1 rounded-lg text-xs font-bold {% if sub_section.status == 'active' %}bg-green-100 text-green-600{% else %}bg-gray-100 text-gray-600{% endif %}">
{% if sub_section.status == 'active' %}{% trans "Active" %}{% else %}{% trans "Inactive" %}{% endif %}
</span>
</div>
</div>
</div>
<form method="post">
{% csrf_token %}
<div class="flex gap-3">
<a href="{% url 'organizations:orgsection_detail' sub_section.section.pk %}" class="flex-1 px-6 py-3 bg-gray-200 text-gray-700 rounded-xl font-semibold hover:bg-gray-300 transition">
{% trans "Cancel" %}
</a>
<button type="submit" class="flex-1 px-6 py-3 bg-red-500 text-white rounded-xl font-bold hover:bg-red-600 transition shadow-lg shadow-red-200">
{% trans "Delete" %}
</button>
</div>
</form>
</div>
</div>
</div>
{% endblock %}