fix login url.
This commit is contained in:
		
							parent
							
								
									741536a227
								
							
						
					
					
						commit
						f95beb726f
					
				
					 5 changed files with 21 additions and 4 deletions
				
			
		| 
						 | 
					@ -172,12 +172,19 @@
 | 
				
			||||||
          </tr>
 | 
					          </tr>
 | 
				
			||||||
                      {% empty %}
 | 
					                      {% empty %}
 | 
				
			||||||
            <tr>
 | 
					            <tr>
 | 
				
			||||||
              <td colspan="7" class="text-center py-4">
 | 
					              <td class="text-center py-4">
 | 
				
			||||||
                <div class="d-flex flex-column align-items-center">
 | 
					                <div class="d-flex flex-column align-items-center">
 | 
				
			||||||
                  <i class="bx bx-user-x bx-lg text-muted mb-2"></i>
 | 
					                  <i class="bx bx-user-x bx-lg text-muted mb-2"></i>
 | 
				
			||||||
                  <span class="text-muted">هیچ کاربری یافت نشد</span>
 | 
					                  <span class="text-muted">هیچ کاربری یافت نشد</span>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
              </td>
 | 
					              </td>
 | 
				
			||||||
 | 
					              <td></td>
 | 
				
			||||||
 | 
					              <td></td>
 | 
				
			||||||
 | 
					              <td></td>
 | 
				
			||||||
 | 
					              <td></td>
 | 
				
			||||||
 | 
					              <td></td>
 | 
				
			||||||
 | 
					              <td></td>
 | 
				
			||||||
 | 
					              <td></td>
 | 
				
			||||||
            </tr>
 | 
					            </tr>
 | 
				
			||||||
            {% endfor %}
 | 
					            {% endfor %}
 | 
				
			||||||
        </tbody>
 | 
					        </tbody>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -16,6 +16,9 @@ layout-wide customizer-hide
 | 
				
			||||||
{% endblock style %}
 | 
					{% endblock style %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% block content %}
 | 
					{% block content %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					{% include '_toasts.html' %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<div class="container-xxl">
 | 
					<div class="container-xxl">
 | 
				
			||||||
  <div class="authentication-wrapper authentication-basic container-p-y">
 | 
					  <div class="authentication-wrapper authentication-basic container-p-y">
 | 
				
			||||||
    <div class="authentication-inner">
 | 
					    <div class="authentication-inner">
 | 
				
			||||||
| 
						 | 
					@ -69,7 +72,7 @@ layout-wide customizer-hide
 | 
				
			||||||
            {% csrf_token %}
 | 
					            {% csrf_token %}
 | 
				
			||||||
            <div class="mb-3 fv-plugins-icon-container">
 | 
					            <div class="mb-3 fv-plugins-icon-container">
 | 
				
			||||||
              <label for="email" class="form-label">نام کاربری</label>
 | 
					              <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="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="mb-3 form-password-toggle fv-plugins-icon-container">
 | 
				
			||||||
              <div class="d-flex justify-content-between">
 | 
					              <div class="d-flex justify-content-between">
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -4,7 +4,7 @@ from accounts.views import login_view, dashboard, customer_list, add_customer_aj
 | 
				
			||||||
 | 
					
 | 
				
			||||||
app_name = "accounts"
 | 
					app_name = "accounts"
 | 
				
			||||||
urlpatterns = [
 | 
					urlpatterns = [
 | 
				
			||||||
    path('login/', login_view, name='login'),
 | 
					    path('', login_view, name='login'),
 | 
				
			||||||
    path('logout/', logout_view, name='logout'),
 | 
					    path('logout/', logout_view, name='logout'),
 | 
				
			||||||
    path('dashboard/', dashboard, name='dashboard'),
 | 
					    path('dashboard/', dashboard, name='dashboard'),
 | 
				
			||||||
    path('customers/', customer_list, name='customer_list'),
 | 
					    path('customers/', customer_list, name='customer_list'),
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										
											BIN
										
									
								
								db.sqlite3
									
										
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								db.sqlite3
									
										
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							| 
						 | 
					@ -163,12 +163,19 @@
 | 
				
			||||||
          </tr>
 | 
					          </tr>
 | 
				
			||||||
          {% empty %}
 | 
					          {% empty %}
 | 
				
			||||||
          <tr>
 | 
					          <tr>
 | 
				
			||||||
            <td colspan="7" class="text-center py-4">
 | 
					            <td class="text-center py-4">
 | 
				
			||||||
              <div class="text-muted">
 | 
					              <div class="text-muted">
 | 
				
			||||||
                <i class="ti ti-database-off ti-lg mb-2"></i>
 | 
					                <i class="ti ti-database-off ti-lg mb-2"></i>
 | 
				
			||||||
                <p>چاهی یافت نشد</p>
 | 
					                <p>چاهی یافت نشد</p>
 | 
				
			||||||
              </div>
 | 
					              </div>
 | 
				
			||||||
            </td>
 | 
					            </td>
 | 
				
			||||||
 | 
					            <td></td>
 | 
				
			||||||
 | 
					            <td></td>
 | 
				
			||||||
 | 
					            <td></td>
 | 
				
			||||||
 | 
					            <td></td>
 | 
				
			||||||
 | 
					            <td></td>
 | 
				
			||||||
 | 
					            <td></td>
 | 
				
			||||||
 | 
					            <td></td>
 | 
				
			||||||
          </tr>
 | 
					          </tr>
 | 
				
			||||||
          {% endfor %}
 | 
					          {% endfor %}
 | 
				
			||||||
        </tbody>
 | 
					        </tbody>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue