SergeyRasubaev_PIbd-21_IP_R.../3 lab/admin-page.html

65 lines
2.8 KiB
HTML

<!DOCTYPE html>
<html lang="ru" class="h-100">
<head>
<meta charset="UTF-8">
<title>Моя страница</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="module" src="./node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<link href="./node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"/>
<link href="./node_modules/@fortawesome/fontawesome-free/css/all.min.css" rel="stylesheet"/>
<link rel="stylesheet" href="style.css">
</head>
<body class="d-flex flex-column h-100">
<header>
<nav class="navbar navbar-expand-md">
<div class="container-fluid">
<a class="navbar-brand" href="/">
<img src="Images/icon.jpg" alt="logo" width="40">
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse collapse justify-content-start" id="navbarNav">
<div class="navbar-nav">
<a class="nav-link" href="home.html">Главная</a>
<a class="nav-link" href="messages.html">Сообщения</a>
<a class="nav-link" href="settings.html">Настройки</a>
</div>
</div>
</div>
</nav>
</header>
<main class="container-fluid p-2">
<h1 class=" text-center font-weight-bold">Панель администратора</h1>
<div class="btn-group" role="group">
<a class="btn btn-dark" href="page-edit.html">Добавить аккаунт(страница)</a>
</div>
<div>
<h2 class=" text-center font-weight-bold" style="padding-top: 10px;">Таблица данных</h2>
<table id="items-table" class="table table-striped">
<thead>
<th scope="col"></th>
<th scope="col" class="w-25">Никнейм</th>
<th scope="col" class="w-25">Почта</th>
<th scope="col" class="w-10">Пароль</th>
<th scope="col"></th>
<th scope="col"></th>
<th scope="col"></th>
</thead>
<tbody></tbody>
</table>
</div>
</main>
<script type="module">
import validation from "./js/validation";
import { drawLinesTable as drawTable } from "./js/lines";
document.addEventListener('DOMContentLoaded', () => {
validation();
drawTable();
});
</script>
</body>
</html>