2023-11-02 02:38:40 +04:00
|
|
|
|
<!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/logo.png" alt="logo" width="128">
|
|
|
|
|
</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="index.html">Каталог</a>
|
|
|
|
|
<a class="nav-link" href="stock.html">Акции</a>
|
|
|
|
|
<a class="nav-link" href="contacts.html">Контакты</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="navbar-collapse collapse justify-content-end" id="navbarNav">
|
|
|
|
|
<div class="navbar-nav">
|
|
|
|
|
<a class="btn custom-btn" href="personalAccountLogin.html">Войти</a>
|
|
|
|
|
<a class="btn btn-warning" href="basket.html">Корзина</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</nav>
|
|
|
|
|
</header>
|
2023-11-03 11:28:48 +04:00
|
|
|
|
<main class="container-fluid p-1">
|
|
|
|
|
<h1 class="text-warning text-center font-weight-bold">Панель администратора</h1>
|
|
|
|
|
<div class="btn-group" role="group">
|
|
|
|
|
<button id="items-add" class="btn btn-primary">Добавить товар (диалог)</button>
|
|
|
|
|
<a class="btn btn-danger" href="/page-edit.html">Добавить товар (страница)</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<h2 class="text-warning text-center font-weight-bold" style="padding-top: 30px;">Таблица данных</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-25">Количество</th>
|
|
|
|
|
<th scope="col" class="w-25">Описание</th>
|
|
|
|
|
<th scope="col"></th>
|
|
|
|
|
<th scope="col"></th>
|
|
|
|
|
<th scope="col"></th>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody></tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</main>
|
|
|
|
|
<footer class="footer mt-auto d-flex flex-shrink-0 justify-content-center align-items-center">
|
|
|
|
|
Все права защищены © 2023-2024
|
|
|
|
|
</footer>
|
|
|
|
|
<div id="items-update" class="modal fade" tabindex="-1" data-bs-backdrop="static" data-bs-keyboard="false">
|
|
|
|
|
<div class="modal-dialog">
|
|
|
|
|
<form id="items-form" class="needs-validation" novalidate>
|
|
|
|
|
<div class="modal-content">
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
<h1 class="modal-title fs-5" id="items-update-title"></h1>
|
|
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
2023-11-02 02:38:40 +04:00
|
|
|
|
</div>
|
2023-11-03 11:28:48 +04:00
|
|
|
|
<div class="modal-body">
|
|
|
|
|
<div class="text-center">
|
|
|
|
|
<img id="image-preview" src="https://via.placeholder.com/200" class="rounded rounded-circle"
|
|
|
|
|
alt="placeholder">
|
|
|
|
|
</div>
|
|
|
|
|
<input id="items-line-id" type="number" hidden>
|
|
|
|
|
<div class="mb-2">
|
|
|
|
|
<label for="item" class="form-label">Товары</label>
|
|
|
|
|
<select id="item" class="form-select" name="selected" required>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="mb-2">
|
|
|
|
|
<label class="form-label" for="price">Цена</label>
|
|
|
|
|
<input id="price" name="price" class="form-control" type="number" value="0.00" min="1000.00"
|
|
|
|
|
step="0.50" required>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="mb-2">
|
|
|
|
|
<label class="form-label" for="count">Количество</label>
|
|
|
|
|
<input id="count" name="count" class="form-control" type="number" value="0" min="1" step="1"
|
|
|
|
|
required>
|
2023-11-02 02:38:40 +04:00
|
|
|
|
</div>
|
2023-11-03 11:28:48 +04:00
|
|
|
|
<div class="mb-2">
|
|
|
|
|
<label class="form-label" for="image">Изображение</label>
|
|
|
|
|
<input id="image" type="file" name="image" class="form-control" accept="image/*">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
|
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Закрыть</button>
|
|
|
|
|
<button type="submit" class="btn btn-primary">Сохранить</button>
|
2023-11-02 02:38:40 +04:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-11-03 11:28:48 +04:00
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-11-02 02:38:40 +04:00
|
|
|
|
</body>
|
2023-11-03 11:28:48 +04:00
|
|
|
|
</html>
|