initial server version

This commit is contained in:
root
2026-02-12 16:00:15 +00:00
commit e5195dd9c5
13 changed files with 1375 additions and 0 deletions

View File

@@ -0,0 +1,77 @@
<!doctype html>
<html lang="ru">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Настройки сайта | InfraIT</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Montserrat:wght@600;700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
</head>
<body>
<main class="section">
<div class="container" style="max-width:900px;">
<div style="display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;">
<div>
<h1>Личный кабинет администратора</h1>
<p class="section-subtitle">Редактирование контактов, SEO и интеграций.</p>
</div>
<a class="btn btn-secondary" href="{{ url_for('admin_logout') }}">Выйти</a>
</div>
<form method="post" class="lead-form" style="margin-top:14px;">
{% if success %}
<p class="form-success">Настройки сохранены.</p>
{% endif %}
<label>Название компании
<input type="text" name="company_name" value="{{ settings.company_name }}" required>
</label>
<label>Телефон (как отображать)
<input type="text" name="phone_display" value="{{ settings.phone_display }}" required>
</label>
<label>Телефон (для ссылки tel:)
<input type="text" name="phone_link" value="{{ settings.phone_link }}" required>
</label>
<label>Email
<input type="email" name="email" value="{{ settings.email }}" required>
</label>
<label>URL сайта (canonical)
<input type="url" name="site_url" value="{{ settings.site_url }}" required>
</label>
<label>Yandex Verification Token
<input type="text" name="yandex_verification" value="{{ settings.yandex_verification }}">
</label>
<label>ID Яндекс.Метрики
<input type="text" name="yandex_metrika_id" value="{{ settings.yandex_metrika_id }}" placeholder="12345678">
</label>
<label>Telegram Bot Token
<input type="text" name="telegram_bot_token" value="{{ settings.telegram_bot_token }}" placeholder="123456:ABC...">
</label>
<label>Telegram Chat ID
<input type="text" name="telegram_chat_id" value="{{ settings.telegram_chat_id }}" placeholder="-100...">
</label>
<label>География выездов
<input type="text" name="geo_primary" value="{{ settings.geo_primary }}">
</label>
<label>География удаленной работы
<input type="text" name="geo_secondary" value="{{ settings.geo_secondary }}">
</label>
<button type="submit" class="btn btn-primary">Сохранить настройки</button>
</form>
</div>
</main>
</body>
</html>