Files
login/public/delete.tpl
2026-03-05 17:43:48 +05:00

81 lines
4.3 KiB
Smarty
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.
<div class="container py-5">
<div class="row justify-content-center">
<div class="col-lg-7">
{* Заголовок страницы *}
<h2 class="h3 mb-4 fw-bold text-dark text-center" id="page-heading">
{#LOGIN_DELETE_ACCOUNT#}
</h2>
<div class="card shadow-sm border-0 overflow-hidden">
{if $admin == 1}
{* Случай, если админ пытается удалить себя *}
<div class="card-body p-5 text-center">
<div class="mb-4 text-warning">
<i class="bi bi-shield-lock" style="font-size: 3rem;"></i>
</div>
<h4 class="fw-bold">{#LOGIN_DELETE_WARNING#}</h4>
<div class="alert alert-warning d-inline-block mt-3 mb-0 px-4">
<i class="bi bi-exclamation-triangle me-2"></i> {#LOGIN_ADMIN_ACCOUNT#}
</div>
</div>
{else}
{if $delok == 1}
{* Сообщение об успешном удалении *}
<div class="card-body p-5 text-center">
<div class="mb-4 text-success">
<i class="bi bi-check-circle" style="font-size: 4rem;"></i>
</div>
<h4 class="fw-bold mb-3">{#LOGIN_DELETE_OK#}</h4>
<p class="text-muted">{#LOGIN_DELETE_INF_DEL_A#}</p>
<a href="{$ABS_PATH}index.php?id=1" class="btn btn-outline-primary mt-3">{#LOGIN_DELETE_INF_DEL_L#}</a>
</div>
{else}
{* Форма подтверждения удаления *}
<div class="card-header bg-danger text-white py-3">
<h5 class="card-title mb-0 d-flex align-items-center">
<i class="bi bi-exclamation-octagon me-2"></i> {#LOGIN_DELETE_WARNING#}
</h5>
</div>
<div class="card-body p-4 p-md-5">
<p class="fs-5 text-secondary mb-4">
{#LOGIN_DELETE_INFO#}
</p>
<form method="post" action="index.php?module=login&action=delete" class="needs-validation">
<input type="hidden" name="send" value="1" />
<div class="form-check p-3 mb-4 border rounded bg-light transition-hover">
<input class="form-check-input ms-0 me-3" name="confirm" type="checkbox" value="1" id="confirmDelete" required>
<label class="form-check-label fw-bold text-danger" for="confirmDelete">
{#LOGIN_DELETE_CONFIRM#}
</label>
</div>
<div class="d-grid gap-2 d-md-flex justify-content-md-end">
<a href="{$ABS_PATH}index.php?module=login&action=profile" class="btn btn-light px-4">{#LOGIN_DELETE_INF_DEL_C#}</a>
<button class="btn btn-danger btn-lg px-5 shadow-sm fw-bold" type="submit">
{#LOGIN_DELETE_BUTTON#}
</button>
</div>
</form>
</div>
{/if}
{/if}
</div>
{if $delok != 1}
<div class="text-center mt-4 text-muted small">
<i class="bi bi-info-circle me-1"></i> {#LOGIN_DELETE_INF_DEL#}.
</div>
{/if}
</div>
</div>
</div>
<style>
.transition-hover { transition: background-color 0.2s ease; cursor: pointer; }
.form-check:hover { background-color: #fff5f5 !important; border-color: #feb2b2 !important; }
.form-check-input:checked ~ .form-check-label { color: #c53030 !important; }
</style>