fix login url.

This commit is contained in:
aminhashemi92 2025-09-13 12:57:19 +03:30
parent 741536a227
commit f95beb726f
5 changed files with 21 additions and 4 deletions

View file

@ -172,12 +172,19 @@
</tr>
{% empty %}
<tr>
<td colspan="7" class="text-center py-4">
<td class="text-center py-4">
<div class="d-flex flex-column align-items-center">
<i class="bx bx-user-x bx-lg text-muted mb-2"></i>
<span class="text-muted">هیچ کاربری یافت نشد</span>
</div>
</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
{% endfor %}
</tbody>

View file

@ -16,6 +16,9 @@ layout-wide customizer-hide
{% endblock style %}
{% block content %}
{% include '_toasts.html' %}
<div class="container-xxl">
<div class="authentication-wrapper authentication-basic container-p-y">
<div class="authentication-inner">
@ -69,7 +72,7 @@ layout-wide customizer-hide
{% csrf_token %}
<div class="mb-3 fv-plugins-icon-container">
<label for="email" class="form-label">نام کاربری</label>
<input type="text" class="form-control" id="email" name="username" placeholder="Enter your email or username" autofocus="">
<input type="text" class="form-control" id="email" name="username" placeholder="نام کاربری خود را وارد کنید" autofocus="">
<div class="fv-plugins-message-container fv-plugins-message-container--enabled invalid-feedback"></div></div>
<div class="mb-3 form-password-toggle fv-plugins-icon-container">
<div class="d-flex justify-content-between">

View file

@ -4,7 +4,7 @@ from accounts.views import login_view, dashboard, customer_list, add_customer_aj
app_name = "accounts"
urlpatterns = [
path('login/', login_view, name='login'),
path('', login_view, name='login'),
path('logout/', logout_view, name='logout'),
path('dashboard/', dashboard, name='dashboard'),
path('customers/', customer_list, name='customer_list'),