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