-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSignUp.php
114 lines (101 loc) · 3.17 KB
/
SignUp.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<?php
require_once __DIR__ . '/config/helpers.php';
checkGuest();
?>
<!DOCTYPE html>
<html lang="ru" data-theme="light">
<head>
<meta charset="UTF-8">
<title>Регистрация аккаунта</title>
<!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@1/css/pico.min.css"> -->
<link rel="stylesheet" href="css/picoMin.css">
<link rel="stylesheet" href="css/app.css">
</head>
<body>
<form class="card" action="config/actions/register.php" method="post" enctype="multipart/form-data">
<div class="form-group">
<a href="SignIn.php"><h1 class="form-g-element gray">Вход</h1></a>
<h1 class="form-g-element">\</h1>
<h1 class="form-g-element">Регистрация</h1>
</div>
<label for="name">
Имя
<input
type="text"
id="name"
name="name"
placeholder="Иванов Иван"
value="<?php echo old('name') ?>"
<?php echo validationErrorAttr('name'); ?>
>
<?php if(hasValidationError('name')): ?>
<small><?php echo validationErrorMessage('name'); ?></small>
<?php endif; ?>
</label>
<label for="email">
E-mail
<input
type="text"
id="email"
name="email"
placeholder="[email protected]"
value="<?php echo old('email') ?>"
<?php echo validationErrorAttr('email'); ?>
>
<?php if(hasValidationError('email')): ?>
<small><?php echo validationErrorMessage('email'); ?></small>
<?php endif; ?>
</label>
<label for="avatar">Изображение профиля
<input
type="file"
id="avatar"
name="avatar"
<?php echo validationErrorAttr('avatar'); ?>
>
<?php if(hasValidationError('avatar')): ?>
<small><?php echo validationErrorMessage('avatar'); ?></small>
<?php endif; ?>
</label>
<div class="grid">
<label for="password">
Пароль
<input
type="password"
id="password"
name="password"
placeholder="******"
<?php echo validationErrorAttr('password'); ?>
>
<?php if(hasValidationError('password')): ?>
<small><?php echo validationErrorMessage('password'); ?></small>
<?php endif; ?>
</label>
<label for="password_confirmation">
Подтверждение
<input
type="password"
id="password_confirmation"
name="password_confirmation"
placeholder="******"
>
</label>
</div>
<fieldset>
<label for="terms">
<input
type="checkbox"
id="terms"
name="terms"
>
Я принимаю все условия пользования
</label>
</fieldset>
<button
type="submit"
id="submit"
>Продолжить</button>
</form>
<?php include_once __DIR__ . '/components/scripts.php' ?>
</body>
</html>