Подгонка под описания

This commit is contained in:
2024-12-06 16:14:31 +03:00
parent 54071f20be
commit d995a2cc14
7 changed files with 8 additions and 10 deletions

View File

@@ -8,7 +8,7 @@ import json
with open(path.join(path.dirname(__file__), 'reports.json'), encoding='utf-8') as f:
report_list = json.load(f)
report_bp = Blueprint('report_bp', __name__, template_folder='templates')
report_bp = Blueprint('report_bp', __name__, template_folder='templates', static_folder='static')
@report_bp.route('/menu')
@check_auth

View File

@@ -4,7 +4,7 @@
<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="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"
@@ -14,7 +14,7 @@
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>
<script src="static/js/check.js"></script>
</head>
<body class="p-3 m-0 border-0 bd-example m-0 border-0">
<div class="row flex-nowrap justify-content-between pb-5">

View File

@@ -29,7 +29,7 @@
<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>
<a href="{{ url_for('report_bp.view') }}"><button type="button" class="btn btn-primary">Читать отчеты</button></a>
</div>
</div>
</div>

View File

@@ -1,5 +0,0 @@
form[name="auth"] input[type="submit"] {
display: block;
margin: 10px auto;
background-color: #f2c464;
}

View File

@@ -33,8 +33,11 @@
</div>
</div>
</header>
{% if 'role' in ses and ses['access_user'] == 'internal_users'%}
<h1 class="justify-content-center">Ваша роль: {{ ses['role'] }}</h1>
{% endif %}
<main class="flex-shrink-0">
<div class="d-flex gap-2 justify-content-center py-5">
<div class="d-flex gap-2 justify-content-center py-3">
{% if 'role' not in ses %}
<div class="text-center">
<h2 class="fs-2 text-body-emphasis mb-4">Для доступа к функциям системы необходимо авторизоваться</h2>