summaryrefslogtreecommitdiff
path: root/arduino_blog/static/admin/templates/user-login.html
blob: d0717c0c76cb5abdad236ca5297940b8df104c27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
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="#">&times;</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="#">&times;</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">&times;</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 %}