intra_max_chatbot/admin/templates/base.html
2026-03-26 00:25:37 +03:00

64 lines
3.1 KiB
HTML

<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}Support Bot Admin{% endblock %}</title>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, sans-serif; background: #f5f5f5; color: #333; }
nav {
background: #1a73e8; color: white; padding: 12px 24px;
display: flex; align-items: center; gap: 24px;
}
nav a { color: white; text-decoration: none; font-weight: 500; }
nav a:hover { text-decoration: underline; }
nav .brand { font-size: 1.2rem; font-weight: 700; margin-right: 16px; }
.container { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
h1 { font-size: 1.5rem; margin-bottom: 16px; }
h2 { font-size: 1.2rem; margin-bottom: 12px; }
.card { background: white; border-radius: 8px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.1); margin-bottom: 16px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eee; font-size: 0.9rem; }
th { background: #f8f8f8; font-weight: 600; }
tr:hover td { background: #fafafa; }
.btn { display: inline-block; padding: 7px 14px; border-radius: 5px; font-size: 0.85rem; font-weight: 500; cursor: pointer; border: none; text-decoration: none; }
.btn-primary { background: #1a73e8; color: white; }
.btn-primary:hover { background: #1557b0; }
.btn-danger { background: #d93025; color: white; }
.btn-danger:hover { background: #b31412; }
.btn-secondary { background: #eee; color: #333; }
.btn-secondary:hover { background: #ddd; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.badge-open { background: #fce8e6; color: #d93025; }
.badge-in_progress { background: #fef7e0; color: #b06000; }
.badge-closed { background: #e6f4ea; color: #137333; }
.badge-auth { background: #e6f4ea; color: #137333; }
.badge-blocked { background: #fce8e6; color: #d93025; }
.badge-pending { background: #f1f3f4; color: #666; }
form { display: inline; }
.form-row { margin-bottom: 14px; }
label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
input[type=text], input[type=number], select, textarea {
width: 100%; padding: 8px 10px; border: 1px solid #ccc;
border-radius: 5px; font-size: 0.9rem; font-family: inherit;
}
textarea { min-height: 80px; resize: vertical; }
.filter-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar select, .filter-bar input { width: auto; }
</style>
</head>
<body>
<nav>
<span class="brand">🤖 Support Admin</span>
<a href="/admin/orgs">Организации</a>
<a href="/admin/org-users">Клиенты (белый список)</a>
<a href="/admin/bot-users">Пользователи бота</a>
<a href="/admin/tickets">Заявки</a>
<a href="/admin/chat-log">Чаты</a>
</nav>
<div class="container">
{% block content %}{% endblock %}
</div>
</body>
</html>