134 lines
6.3 KiB
HTML
134 lines
6.3 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="/base.css">
|
|
<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="#" 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">
|
|
|
|
<!-- БЛОК 1: НАСТРОЙКИ СЕТИ (WI-FI) -->
|
|
<div class="settings-card">
|
|
<div class="card-title">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#ff6600" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M5 12.55a11 11 0 0 1 14.08 0"></path>
|
|
<path d="M1.42 9a16 16 0 0 1 21.16 0"></path>
|
|
<path d="M8.53 16.11a6 6 0 0 1 6.94 0"></path>
|
|
<line x1="12" y1="20" x2="12.01" y2="20" stroke-width="3"></line>
|
|
</svg>
|
|
Параметры AP сети
|
|
</div>
|
|
|
|
<form action="#" method="POST">
|
|
<!-- Имя сети (SSID) -->
|
|
<div class="form-group">
|
|
<label for="ap-ssid">Имя сети (SSID)</label>
|
|
<input type="text" id="ap-ssid" name="ap_ssid" required placeholder="Например: Home_Network">
|
|
</div>
|
|
|
|
<!-- Пароль сети -->
|
|
<div class="form-group">
|
|
<label for="ap-password">Пароль от Wi-Fi</label>
|
|
<input type="password" id="ap-password" name="ap_password" required placeholder="Минимум 8 символов">
|
|
</div>
|
|
|
|
<button id="ap_update" type="button" class="submit-btn">Обновить настройки сети</button>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="settings-card">
|
|
<div class="card-title">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#ff6600" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M5 12.55a11 11 0 0 1 14.08 0"></path>
|
|
<path d="M1.42 9a16 16 0 0 1 21.16 0"></path>
|
|
<path d="M8.53 16.11a6 6 0 0 1 6.94 0"></path>
|
|
<line x1="12" y1="20" x2="12.01" y2="20" stroke-width="3"></line>
|
|
</svg>
|
|
Параметры STA сети
|
|
</div>
|
|
|
|
<form action="#" method="POST">
|
|
<!-- Имя сети (SSID) -->
|
|
<div class="form-group">
|
|
<label for="sta-ssid">Имя сети (SSID)</label>
|
|
<input type="text" id="sta-ssid" name="sta_ssid" required placeholder="Например: Home_Network">
|
|
</div>
|
|
|
|
<!-- Пароль сети -->
|
|
<div class="form-group">
|
|
<label for="sta-password">Пароль от сети</label>
|
|
<input type="password" id="sta-password" name="sta_password" required placeholder="Минимум 8 символов">
|
|
</div>
|
|
|
|
<button id="sta_update" type="button" class="submit-btn">Обновить настройки сети</button>
|
|
</form>
|
|
</div>
|
|
|
|
<!-- КАСТОМНЫЙ CHECKBUTTON: CONNECTION_OUT -->
|
|
<label class="form-group checkbox-group">
|
|
<input type="checkbox" id="connection-out" name="connection_out">
|
|
<span class="checkmark"></span>
|
|
<span class="checkbox-label">Подключение к внешней сети</span>
|
|
</label>
|
|
|
|
<!-- БЛОК 2: БЕЗОПАСНОСТЬ (АДМИН) -->
|
|
<div class="settings-card">
|
|
<div class="card-title">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#ff6600" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect>
|
|
<path d="M7 11V7a5 5 0 0 1 10 0v4"></path>
|
|
</svg>
|
|
Безопасность (Смена пароля администратора)
|
|
</div>
|
|
|
|
<form action="#" method="POST">
|
|
<div class="form-group">
|
|
<label for="new-password">Новый пароль</label>
|
|
<input type="password" id="new-password" name="new_password" required placeholder="Минимум 8 знаков">
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="confirm-password">Подтвердите новый пароль</label>
|
|
<input type="password" id="confirm-password" name="confirm_password" required placeholder="••••••••">
|
|
</div>
|
|
|
|
<button id="admin_update" type="button" class="submit-btn">Сохранить изменения</button>
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
</main>
|
|
|
|
</body>
|
|
<script src="settings.js"></script>
|
|
</html> |