Обновления шаблонов: login.html и navbar.html

This commit is contained in:
2026-01-08 22:16:01 +03:00
parent 75384999ee
commit 728a406b04
2 changed files with 10 additions and 7 deletions

View File

@@ -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 %}

View File

@@ -89,13 +89,16 @@
<!-- 🔧 Debug (только для superuser) -->
{% if user.is_superuser %}
{% url 'inventory:debug_page' as debug_url %}
{% if debug_url %}
<li class="nav-item">
<a class="nav-link" href="{% url 'inventory:debug_page' %}" style="color: #dc3545; font-weight: bold;">
<a class="nav-link" href="{{ debug_url }}" style="color: #dc3545; font-weight: bold;">
🔧 Debug
</a>
</li>
{% endif %}
{% endif %}
{% endif %}
</ul>
<ul class="navbar-nav align-items-center">