90 lines
4.3 KiB
HTML
90 lines
4.3 KiB
HTML
<html lang="ru">
|
|
|
|
<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="h-100 d-flex flex-column">
|
|
|
|
<header>
|
|
<nav class="navbar navbar-expand-md">
|
|
<div class="container-fluid">
|
|
<a class = "navbar-brand" href = "./" style="color: #6A3502;">
|
|
<i class="fa-solid fa-microchip"></i>
|
|
Техник
|
|
</a>
|
|
|
|
<form class="d-flex">
|
|
<input class="form-control" type="search" placeholder="Поиск по сайту" aria-label="Search">
|
|
<button class="btn btn-outline-*" type="submit" style="color: #6A3502;"><i class="fa-solid fa-search"></i></button>
|
|
</form>
|
|
|
|
</div>
|
|
</nav>
|
|
</header>
|
|
|
|
<main class="container-fluid p-2">
|
|
<div class="text-center">
|
|
<img id="image-preview" src="https://via.placeholder.com/200" class="rounded rounded-circle" alt="placeholder" style="width: 200;">
|
|
</div>
|
|
<form id="items-form" class="needs-validation" novalidate>
|
|
<div class="mb-2">
|
|
<label for="catalog" class="form-label">Каталог</label>
|
|
<select id="catalog" class="form-select" name="selected" required>
|
|
</select>
|
|
</div>
|
|
<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="model">Модель</label>
|
|
<input id="model" name="model" class="form-control" type="text" required>
|
|
</div>
|
|
<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 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>
|
|
</div>
|
|
<div class="mb-2">
|
|
<label class="form-label" for="description">Описание</label>
|
|
<input id="description" name="description" class="form-control" type="text" required>
|
|
</div>
|
|
<div class="mb-2">
|
|
<label class="form-label" for="specific">Характеристика</label>
|
|
<input id="specific" name="specific" class="form-control" type="text" required>
|
|
</div>
|
|
<a href="/Admin.html" class="btn btn-secondary">Назад</a>
|
|
<button type="submit" class="btn btn-primary">Сохранить</button>
|
|
</form>
|
|
</main>
|
|
|
|
<footer class="footer mt-auto d-flex flex-shrink-0 align-items-center">
|
|
© 2023 Компания Техник. Администрация Сайта не несет ответственности за размещаемые Пользователями материалы (в т.ч. информацию и изображения), их содержание и качество.
|
|
</footer>
|
|
<script type="module">
|
|
import validation from "./js/validation";
|
|
import { linesPageForm } from "./js/lines"
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
validation();
|
|
linesPageForm();
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |