Internet-programming/laba3/cakes.html
2024-01-14 23:17:59 +04:00

122 lines
5.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Готовые торты</title>
<link href="node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<link rel = "stylesheet" href="style.css" />
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg navbar-dark">
<div class="container-fluid">
<a class="navbar-brand" href="index.html">тяп-ляп</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="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav justify-content-end flex-grow-1 pe-3">
<li class="nav-item">
<a href="price.html">Прайс</a>
</li>
<a href="aboutUs.html">О нас</a>
</li>
<li class="nav-item">
<a href="contact.html">&#9742;Связаться с нами</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<h1>Варианты готовых тортов:</h1>
<div id="my-id-for-text" class="container table"> </div>
<!-- <div class="container text-center">
<div class="row cakes">
<div class="col">
<img src="mam.png" class="img_options" alt="mam" width="400">
<p>Торт Сникерс<br>"Маме"<br>800 гр<br>Цена: 1500 руб.</p>
</div>
<div class="col">
<img src="dad.png" class="img_options" alt="dad" width="400">
<p>Красный бархат<br>"Папе"<br>800 гр<br>Цена: 1600 руб.</p>
</div>
<div class="col">
<img src="podruge.png" class="img_options" alt="friend" width="400">
<p>Три шоколада<br>"Подружке"<br>800 гр<br>Цена: 1200 руб.</p>
</div>
</div>
</div> -->
<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>
</div>
<div class="modal-body">
<div class="text-center">
<img id="image-preview" src="https://via.placeholder.com/200" class="rounded rounded-circle"
alt="placeholder" width="200">
</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="nameCake">Название</label>
<input id="nameCake" name="nameCake" class="form-control" inputmode="text" value="Название" required>
</div>
<div class="mb-2">
<label class="form-label" for="weight">Вес (гр)</label>
<input id="weight" name="weight" class="form-control" type="number" value="0" min="500" step="100"
required>
</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="500.00"
step="100.00" 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>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Закрыть</button>
<button type="submit" class="btn btn-primary">Сохранить</button>
</div>
</div>
</form>
</div>
</div>
<script type="module">
import validation from "./js/validation";
import {linesFormOnIndex} from "./js/lines";
import { linesForm } from "./js/lines";
document.addEventListener('DOMContentLoaded', () => {
validation();
linesFormOnIndex();
linesForm();
});
</script>
</body>
</html>