Обновления шаблонов: 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' %} {% 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 %}

View File

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