11{% extends 'layouts/base-fullscreen.html' %}
2- {% load i18n static admin_soft %}
2+
33
44{% block content %}
55
1313 < div class ="col-xl-4 col-lg-5 col-md-6 d-flex flex-column mx-auto ">
1414 < div class ="card card-plain mt-8 ">
1515 < div class ="card-header pb-0 text-left bg-transparent ">
16- < h3 class ="font-weight-bolder text-info text-gradient ">
17- Sign IN
18- </ h3 >
19- < p class ="mb-0 ">
20- {% if msg %}
21- < span class ="text-danger "> {{ msg | safe }}</ span >
22- {% else %}
23- Add your credentials
24- {% endif %}
25- </ p >
16+ < h3 class ="font-weight-bolder text-info text-gradient "> Welcome back</ h3 >
17+ < p class ="mb-0 "> Enter your email and password to sign in</ p >
2618 </ div >
2719 < div class ="card-body ">
28- < form role ="form " method ="post " action ="# ">
29- {% if form.non_field_errors %}
30- {% for error in form.non_field_errors %}
31- < span class ="text-danger "> {{ error }}</ span >
32- {% endfor %}
33- {% endif %}
34- {% csrf_token %}
35- {% for field in form %}
36- < label for ="{{ field.id_for_label }} "> {{ field.label }}</ label >
37- < div class ="mb-3 ">
38- {{field}}
39- </ div >
40- {% endfor %}
41- < p class ="">
42- < a href ="{% url 'password_reset' %} " class ="text-primary "> Forgot password</ a >
43- </ p >
44-
20+ < form role ="form ">
21+ < label > Email</ label >
22+ < div class ="mb-3 ">
23+ < input type ="email " class ="form-control " placeholder ="Email " aria-label ="Email " aria-describedby ="email-addon ">
24+ </ div >
25+ < label > Password</ label >
26+ < div class ="mb-3 ">
27+ < input type ="email " class ="form-control " placeholder ="Password " aria-label ="Password " aria-describedby ="password-addon ">
28+ </ div >
29+ < div class ="form-check form-switch ">
30+ < input class ="form-check-input " type ="checkbox " id ="rememberMe " checked ="">
31+ < label class ="form-check-label " for ="rememberMe "> Remember me</ label >
32+ </ div >
4533 < div class ="text-center ">
46- < button type ="submit " class ="btn bg-gradient-info w-100 mt-1 mb-0 "> Sign in</ button >
47- < p class ="mt-4 ">
48- Don't have an account?
49- < a href ="{% url 'register' %} " class ="text-primary "> Register</ a >
50- </ p >
34+ < button type ="button " class ="btn bg-gradient-info w-100 mt-4 mb-0 "> Sign in</ button >
5135 </ div >
52-
5336 </ form >
5437 </ div >
5538 </ div >
5639 </ div >
5740 < div class ="col-md-6 ">
5841 < div class ="oblique position-absolute top-0 h-100 d-md-block d-none me-n8 ">
59- < div class ="oblique-image bg-cover position-absolute fixed-top ms-auto h-100 z-index-0 ms-n6 " style ="background-image:url('{% static ' img/curved-images/curved6.jpg' % }') "> </ div >
42+ < div class ="oblique-image bg-cover position-absolute fixed-top ms-auto h-100 z-index-0 ms-n6 " style ="background-image:url('{{ url_for(' static', filename = 'assets/ img/curved-images/curved6.jpg' )} }') "> </ div >
6043 </ div >
6144 </ div >
6245 </ div >
@@ -69,33 +52,3 @@ <h3 class="font-weight-bolder text-info text-gradient">
6952
7053{% endblock content %}
7154
72- {% block extrascript %}
73- < script type ="application/javascript ">
74- { % if form . username . errors % }
75- notification . danger ( "{{ form.username.errors }}" , 'top' , 'right' ) ;
76- { % endif % }
77- { % if form . password . errors % }
78- notification . danger ( "{{ form.password.errors }}" , 'top' , 'right' ) ;
79- { % endif % }
80-
81- { % if user . is_authenticated % }
82- var msg = "You are authenticated as {{ username }}, but are not authorized to " +
83- "access this page.Would you like to login to a different account ?"
84- notification . warning ( msg , 'top' , 'right' ) ;
85- { % endif % }
86-
87- { % if form . errors and not form . non_field_errors % }
88- { % if form . errors . items | length == 1 % }
89- notification . warning ( "{% trans " Please correct the error below . " %}" , 'top' , 'right' ) ;
90- { % else % }
91- notification . warning ( "{% trans " Please correct the errors below . " %}" , 'top' , 'right' ) ;
92- { % endif % }
93- { % endif % }
94-
95- { % if form . non_field_errors % }
96- { % for error in form . non_field_errors % }
97- notification . warning ( "{{ error|clean_text }}" , 'top' , 'right' ) ;
98- { % endfor % }
99- { % endif % }
100- </ script >
101- {% endblock %}
0 commit comments