Обновления шаблонов: login.html и navbar.html
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
|
|
||||||
{% block title %}Вход{% endblock %}
|
{% block title %}Вход для владельца магазина{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2 class="text-center mb-4">Вход</h2>
|
<h2 class="text-center mb-4">Вход для владельца магазина</h2>
|
||||||
|
|
||||||
<form method="post">
|
<form method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|||||||
@@ -89,11 +89,14 @@
|
|||||||
|
|
||||||
<!-- 🔧 Debug (только для superuser) -->
|
<!-- 🔧 Debug (только для superuser) -->
|
||||||
{% if user.is_superuser %}
|
{% if user.is_superuser %}
|
||||||
<li class="nav-item">
|
{% url 'inventory:debug_page' as debug_url %}
|
||||||
<a class="nav-link" href="{% url 'inventory:debug_page' %}" style="color: #dc3545; font-weight: bold;">
|
{% if debug_url %}
|
||||||
🔧 Debug
|
<li class="nav-item">
|
||||||
</a>
|
<a class="nav-link" href="{{ debug_url }}" style="color: #dc3545; font-weight: bold;">
|
||||||
</li>
|
🔧 Debug
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user