<div class="container">
        <div class="row">
            <div class="col-md-6 offset-md-3">
                <div class="card {% if form.errors %}card-outline-danger 
text-danger{% endif %}">
                    <form method="post" action="{% url 'login' %}">{% 
csrf_token %}
                        <div class="card-header {% if form.errors 
%}card-danger{% else %}card-primary{% endif %} card-inverse">
                            <h4 class="card-title">Login</h4>
                        </div>
                        <div class="card-block">
                            {% if form.errors %}
                                <h6 class="card-title">
                                    <small>Incorrect Login. Please Try 
Again</small>
                                </h6>
                            {% endif %}
                            <div class="card-text">

                                <div class="form-group row">
                                    <div class="col-sm-12">
                                        <input type="text" 
class="form-control form-control-lg"
                                               id="{{ 
form.username.id_for_label }}" name="username"
                                               placeholder="Username">
                                    </div>
                                </div>
                                <div class="form-group row">
                                    <div class="col-sm-12">
                                        <input type="password" 
class="form-control form-control-lg"
                                               id="{{ 
form.password.id_for_label }}" name="password"
                                               placeholder="Password">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="card-footer">
                            <input class="btn btn-primary" type="submit" 
value="Login"/>
                            <button class="btn btn-sm btn-secondary 
pull-right" type="button" onclick="window.location.href='{% url 
'registration_register' %}';">New User</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e1c94b9e-d3b8-4099-afe7-a7230a698975%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to