Переработка css запросов

This commit is contained in:
2024-11-30 21:00:49 +03:00
parent 0076444a02
commit d57de5b1a3
3 changed files with 119 additions and 58 deletions

View File

@@ -1,30 +1,49 @@
<!DOCTYPE html>
<html lang="ru">
<html lang="ru" data-bs-theme="dark">
<head>
<meta charset="UTF-8">
<title>Поставки поставщиком</title>
<link href="/static/css/main.css" type="text/css" rel="stylesheet">
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"
rel="stylesheet"
/>
<link
href="https://getbootstrap.com/docs/5.3/assets/css/docs.css"
rel="stylesheet"
/>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>
<div class="logout">
<a href="{{ url_for('logout') }}"><button>Выход</button></a>
</div>
<!-- Input -->
<h1>Поставки поставщиком</h1>
<div class="form">
<p>Выберите поставщика</p>
<form action="" method="post">
<select name="seller">
{% for seller in sellers %}
<option value="{{ seller['name'] }}">{{ seller['name'] }}</option>
{% endfor %}
</select>
<input type="submit" value="Отправить">
</form>
<div class="return">
<a href="{{ url_for('requests_bp.requests') }}"><button>Обратно в меню запросов</button></a>
<body class="p-3 m-0 border-0">
<header>
<div class="row flex-nowrap justify-content-between pb-5">
<div class="col-1 pt-1"></div>
<div class="col-10 text-center">
<h1 class="display-5 fw-bold">Поставки поставщиком</h1>
</div>
<div class="col-1 d-flex justify-content-end align-items-center">
<a href="{{ url_for('logout') }}"><button class="btn btn-danger">Выход</button></a>
</div>
</div>
</div>
</header>
<main class="flex-shrink-0">
<div class="form py-5">
<form action="" method="post" style="display: inline-block;">
<label>Выберите поставщика</label>
<select class="form-select" name="seller">
{% for seller in sellers %}
<option value="{{ seller['name'] }}">{{ seller['name'] }}</option>
{% endfor %}
</select>
<button type="submit" class="btn btn-primary">Отправить</button>
</form>
<div class="d-flex justify-content-center mt-5">
<a href="{{ url_for('requests_bp.requests') }}"><button class="btn btn-warning">Обратно в меню запросов</button></a>
</div>
</div>
</main>
</body>
</html>
</html>

View File

@@ -1,32 +1,53 @@
<!DOCTYPE html>
<html lang="ru">
<html lang="ru" data-bs-theme="dark">
<head>
<meta charset="UTF-8">
<title>Количество заготовок на складе</title>
<link href="/static/css/main.css" type="text/css" rel="stylesheet">
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"
rel="stylesheet"
/>
<link
href="https://getbootstrap.com/docs/5.3/assets/css/docs.css"
rel="stylesheet"
/>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>
<div class="logout">
<a href="{{ url_for('logout') }}"><button>Выход</button></a>
</div>
<!-- Input -->
<h1>Количество заготовок на складе</h1>
<div class="form">
<form action="" method="post" style="display: inline-block;">
<p>Выберите материал<p></p>
<select name="material">
<option value="Сталь">Сталь</option>
<option value="Алюминий">Алюминий</option>
<option value="Медь">Медь</option>
<option value="Пластик">Пластик</option>
<option value="Дерево">Дерево</option>
</select>
<input type="submit" value="Отправить">
</form>
<div class="return">
<a href="{{ url_for('requests_bp.requests') }}"><button>Обратно в меню запросов</button></a>
<body class="p-3 m-0 border-0">
<header>
<div class="row flex-nowrap justify-content-between pb-5">
<div class="col-1 pt-1"></div>
<div class="col-10 text-center">
<h1 class="display-5 fw-bold">Количество заготовок на складе</h1>
</div>
<div class="col-1 d-flex justify-content-end align-items-center">
<a href="{{ url_for('logout') }}"><button class="btn btn-danger">Выход</button></a>
</div>
</div>
</div>
</header>
<!-- Input -->
<main class="flex-shrink-0">
<div class="form py-5">
<form action="" method="post" style="display: inline-block;">
<label>Выберите материал</label>
<select class="form-select" name="material">
<option value="Сталь">Сталь</option>
<option value="Алюминий">Алюминий</option>
<option value="Медь">Медь</option>
<option value="Пластик">Пластик</option>
<option value="Дерево">Дерево</option>
</select>
<button type="submit" class="btn btn-primary">Отправить</button>
</form>
<div class="d-flex justify-content-center mt-5">
<a href="{{ url_for('requests_bp.requests') }}"><button class="btn btn-warning">Обратно в меню запросов</button></a>
</div>
</div>
</main>
</body>
</html>

View File

@@ -1,22 +1,43 @@
<!DOCTYPE html>
<html lang="ru">
<html lang="en" data-bs-theme="dark">
<head>
<meta charset="UTF-8">
<title>Запросы</title>
<link href="/static/css/main.css" type="text/css" rel="stylesheet">
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"
rel="stylesheet"
/>
<link
href="https://getbootstrap.com/docs/5.3/assets/css/docs.css"
rel="stylesheet"
/>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>
<div class="logout">
<a href="{{ url_for('logout') }}"><button>Выход</button></a>
<body class="p-3 m-0">
<div class="row flex-nowrap justify-content-between">
<div class="col-1 pt-1"></div>
<div class="col-10 text-center">
<label class="display-5 fw-bold">Выберите вариант запроса</label>
</div>
<div class="col-1 d-flex justify-content-end align-items-center">
<a href="{{ url_for('logout') }}"><button class="btn btn-danger">Выход</button></a>
</div>
</div>
<h1>Выберите вариант запроса</h1>
<div class="buttons_menu">
{% for point in options %}
<a href="{{ url_for(point['url']) }}"><button>{{ point['name'] }}</button></a>
{% endfor %}
</div>
<div class="return">
<a href="{{ url_for('index') }}"><button>Главное меню</button></a>
<div class="container">
<div class="row justify-content-center">
<div class="col-12 d-flex justify-content-center">
<div class="btn-group py-5" role="group" aria-label="Basic example">
{% for point in options %}
<a href="{{ url_for(point['url']) }}"><button class="btn btn-primary me-2">{{ point['name'] }}</button></a>
{% endfor %}
</div>
</div>
</div>
<div class="row justify-content-center">
<div class="col-12 d-flex justify-content-center">
<a href="{{ url_for('index') }}"><button class="btn btn-warning">Главное меню</button></a>
</div>
</div>
</div>
</body>
</html>
</html>