mirror of
https://github.com/Balshgit/different
synced 2025-09-11 02:50:41 +03:00
125 lines
3.2 KiB
HTML
125 lines
3.2 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:400,700">
|
|
<title>Bootstrap Simple Login Form with Blue Background</title>
|
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css">
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
|
|
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"></script>
|
|
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>
|
|
<style>
|
|
body {
|
|
color: #fff;
|
|
background: #3598dc;
|
|
font-family: 'Roboto', sans-serif;
|
|
}
|
|
.form-control {
|
|
height: 41px;
|
|
background: #f2f2f2;
|
|
box-shadow: none !important;
|
|
border: none;
|
|
}
|
|
.form-control:focus {
|
|
background: #e2e2e2;
|
|
}
|
|
.form-control, .btn {
|
|
border-radius: 3px;
|
|
}
|
|
.signup-form {
|
|
width: 400px;
|
|
margin: 30px auto;
|
|
}
|
|
.signup-form form {
|
|
color: #999;
|
|
border-radius: 3px;
|
|
margin-bottom: 15px;
|
|
background: #fff;
|
|
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
|
|
padding: 30px;
|
|
}
|
|
.signup-form h2 {
|
|
color: #333;
|
|
font-weight: bold;
|
|
margin-top: 0;
|
|
}
|
|
.signup-form hr {
|
|
margin: 0 -30px 20px;
|
|
}
|
|
.signup-form .form-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
.signup-form input[type="checkbox"] {
|
|
margin-top: 3px;
|
|
}
|
|
.signup-form .row div:first-child {
|
|
padding-right: 10px;
|
|
}
|
|
.signup-form .row div:last-child {
|
|
padding-left: 10px;
|
|
}
|
|
.signup-form .btn {
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
background: #3598dc;
|
|
border: none;
|
|
min-width: 140px;
|
|
}
|
|
.signup-form .btn:hover, .signup-form .btn:focus {
|
|
background: #2389cd !important;
|
|
outline: none;
|
|
}
|
|
.signup-form a {
|
|
color: #fff;
|
|
text-decoration: underline;
|
|
}
|
|
.signup-form a:hover {
|
|
text-decoration: none;
|
|
}
|
|
.signup-form form a {
|
|
color: #3598dc;
|
|
text-decoration: none;
|
|
}
|
|
.signup-form form a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
.signup-form .hint-text {
|
|
padding-bottom: 15px;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
<div class="signup-form">
|
|
<form method="post">
|
|
<h2>Login</h2>
|
|
<p>Please fill in this form to Log in</p>
|
|
<hr>
|
|
{% csrf_token %}
|
|
<div class="form-group">
|
|
{% if form.username.value %}
|
|
<input type="text" class="form-control" name="username" value="{{ form.username.value }}">
|
|
{% else %}
|
|
<input type="text" class="form-control" name="username" placeholder="Username" required="required">
|
|
{% endif %}
|
|
</div>
|
|
<div class="form-group">
|
|
<input type="password" class="form-control" name="password" placeholder="Password" required="required">
|
|
</div>
|
|
<div class="form-group">
|
|
<button type="submit" class="btn btn-primary btn-lg">Login</button>
|
|
</div>
|
|
<div class="form-group">
|
|
{% if form.non_field_errors %}
|
|
{% for error in form.non_field_errors %}
|
|
<li>{{ error }}</li>
|
|
{% endfor %}
|
|
{% endif %}
|
|
</div>
|
|
</form>
|
|
<div class="hint-text">Don't have an account? <a href="{% url 'accounts:registration' %}">Register here</a></div>
|
|
</div>
|
|
|
|
{% endblock %}
|