login form using bootstrap code example
Example 1: bootstrap login form
<form>
<div class="form-group">
<label for="inputEmail">Email</label>
<input type="email" class="form-control" id="inputEmail" placeholder="Email">
</div>
<div class="form-group">
<label for="inputPassword">Password</label>
<input type="password" class="form-control" id="inputPassword" placeholder="Password">
</div>
<div class="form-group">
<label class="form-check-label"><input type="checkbox"> Remember me</label>
</div>
<button type="submit" class="btn btn-primary">Sign in</button>
</form>
Example 2: login html
{% extends '!!!!!ALERT_CHANGE_THIS_ALERT!!!!!!!/base.html' %}
{% load crispy_forms_tags %}
{% block title %}
<title>Login</title>
{% endblock %}
{% block body %}
<div class="container">
<div class="row justify-content-center mt-5">
<div class="col-5 border shadow rounded p-4">
<h1 class="font-weight-lighter text-center">Login</h1>
<form method="POST">
{% csrf_token %}
{{ form | crispy }}
<button class="btn btn-outline-secondary btn-block mt-4">
Login
</button>
</form>
</div>
</div>
</div>
{% endblock %}