feat: auth
This commit is contained in:
30
articles/templates/registration.html
Normal file
30
articles/templates/registration.html
Normal file
@@ -0,0 +1,30 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Регистрация</title>
|
||||
{% load static %}
|
||||
<link rel="stylesheet" href="{% static 'index.css' %}">
|
||||
<link rel="shortcut icon" type="image/png" href="{% static 'favicon.ico' %}"/>
|
||||
</head>
|
||||
<body>
|
||||
<div class="header">
|
||||
<img src="{% static 'logo.svg' %}" />
|
||||
<h1>Всё про IT</h1>
|
||||
</div>
|
||||
<div class="content">
|
||||
<h1 class="registration-header">Регистрация</h1>
|
||||
<form class="login-form" method="POST">{% csrf_token %}
|
||||
<input class="username" type="username" name="username" placeholder="Имя пользователя" value="{{ form.username}}">
|
||||
<input class="email" name="email" placeholder="Почта" value="{{ form.email }}">
|
||||
<input class="password" type="password" name="password" placeholder="Пароль" value="{{ form.password }}">
|
||||
<input class="submit" type="submit" value="Зарегистрироваться">
|
||||
</form>
|
||||
<div class="error registration-error">
|
||||
{{ error }}
|
||||
</div>
|
||||
</div>
|
||||
<p><a href="/">← Назад к списку статей</a></p>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user