Bicycle/App/view/Settings/index.html
2026-08-15 10:39:22 +03:00

74 lines
4.2 KiB
HTML
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.

<?php
/**
* @package Bicycle
* @description Settings/index.html — профиль и управление.
*
* @var array $auth_user
* @var object $user
*/
?>
<h1 style="margin:0 0 20px;font-size:24px">Настройки</h1>
<div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px">
<div class="card elev-md" style="padding:20px">
<div style="font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:14px">Профиль</div>
<div style="display:flex;flex-direction:column;gap:10px">
<div>
<div style="font-size:11px;color:var(--muted);margin-bottom:2px">Логин</div>
<div style="font-size:14px;font-weight:500"><?= htmlspecialchars($auth_user['login'], ENT_QUOTES, 'UTF-8') ?></div>
</div>
<?php if (!empty($auth_user['full_name'])): ?>
<div>
<div style="font-size:11px;color:var(--muted);margin-bottom:2px">Имя</div>
<div style="font-size:14px;font-weight:500"><?= htmlspecialchars($auth_user['full_name'], ENT_QUOTES, 'UTF-8') ?></div>
</div>
<?php endif; ?>
<?php if (!empty($auth_user['email'])): ?>
<div>
<div style="font-size:11px;color:var(--muted);margin-bottom:2px">E-mail</div>
<div style="font-size:14px"><?= htmlspecialchars($auth_user['email'], ENT_QUOTES, 'UTF-8') ?></div>
</div>
<?php endif; ?>
<?php if (!empty($auth_user['role'])): ?>
<div>
<div style="font-size:11px;color:var(--muted);margin-bottom:2px">Роль</div>
<div style="font-size:14px"><?= htmlspecialchars($auth_user['role'], ENT_QUOTES, 'UTF-8') ?></div>
</div>
<?php endif; ?>
</div>
<div style="margin-top:18px;padding-top:14px;border-top:1px solid var(--surface-3)">
<a href="/login/logout" class="btn btn-secondary" style="font-size:13px">Выйти из аккаунта</a>
</div>
</div>
<div class="card elev-md" style="padding:20px">
<div style="font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:14px">Управление</div>
<div style="display:flex;flex-direction:column;gap:8px">
<a href="/budgets" class="card elev-md" style="padding:14px 16px;display:flex;align-items:center;justify-content:space-between;text-decoration:none;color:inherit;border-radius:var(--radius-md)">
<div>
<div style="font-size:14px;font-weight:500">Статьи доходов и расходов</div>
<div style="font-size:12px;color:var(--muted);margin-top:2px">Создание категорий и групп — кнопка «Статьи» на плане бюджета</div>
</div>
<span style="color:var(--muted);font-size:18px">›</span>
</a>
<a href="/" class="card elev-md" style="padding:14px 16px;display:flex;align-items:center;justify-content:space-between;text-decoration:none;color:inherit;border-radius:var(--radius-md)">
<div>
<div style="font-size:14px;font-weight:500">Счета</div>
<div style="font-size:12px;color:var(--muted);margin-top:2px">Управление счетами — на дашборде</div>
</div>
<span style="color:var(--muted);font-size:18px">›</span>
</a>
<a href="/budgets" class="card elev-md" style="padding:14px 16px;display:flex;align-items:center;justify-content:space-between;text-decoration:none;color:inherit;border-radius:var(--radius-md)">
<div>
<div style="font-size:14px;font-weight:500">Бюджет</div>
<div style="font-size:12px;color:var(--muted);margin-top:2px">Годовой план по статьям</div>
</div>
<span style="color:var(--muted);font-size:18px">›</span>
</a>
</div>
</div>
</div>