52 lines
2.0 KiB
HTML
52 lines
2.0 KiB
HTML
{% extends 'frontend/base.html' %}
|
|
{% load markdown_filters %}
|
|
|
|
{% block title %} - Delete FAQ Entry{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="col-12">
|
|
<div class="d-flex justify-content-between align-items-center mb-4">
|
|
<h3>
|
|
<i class="bi bi-trash"></i> Delete FAQ Entry
|
|
</h3>
|
|
<a href="{% url 'frontend:faq_list' %}" class="btn btn-secondary">
|
|
<i class="bi bi-arrow-left"></i> Back to FAQ List
|
|
</a>
|
|
</div>
|
|
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<div class="alert alert-warning">
|
|
<h5><i class="bi bi-exclamation-triangle"></i> Confirm Deletion</h5>
|
|
<p>Are you sure you want to delete this FAQ entry? This action cannot be undone.</p>
|
|
</div>
|
|
|
|
<div class="mb-4">
|
|
<h5 class="text-muted">FAQ Entry Details:</h5>
|
|
<div class="border rounded p-3 bg-light">
|
|
<h6><strong>Title:</strong></h6>
|
|
<p>{{ faq.title }}</p>
|
|
|
|
<h6><strong>Content:</strong></h6>
|
|
<div style="max-height: 200px; overflow-y: auto;">{{ faq.content|markdown }}</div>
|
|
|
|
<h6><strong>Order:</strong></h6>
|
|
<p>{{ faq.order }}</p>
|
|
</div>
|
|
</div>
|
|
|
|
<form method="post">
|
|
{% csrf_token %}
|
|
<div class="d-flex justify-content-between">
|
|
<a href="{% url 'frontend:faq_list' %}" class="btn btn-secondary">
|
|
<i class="bi bi-x-circle"></i> Cancel
|
|
</a>
|
|
<button type="submit" class="btn btn-danger">
|
|
<i class="bi bi-trash"></i> Delete FAQ Entry
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |