Переработка css отчётов

This commit is contained in:
2024-11-30 21:00:34 +03:00
parent 30508b2221
commit 0076444a02
3 changed files with 63 additions and 26 deletions

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="en" data-bs-theme="dark">
<head>
<meta charset="UTF-8">
<title>Успех</title>

View File

@@ -1,21 +1,35 @@
<!DOCTYPE html>
<html lang="en">
<html lang="en" data-bs-theme="dark">
<head>
<meta charset="UTF-8">
<title>{{ title }}</title>
<link href="/static/css/main.css" type="text/css" rel="stylesheet">
<link href="/static/css/report.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>
<script src="/static/js/check.js"></script>
</head>
<body>
<div class="logout">
<a href="{{ url_for('logout') }}"><button>Выход</button></a>
<body class="p-3 m-0 border-0 bd-example m-0 border-0">
<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">{{ title }}</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>
<h1>{{ title }}</h1>
<div class="form">
<div class="form py-5">
<form action="" method="post" onsubmit="return check_month({{ date_today.month }}, {{ date_today.year }})">
<label for="category">Выберите предмет формирования отчета</label>
<select name="category" id="category" required>
<select class="form-select" name="category" id="category" required>
{% for item in items.keys() %}
<option value="{{ item }}">{{ items[item]['name'] }}</option>
{% endfor %}
@@ -23,7 +37,7 @@
<label for="month">Выберите отчетный период</label>
<div class="period">
<select name="month" id="month" required>
<select class="form-select" name="month" id="month" required>
<option value="1">Январь</option>
<option value="2">Февраль</option>
<option value="3">Март</option>
@@ -37,18 +51,19 @@
<option value="11">Ноябрь</option>
<option value="12">Декабрь</option>
</select>
<input type="number" id= "year" name="year" value={{ date_today.year }} min="2000" max={{ date_today.year }} required>
<input class="form-control" type="number" id= "year" name="year" value={{ date_today.year }} min="2000" max={{ date_today.year }} required>
</div>
{% if is_write %}
<button type="submit" value="write">Создать</button>
<button class="btn btn-primary" type="submit" value="write">Создать</button>
{% else %}
<button type="submit" value="read">Просмотр</button>
<button class="btn btn-primary" type="submit" value="read">Просмотр</button>
{% endif %}
</form>
</div>
<div class="return">
<a href="{{ url_for('index') }}"><button>Главное меню</button></a>
<div class="d-flex justify-content-center mt-5">
<a href="{{ url_for('index') }}"><button class="btn btn-warning">Главное меню</button></a>
</div>
</body>
</html>

View File

@@ -1,21 +1,43 @@
<!DOCTYPE html>
<html lang="en">
<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">
<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">
<a href="{{ url_for('report_bp.create') }}"><button>Создать отчет</button></a>
<a href="{{ url_for('report_bp.view') }}"><button>Читать отчеты</button></a>
</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">
<a href="{{ url_for('report_bp.create') }}"><button type="button" class="btn btn-primary me-2">Создать отчет</button></a>
<a href="{{ url_for('report_bp.view') }}"><button type="button" class="btn btn-secondary">Читать отчеты</button></a>
</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>