mirror of
https://github.com/Balshgit/different
synced 2025-09-11 02:50:41 +03:00
161 lines
5.1 KiB
HTML
161 lines
5.1 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">
|
|
<p>Please fill in this form to create an account!</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 class="form-group">{{ form.username.errors }}</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="row">
|
|
{% if form.first_name.value %}
|
|
<div class="col"><input type="text" class="form-control" name="first_name" value="{{ form.first_name.value }}"></div>
|
|
{% else %}
|
|
<div class="col"><input type="text" class="form-control" name="first_name" placeholder="First Name" required="required"></div>
|
|
{% endif %}
|
|
{% if form.last_name.value %}
|
|
<div class="col"><input type="text" class="form-control" name="last_name" value="{{ form.last_name.value }}"></div>
|
|
{% else %}
|
|
<div class="col"><input type="text" class="form-control" name="last_name" placeholder="Last Name" required="required"></div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
{% if form.email.value %}
|
|
<input type="text" class="form-control" name="email" value="{{ form.email.value }}">
|
|
{% else %}
|
|
<input type="email" class="form-control" name="email" placeholder="Email" required="required">
|
|
{% endif %}
|
|
<div class="form-group">{{ form.email.errors }}</div>
|
|
</div>
|
|
<div class="form-group">
|
|
{% if form.mobile.value %}
|
|
<input type="text" class="form-control" name="mobile" value="{{ form.mobile.value }}">
|
|
{% else %}
|
|
<input id="mobile" type="row" class="form-control" name="mobile" placeholder="Mobile (Not required)">
|
|
{% endif %}
|
|
<div class="form-group">{{ form.mobile.errors }}</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<input type="password" class="form-control" name="password1" placeholder="Password" required="required">
|
|
</div>
|
|
<div class="form-group">
|
|
<input type="password" class="form-control" name="password2" placeholder="Confirm Password" required="required">
|
|
<div class="form-group">{{ form.password2.errors }}</div>
|
|
</div>
|
|
|
|
<script src='https://www.google.com/recaptcha/api.js'></script>
|
|
<div class="form-group g-recaptcha" data-sitekey="6LcaYfgcAAAAAEX1GE9myoMEA2xVhWOrXqKUke_j"></div>
|
|
{% if messages %}
|
|
{% for message in messages %}
|
|
{{ message }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
<div class="form-group">
|
|
<button type="submit" class="btn btn-primary btn-lg">Sign Up</button>
|
|
</div>
|
|
<div class="form-group">{{ form.non_field_errors }}</div>
|
|
</form>
|
|
<div class="hint-text">Already have an account? <a href="{% url 'accounts:login' %}">Login here</a></div>
|
|
</div>
|
|
{% endblock content %}
|