Оформление главного менб
This commit is contained in:
@@ -35,19 +35,27 @@
|
||||
</header>
|
||||
<main class="flex-shrink-0">
|
||||
<div class="d-flex gap-2 justify-content-center py-5">
|
||||
{% if 'role' not in ses %}
|
||||
<div class="text-center">
|
||||
<h2 class="fs-2 text-body-emphasis mb-4">Для доступа к функциям системы необходимо авторизоваться</h2>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if 'role' in ses and ses['access_user'] == 'external_users' %}
|
||||
<div class="text-center">
|
||||
<h2 class="fs-2 text-body-emphasis mb-4">Новая накладная</h2>
|
||||
<a href="{{ url_for('waybill_bp.index') }}">
|
||||
<button class="btn btn-primary btn-lg">Перейти</button>
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if 'role' in ses and ses['access_user'] == 'internal_users' %}
|
||||
<div class="d-flex justify-content-center">
|
||||
{% if ses['access_user'] == 'internal_users' %}
|
||||
<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>
|
||||
@@ -57,32 +65,12 @@
|
||||
>
|
||||
</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>
|
||||
<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('waybill_bp.index') }}">
|
||||
<button class="btn btn-primary">Перейти</button>
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user