Расположение формы запроса
This commit is contained in:
@@ -6,12 +6,15 @@
|
||||
<link href="/static/css/main.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<form action="" method="post" name="auth">
|
||||
<label for="login">Логин: </label>
|
||||
<input type="text" name="login" required>
|
||||
<label for="password">Пароль: </label>
|
||||
<input type="password" name="password" required><br>
|
||||
<input type="submit" value="Вход">
|
||||
</form>
|
||||
<div class="form">
|
||||
<form action="" method="post" name="auth">
|
||||
<label for="login">Логин: </label>
|
||||
<input type="text" name="login" required>
|
||||
<label for="password">Пароль: </label>
|
||||
<input type="password" name="password" required><br>
|
||||
<input type="submit" value="Вход">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -11,17 +11,19 @@
|
||||
</div>
|
||||
<!-- Input -->
|
||||
<h1>Материалы заготовок</h1>
|
||||
<p>Выберите материал<p>
|
||||
<form action="" method="post">
|
||||
<select name="material">
|
||||
{% for item in materials %}
|
||||
<option value="{{ item['material'] }}">{{ item['material'] }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<input type="submit" value="Отправить">
|
||||
</form>
|
||||
<div class="return">
|
||||
<a href="{{ url_for('requests_bp.requests') }}"><button>Обратно в меню запросов</button></a>
|
||||
<div class="form">
|
||||
<form action="" method="post" style="display: inline-block;">
|
||||
<p>Выберите материал<p></p>
|
||||
<select name="material">
|
||||
{% for item in materials %}
|
||||
<option value="{{ item['material'] }}">{{ item['material'] }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<input type="submit" value="Отправить">
|
||||
</form>
|
||||
<div class="return">
|
||||
<a href="{{ url_for('requests_bp.requests') }}"><button>Обратно в меню запросов</button></a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -11,21 +11,24 @@
|
||||
</div>
|
||||
<!-- Input -->
|
||||
<h1>Поставки заготовок</h1>
|
||||
<p>Выберите материал</p>
|
||||
<form action="" method="post">
|
||||
<select name="material">
|
||||
{% for item in materials %}
|
||||
<option value="{{ item['material'] }}">{{ item['material'] }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<p>Выберите даты:</p>
|
||||
<p>с <input type="date" name="date_from" required min="2000-01-01" max="2024-12-31" id="date_from"></p>
|
||||
<p>по <input type="date" name="date_to" required min="2000-01-01" max="2024-12-31" id="date_to"></p>
|
||||
<input type="submit" value="Отправить">
|
||||
</form>
|
||||
<div class="return">
|
||||
<a href="{{ url_for('requests_bp.requests') }}"><button>Обратно в меню запросов</button></a>
|
||||
<div class="form">
|
||||
<form action="" method="post">
|
||||
<p>Выберите материал</p>
|
||||
<select name="material">
|
||||
{% for item in materials %}
|
||||
<option value="{{ item['material'] }}">{{ item['material'] }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<p>Выберите даты:</p>
|
||||
<p>с <input type="date" name="date_from" required min="2000-01-01" max="2024-12-31" id="date_from"></p>
|
||||
<p>по <input type="date" name="date_to" required min="2000-01-01" max="2024-12-31" id="date_to"></p>
|
||||
<input type="submit" value="Отправить">
|
||||
</form>
|
||||
<div class="return">
|
||||
<a href="{{ url_for('requests_bp.requests') }}"><button>Обратно в меню запросов</button></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ h1,h2 {
|
||||
body {
|
||||
background-color: #87CEEB;
|
||||
}
|
||||
form[name="auth"] {
|
||||
div.form {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
@@ -12,7 +12,7 @@ form[name="auth"] {
|
||||
}
|
||||
form[name="auth"] input[type="submit"] {
|
||||
display: block;
|
||||
margin: 5px auto;
|
||||
margin: 10px auto;
|
||||
}
|
||||
button {
|
||||
background-color: #067936;
|
||||
@@ -39,6 +39,10 @@ div.login button {
|
||||
margin-top: -5px;
|
||||
background-color: #176917;
|
||||
}
|
||||
div.return {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
div.return button{
|
||||
background-color: chocolate;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user