This repository has been archived on 2025-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
Files
RIS/App/templates/main_menu.html

105 lines
4.2 KiB
HTML

<!DOCTYPE html>
<html lang="en" data-bs-theme="dark">
<head>
<meta charset="UTF-8">
<title>Главное меню</title>
<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 class="p-3 m-0 border-0 bd-example m-0 border-0">
<header>
<div class="row flex-nowrap justify-content-between">
<div class="col-1 pt-1"></div>
<div class="col-10 text-center">
{% if 'role' in ses %}
<label class="display-5 fw-bold">Добро пожаловать, {{ ses['login'] }}</label>
{% else %}
<label class="display-5 fw-bold">Добро пожаловать!</label>
{% endif %}
</div>
<div class="col-1 d-flex justify-content-end align-items-center">
{% if 'role' in ses %}
<a href="{{ url_for('logout') }}"><button class="btn btn-danger">Выход</button></a>
{% else %}
<a href="{{ url_for('auth_bp.auth') }}"><button class="btn btn-success">Авторизация</button></a>
{% endif %}
</div>
</div>
</header>
<main class="flex-shrink-0">
<div class="d-flex gap-2 justify-content-center py-5">
{% if ses['access_user'] == 'internal_users' %}
<div class="d-flex justify-content-center">
<div class="feature col">
<div
class="feature-icon d-inline-flex align-items-center justify-content-center text-bg-primary bg-gradient fs-2 mb-3"
>
</div>
<h3 class="fs-2 text-body-emphasis">Запросы</h3>
<!-- <p>
Paragraph of text beneath the heading to explain the heading. We'll
add onto it with another sentence and probably just keep going until
we run out of words.
</p> -->
<a href="{{ url_for('requests_bp.requests') }}">
<button class="btn btn-primary">Перейти</button>
</a>
<div class="feature col">
<div
class="feature-icon d-inline-flex align-items-center justify-content-center text-bg-primary bg-gradient fs-2 mb-3"
>
</div>
<h3 class="fs-2 text-body-emphasis">Отчёты</h3>
<!-- <p>
Paragraph of text beneath the heading to explain the heading. We'll
add onto it with another sentence and probably just keep going until
we run out of words.
</p> -->
<a href="{{ url_for('report_bp.menu') }}">
<button class="btn btn-primary">Перейти</button>
</a>
</div>
</div>
</div>
{% else %}
<div class="feature col">
<div
class="feature-icon d-inline-flex align-items-center justify-content-center text-bg-primary bg-gradient fs-2 mb-3"
>
</div>
{% endif %}
</div>
</main>
<!-- {% if 'role' in ses %}
<label class="display-5 fw-bold">Добро пожаловать, username</label>
<h1>Здравствуйте, {{ ses['login'] }}!</h1>
{% if ses['access_user'] == 'internal_users' %}
<h2> Ваша роль: {{ ses['role'] }}</h2>
<div class="buttons_menu">
<a href="{{ url_for('requests_bp.requests') }}"><button>Запросы</button></a>
<a href="{{ url_for('report_bp.menu') }}"><button>Отчеты</button></a>
</div>
{% else %}
<div class="buttons_menu">
<a href="{{ url_for('waybill_bp.waybill') }}"><button>Новая накладная</button></a>
</div>
{% endif %}
{% else %}
<div class="login">
<a href="{{ url_for('auth_bp.auth') }}"><button>Авторизация</button></a>
</div>
<h1>Здравствуйте!</h1>
<p>Для использования системы, пожалуйста, пройдите процедуру авторизации</p>
{% endif %} -->
</body>
</html>