summaryrefslogtreecommitdiff
path: root/arduino_blog/templates
diff options
context:
space:
mode:
authorprashantsinalkar2020-03-05 19:28:24 +0530
committerprashantsinalkar2020-03-06 11:48:26 +0530
commitfde8470c5e47434df8c854bd3135763062fada12 (patch)
treec859006456fe98e2259424c5a3826e54c17e1cbf /arduino_blog/templates
parenta87bea9854a2ab1248abac74c4b2f04f819297ee (diff)
downloadarduino_projects_website-fde8470c5e47434df8c854bd3135763062fada12.tar.gz
arduino_projects_website-fde8470c5e47434df8c854bd3135763062fada12.tar.bz2
arduino_projects_website-fde8470c5e47434df8c854bd3135763062fada12.zip
fixed file structure and added forgot passowrd link
Diffstat (limited to 'arduino_blog/templates')
-rw-r--r--arduino_blog/templates/login.html47
-rw-r--r--arduino_blog/templates/user-register.html2
2 files changed, 23 insertions, 26 deletions
diff --git a/arduino_blog/templates/login.html b/arduino_blog/templates/login.html
index 052fd99..f9709ab 100644
--- a/arduino_blog/templates/login.html
+++ b/arduino_blog/templates/login.html
@@ -3,18 +3,18 @@
{% load widget_tweaks %}
{% load static %}
{% block content %}
- <section id="cfp" class="section cfp">
- <div class="container">
+ <section id="cfp" class="section cfp jumbotron d-flex justify-content-between">
+ <div class="container fluid">
<p>
<center>
- {% if user and not user.is_anonymous %}
- <h2>Submit Proposal </h2>
- {% else %}
- <h2>Login</h2>
- {% endif %}
+ {% if user and not user.is_anonymous %}
+ <h3>Submit Proposal </h3>
+ {% else %}
+ <h3>Login</h3>
+ {% endif %}
</center>
</p>
- {% if registration_complete %}
+ {% if registration_complete %}
<center>
<p>Thank You for your registration. You can now log in by clicking
<a href="{% url 'arduino_blog:user_login' %}">here!</a>
@@ -22,23 +22,20 @@
<br/>
<br/>
</center>
- {% endif %}
- <form action="" method="POST">
- {% csrf_token %}
- {{ form.as_p }}
- <button class="btn btn-success" name ="login" type="submit">Login</button>
- <br/>
- <br/>
- <a style="padding-right : 20px;" href="{% url 'arduino_blog:user_register' %}" class="btn btn btn-primary">Create an Account
- </a>
- <!-- <br><br>
- <a href="/2019/forgotpassword/" class="btn btn-primary">Forgot Password?</a> -->
- </form>
- </p>
- <br>
- </div>
-
- </section>
+ {% endif %}
+ <div class="row" ><div class="col-sm d-flex justify-content-center">
+ <form class="bg-info p-4" action="" method="POST">
+ {% csrf_token %}
+ {{ form.as_table }}
+ <p></p>
+ <button class="btn btn-success" name ="login" type="submit">Login</button>
+ <a style="padding-right : 20px;" href="{% url 'arduino_blog:user_register' %}" class="btn btn btn-primary">Create an Account
+ </a>
+ <br>
+ <p><a class="btn btn btn-warning" href="/accounts/forgotpassword/">Forgot Password?</a></p>
+ </form></div></div>
+ </div>
+ </section>
{% endblock %}
diff --git a/arduino_blog/templates/user-register.html b/arduino_blog/templates/user-register.html
index a5282d6..2b2fde6 100644
--- a/arduino_blog/templates/user-register.html
+++ b/arduino_blog/templates/user-register.html
@@ -5,7 +5,7 @@
{% block content %}
<section id="register" class="section register">
- <div class="container">
+ <div class="container fluid">
<center>
<h2>Sign Up</h2>
</center>