68 lines
1.8 KiB
HTML
68 lines
1.8 KiB
HTML
{% extends 'layout.html' %}
|
|
|
|
{% block title %} Регистрация {% endblock %}
|
|
|
|
|
|
{% block style %}
|
|
.registration-form {
|
|
max-width: 400px;
|
|
margin: auto;
|
|
padding: 20px;
|
|
background-color: #f7f7f7;
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 5px;
|
|
box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
|
|
}
|
|
.registration-form h1 {
|
|
text-align: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
.registration-form .form-group {
|
|
margin-bottom: 15px;
|
|
}
|
|
.registration-form input[type="text"],
|
|
.registration-form input[type="email"],
|
|
.registration-form input[type="password"] {
|
|
width: 100%;
|
|
padding: 10px;
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 5px;
|
|
font-size: 1rem;
|
|
}
|
|
.registration-form .btn-primary {
|
|
width: 100%;
|
|
padding: 10px;
|
|
font-size: 1rem;
|
|
background-color: #3498db;
|
|
border: none;
|
|
border-radius: 5px;
|
|
color: #ffffff;
|
|
cursor: pointer;
|
|
}
|
|
{% endblock %}
|
|
|
|
{% block body %}
|
|
<div class="registration-form">
|
|
<h1>Регистрация</h1>
|
|
{% from "includes/_formhelpers.html" import render_field%}
|
|
<form method="post" action="">
|
|
<div class="form-group">
|
|
{{ render_field(form.name, class_='form-control') }}
|
|
</div>
|
|
<div class="form-group">
|
|
{{ render_field(form.email, class_='form-control') }}
|
|
</div>
|
|
<div class="form-group">
|
|
{{ render_field(form.username, class_='form-control') }}
|
|
</div>
|
|
<div class="form-group">
|
|
{{ render_field(form.password, class_='form-control') }}
|
|
</div>
|
|
<div class="form-group">
|
|
{{ render_field(form.confirm, class_='form-control') }}
|
|
</div>
|
|
<p><input type="submit" class="btn btn-primary" value="Регистрация"></p>
|
|
</form>
|
|
</div>
|
|
{% endblock %}
|