Доступ поставщику к оформлению накладной
This commit is contained in:
@@ -35,8 +35,8 @@
|
||||
</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">
|
||||
{% 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"
|
||||
@@ -74,32 +74,17 @@
|
||||
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>
|
||||
<!-- {% 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>
|
||||
Reference in New Issue
Block a user