Files
wifi_switch/data/settings.html
T

141 lines
7.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>Панель управления — Настройки сети</title>
<link rel="stylesheet" href="settings.css">
</head>
<body>
<!-- Шапка (Top Bar) -->
<header class="top-bar">
<div class="top-bar-container">
<a href="#" class="logo">Admin <span>Panel</span></a>
<nav class="nav-links">
<a href="/#" class="nav-link">Главная</a>
<a href="/#" class="nav-link">Пользователи</a>
<a href="/settings#" class="nav-link active">Настройки</a>
</nav>
</div>
</header>
<!-- Основной контент страницы -->
<main class="main-content">
<a href="/#" class="back-link">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline></svg>
Назад к списку пользователей
</a>
<h1>Настройки</h1>
<div class="settings-grid">
<!-- ТЕКСТОВЫЙ БЛОК: ТЕКУЩИЕ НАСТРОЙКИ (БЕЗ ПАРОЛЕЙ) -->
<section class="settings-card info-card">
<h2 class="card-title">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line></svg>
Текущие настройки сети
</h2>
<div class="info-group">
<div class="info-item">
<span class="info-label">Режим точки доступа (AP SSID):</span>
<span class="info-value" id="current-ap-ssid">—</span>
</div>
<div class="info-item">
<span class="info-label">Подключение к внешней сети (STA SSID):</span>
<span class="info-value" id="current-sta-ssid">—</span>
</div>
<div class="info-item">
<span class="info-label">IP-адрес:</span>
<span class="info-value" id="current-ip">—</span>
</div>
<div class="info-item">
<span class="info-label">Шлюз (Gateway):</span>
<span class="info-value" id="current-gateway">—</span>
</div>
<div class="info-item">
<span class="info-label">Маска подсети (Mask):</span>
<span class="info-value" id="current-mask">—</span>
</div>
<div class="info-item">
<span class="info-label">Внешняя:</span>
<span class="info-value status-connected" id="connection-status">Подключено</span>
</div>
</div>
</section>
<!-- Параметры AP сети -->
<section class="settings-card">
<h2 class="card-title">Параметры AP сети</h2>
<div class="form-group">
<label for="ap-ssid">Имя сети (SSID)</label>
<input type="text" id="ap-ssid" placeholder="Введите имя AP сети">
</div>
<div class="form-group">
<label for="ap-password">Пароль от Wi-Fi</label>
<input type="password" id="ap-password" placeholder="••••••••">
</div>
<div class="form-row-three">
<div class="form-group">
<label for="sta-ip">IP адрес</label>
<input type="text" id="ap-ip" placeholder="192.168.4.1">
</div>
<div class="form-group">
<label for="sta-gateway">Шлюз (Gateway)</label>
<input type="text" id="ap-gateway" placeholder="192.168.4.1">
</div>
<div class="form-group">
<label for="sta-mask">Маска (Mask)</label>
<input type="text" id="ap-mask" placeholder="255.255.255.0">
</div>
</div>
<button type="button" class="submit-btn" id="ap_update">Обновить настройки сети</button>
</section>
<!-- Параметры STA сети -->
<section class="settings-card">
<h2 class="card-title">Параметры STA сети</h2>
<div class="form-group">
<label for="sta-ssid">Имя сети (SSID)</label>
<input type="text" id="sta-ssid" placeholder="Введите имя внешней сети">
</div>
<div class="form-group">
<label for="sta-password">Пароль от сети</label>
<input type="password" id="sta-password" placeholder="••••••••">
</div>
<!-- Подключение к внешней сети (Checkbox) -->
<label class="checkbox-group">
<input type="checkbox" id="connection-out">
<span class="checkmark"></span>
<span class="checkbox-label">Подключение к внешней сети</span>
</label>
<button type="button" class="submit-btn" id="sta_update">Обновить настройки сети</button>
</section>
<!-- Безопасность (Смена пароля администратора) -->
<section class="settings-card">
<h2 class="card-title">Безопасность (Смена пароля администратора)</h2>
<div class="form-group">
<label for="new-password">Новый пароль</label>
<input type="password" id="new-password" placeholder="Новый пароль">
</div>
<div class="form-group">
<label for="confirm-password">Подтвердите новый пароль</label>
<input type="password" id="confirm-password" placeholder="Подтвердите новый пароль">
</div>
<button type="button" class="submit-btn" id="admin_update">Сохранить изменения</button>
</section>
</div>
</main>
</body>
<script src="/settings.js"></script>
</html>