Files
octopus/myproject/customers/templates/customers/customer_confirm_delete.html

39 lines
1.8 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{% extends "base.html" %}
{% block title %}Удалить клиента{% endblock %}
{% block content %}
<div class="container-fluid">
<div class="row">
<div class="col-12">
<h1>Удалить клиента</h1>
<div class="card">
<div class="card-body">
<p>Вы уверены, что хотите удалить следующего клиента?</p>
<div class="alert alert-warning">
<h5>{{ customer.full_name }}</h5>
<p>
<strong>Email:</strong> {{ customer.email }}<br>
<strong>Телефон:</strong> {{ customer.phone|default:"Не указан" }}<br>
<strong>Уровень лояльности:</strong> {{ customer.get_loyalty_tier_display }}<br>
<strong>VIP:</strong> {% if customer.is_vip %}Да{% else %}Нет{% endif %}
</p>
</div>
<p class="text-danger"><strong>Внимание:</strong> Это действие нельзя отменить. Все данные клиента будут удалены.</p>
<form method="post">
{% csrf_token %}
<div class="d-flex gap-2">
<button type="submit" class="btn btn-danger">Да, удалить</button>
<a href="{% url 'customers:customer-detail' customer.pk %}" class="btn btn-secondary">Отмена</a>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
{% endblock %}