diff options
author | prashantsinalkar | 2020-03-05 19:28:24 +0530 |
---|---|---|
committer | prashantsinalkar | 2020-03-06 11:48:26 +0530 |
commit | fde8470c5e47434df8c854bd3135763062fada12 (patch) | |
tree | c859006456fe98e2259424c5a3826e54c17e1cbf /arduino_blog/static/admin/templates/user-login.html | |
parent | a87bea9854a2ab1248abac74c4b2f04f819297ee (diff) | |
download | arduino_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/static/admin/templates/user-login.html')
-rw-r--r-- | arduino_blog/static/admin/templates/user-login.html | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/arduino_blog/static/admin/templates/user-login.html b/arduino_blog/static/admin/templates/user-login.html new file mode 100644 index 0000000..d0717c0 --- /dev/null +++ b/arduino_blog/static/admin/templates/user-login.html @@ -0,0 +1,74 @@ +{% extends "website/templates/base.html" %} +{% load widget_tweaks %} +{% block content %} +{% load static %} + +<link rel="stylesheet" href="{% static 'website/css/login.css' %}"> +<br><br><br> +<div class="row"> +<div class="form"> +<div class="headerlogin"><h2>Sign In</h2></div> +<div class="login"> + {% if password_reset %} + <center> + <div class="alert alert-danger"> + <a class="close" data-dismiss="alert" href="#">×</a> + <p>Kindly log in to Ask Question</p> + </div> + </center> + <div class="clearfix"></div> + {% endif %} + <!-- {% if password_updated %} + <center> + <div class="alert alert-danger"> + <a class="close" data-dismiss="alert" href="#">×</a> + <p>Password has been updated successfully !</p> + </div> + </center> + <div class="clearfix"></div> + {% endif %} --> + </br> + <form action="{% url 'user_login' %}" method="POST"> {% csrf_token %} + {% if form.errors %} + <div class="alert alert-danger"> + <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> + <b>Invalid username or password</b> + </div> + {% endif %} + {% with WIDGET_ERROR_CLASS='field_error' %} + <div class="input-group"> + <span class="input-group-addon"><i class="fa fa-user fa-fw"></i></span> + {% render_field form.username class+="form-control" placeholder="Username" %} + </div> + </br> + <div class="input-group"> + <span class="input-group-addon"><i class="fa fa-lock fa-fw"></i></span> + {% render_field form.password class+="form-control" placeholder="Password" %} + </div> + </br> + {% if next %} + <input type="hidden" name="next" value="{{ next }}"> + {% endif %} + <input class="btn btn-sm btn-primary" type="submit" value="Login"> + <span class="ch"><a href="/forgotpassword/">Forgot Password?</a></span> + {% endwith %} + </form> + + + <h4>Rules and Regulations</h4> + <ol> + <li>This forum is a place to discuss questions and doubts related to the FOSSEE FOSS.</li> + <li>This is not a place for self promotion.</li> + <li>Any violation of the above may lead to the permanent account deletion.</li> + <li>As this is a public forum, please refrain from sharing details such as email ids, phone numbers, address, etc. on the FORUM.</li> + </ol> + + </div><br/> +<div class="sign"> +<div class="need">Need new account ?</div> +<div> <a class="btn btn-sm btn-success" href="/accounts/register/" >Register</a></div> +</div> +</div> + +</div> <!-- /.row --> +{% endblock %} |