bp/app/Views/organizations/delete.twig

51 lines
2.3 KiB
Twig
Raw Permalink 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 'layouts/base.twig' %}
{% block content %}
<div class="container" style="max-width: 500px; margin-top: 100px;">
<div class="card shadow border-danger">
<div class="card-header bg-danger text-white">
<h5 class="mb-0"><i class="fa-solid fa-triangle-exclamation me-2"></i>Подтверждение удаления</h5>
</div>
<div class="card-body text-center p-4">
<p class="lead">Вы уверены, что хотите удалить организацию?</p>
<div class="alert alert-warning">
<h5 class="alert-heading">{{ organization.name }}</h5>
{% if organization.inn %}
<p class="mb-0">ИНН: {{ organization.inn }}</p>
{% endif %}
{% if organization.type == 'personal' %}
<span class="badge bg-info">Личное пространство</span>
{% else %}
<span class="badge bg-secondary">Организация</span>
{% endif %}
</div>
<div class="alert alert-danger">
<strong>Внимание!</strong> Это действие нельзя отменить.<br>
Будут удалены:
<ul class="text-start mb-0 mt-2">
<li>Все данные организации</li>
<li>Все связи с пользователями</li>
<li>Все записи, связанные с организацией</li>
</ul>
</div>
{% from 'macros/forms.twig' import form_open, form_close %}
{{ form_open(base_url('/organizations/delete/' ~ organization.id)) }}
<div class="d-grid gap-2">
<button type="submit" class="btn btn-danger btn-lg">
<i class="fa-solid fa-trash me-2"></i>Да, удалить безвозвратно
</button>
<a href="{{ base_url('/organizations/edit/' ~ organization.id) }}" class="btn btn-outline-secondary">
Нет, отмена
</a>
</div>
{{ form_close() }}
</div>
</div>
</div>
{% endblock %}