forked from lonnieezell/myth-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
register.php
55 lines (40 loc) · 2.6 KB
/
register.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
<?= $this->extend($config->viewLayout) ?>
<?= $this->section('main') ?>
<div class="container">
<div class="row">
<div class="col-sm-6 offset-sm-3">
<div class="card">
<h2 class="card-header"><?=lang('Auth.register')?></h2>
<div class="card-body">
<?= view('Myth\Auth\Views\_message_block') ?>
<form action="<?= route_to('register') ?>" method="post">
<?= csrf_field() ?>
<div class="form-group">
<label for="email"><?=lang('Auth.email')?></label>
<input type="email" class="form-control <?php if(session('errors.email')) : ?>is-invalid<?php endif ?>"
name="email" aria-describedby="emailHelp" placeholder="<?=lang('Auth.email')?>" value="<?= old('email') ?>">
<small id="emailHelp" class="form-text text-muted"><?=lang('Auth.weNeverShare')?></small>
</div>
<div class="form-group">
<label for="username"><?=lang('Auth.username')?></label>
<input type="text" class="form-control <?php if(session('errors.username')) : ?>is-invalid<?php endif ?>" name="username" placeholder="<?=lang('Auth.username')?>" value="<?= old('username') ?>">
</div>
<div class="form-group">
<label for="password"><?=lang('Auth.password')?></label>
<input type="password" name="password" class="form-control <?php if(session('errors.password')) : ?>is-invalid<?php endif ?>" placeholder="<?=lang('Auth.password')?>" autocomplete="off">
</div>
<div class="form-group">
<label for="pass_confirm"><?=lang('Auth.repeatPassword')?></label>
<input type="password" name="pass_confirm" class="form-control <?php if(session('errors.pass_confirm')) : ?>is-invalid<?php endif ?>" placeholder="<?=lang('Auth.repeatPassword')?>" autocomplete="off">
</div>
<br>
<button type="submit" class="btn btn-primary btn-block"><?=lang('Auth.register')?></button>
</form>
<hr>
<p><?=lang('Auth.alreadyRegistered')?> <a href="<?= route_to('login') ?>"><?=lang('Auth.signIn')?></a></p>
</div>
</div>
</div>
</div>
</div>
<?= $this->endSection() ?>