File tree Expand file tree Collapse file tree 2 files changed +39
-34
lines changed
Expand file tree Collapse file tree 2 files changed +39
-34
lines changed Original file line number Diff line number Diff line change 11{% extends 'base.html' %}
2- {% load bootstrap_tags %}
3- {% block title %}
4- Login
5- {% endblock %}
6- {% block page_heading %}
7- < h1 > Login</ h1 >
8- {% endblock %}
2+ {% load crispy_forms_tags %}
3+ {% block title %}TrackIt | Login{% endblock %}
4+ {% block container-class %}{% endblock %}
95{% block content %}
10- < br >
11- < form method ="POST ">
12- {% csrf_token %}
13- {{ login_form | as_bootstrap }}
14- < button type ="submit " class ="btn btn-primary "> Log In</ button >
15- </ form >
16- < hr >
17- < p > Don't have an account yet? < a href ="{% url 'registration' %} "> Register</ a > </ p >
18- {% if messages %}
19- < div >
20- {% for message in messages %}
21- {{ message }}
22- {% endfor %}
6+ < div class ="row ">
7+ < div class ="col ">
8+ < br >
9+ < div class ="jumbotron mx-auto shadow p-3 mb-5 bg-white " style ="max-width: 500px; ">
10+ < h4 class ="display-6 text-center "> Log in to your account</ h4 >
11+ < br >
12+ < form method ="POST ">
13+ {% csrf_token %}
14+ {{ login_form | crispy }}
15+ < button type ="submit " class ="btn btn-primary " style ="width: 100%; "> Log In</ button >
16+ </ form >
17+ < hr >
18+ < a href ="# " class ="float-right "> Forgot Password?</ a >
19+ < p > Don't have an account? < a href ="{% url 'registration' %} "> Create Account</ a > </ p >
20+ < p > Assessors: < a href ="# "> < i class ="material-icons align-middle "> person</ i > Log in as Demo User</ a >
21+ </ p >
22+ </ div >
23+ </ div >
2324</ div >
24- {% endif %}
2525{% endblock %}
Original file line number Diff line number Diff line change 11{% extends 'base.html' %}
2- {% load bootstrap_tags %}
3- {% block title %}
4- Registration
5- {% endblock %}
2+ {% load crispy_forms_tags %}
3+ {% block title %}Sign Up{% endblock %}
64{% block content %}
7- < h1 > Registration</ h1 >
8- < br >
9- < form method ="POST ">
10- {% csrf_token %}
11- {{ registration_form | as_bootstrap }}
12- < button type ="submit " class ="btn btn-primary "> Register</ button >
13- </ form >
14- < hr >
15- < p > If you already have an account, < a href ="{% url 'login' %} "> Log In</ a > </ p >
5+ < div class ="row ">
6+ < div class ="col ">
7+ < br >
8+ < div class ="jumbotron mx-auto shadow p-3 mb-5 bg-white " style ="max-width: 500px; ">
9+ < h4 class ="display-6 text-center "> Create Account</ h4 >
10+ < br >
11+ < form method ="POST ">
12+ {% csrf_token %}
13+ {{ registration_form |crispy }}
14+ < button type ="submit " class ="btn btn-primary " style ="width: 100%; "> Register</ button >
15+ </ form >
16+ < hr >
17+ < p class ="text-center "> Already registered? < a href ="{% url 'login' %} "> Log In</ a > </ p >
18+ </ div >
19+ </ div >
20+ </ div >
1621{% endblock %}
You can’t perform that action at this time.
0 commit comments