Оформление главного менб
This commit is contained in:
@@ -35,19 +35,27 @@
|
|||||||
</header>
|
</header>
|
||||||
<main class="flex-shrink-0">
|
<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-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">
|
<div class="d-flex justify-content-center">
|
||||||
{% if ses['access_user'] == 'internal_users' %}
|
|
||||||
<div class="feature col">
|
<div class="feature col">
|
||||||
<div
|
<div
|
||||||
class="feature-icon d-inline-flex align-items-center justify-content-center text-bg-primary bg-gradient fs-2 mb-3"
|
class="feature-icon d-inline-flex align-items-center justify-content-center text-bg-primary bg-gradient fs-2 mb-3"
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<h3 class="fs-2 text-body-emphasis">Запросы</h3>
|
<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') }}">
|
<a href="{{ url_for('requests_bp.requests') }}">
|
||||||
<button class="btn btn-primary">Перейти</button>
|
<button class="btn btn-primary">Перейти</button>
|
||||||
</a>
|
</a>
|
||||||
@@ -57,32 +65,12 @@
|
|||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<h3 class="fs-2 text-body-emphasis">Отчёты</h3>
|
<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') }}">
|
<a href="{{ url_for('report_bp.menu') }}">
|
||||||
<button class="btn btn-primary">Перейти</button>
|
<button class="btn btn-primary">Перейти</button>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</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 %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
Reference in New Issue
Block a user