|
4 | 4 |
|
5 | 5 | <?= $this->section('main') ?>
|
6 | 6 |
|
7 |
| - <div class="container d-flex justify-content-center p-5"> |
8 |
| - <div class="card col-5 shadow-sm"> |
9 |
| - <div class="card-body"> |
10 |
| - <h5 class="card-title mb-5"><?= lang('Auth.login') ?></h5> |
| 7 | + <div class="container d-flex justify-content-center p-5"> |
| 8 | + <div class="card col-5 shadow-sm"> |
| 9 | + <div class="card-body"> |
| 10 | + <h5 class="card-title mb-5"><?= lang('Auth.login') ?></h5> |
11 | 11 |
|
12 |
| - <?php if (session('error') !== null) : ?> |
13 |
| - <div class="alert alert-danger" role="alert"><?= session('error') ?></div> |
14 |
| - <?php endif ?> |
| 12 | + <?php if (session('error') !== null) : ?> |
| 13 | + <div class="alert alert-danger" role="alert"><?= session('error') ?></div> |
| 14 | + <?php endif ?> |
15 | 15 |
|
16 |
| - <form action="<?= route_to('login') ?>" method="post"> |
17 |
| - <?= csrf_field() ?> |
| 16 | + <form action="<?= route_to('login') ?>" method="post"> |
| 17 | + <?= csrf_field() ?> |
18 | 18 |
|
19 |
| - <!-- Email --> |
20 |
| - <div class="mb-2"> |
21 |
| - <input type="email" class="form-control" name="email" inputmode="email" autocomplete="email" placeholder="<?= lang('Auth.email') ?>" value="<?= old('email') ?>" required /> |
22 |
| - </div> |
| 19 | + <!-- Email --> |
| 20 | + <div class="mb-2"> |
| 21 | + <input type="email" class="form-control" name="email" inputmode="email" autocomplete="email" placeholder="<?= lang('Auth.email') ?>" value="<?= old('email') ?>" required /> |
| 22 | + </div> |
23 | 23 |
|
24 |
| - <!-- Password --> |
25 |
| - <div class="mb-2"> |
26 |
| - <input type="password" class="form-control" name="password" inputmode="text" autocomplete="current-password" placeholder="<?= lang('Auth.password') ?>" required /> |
27 |
| - </div> |
| 24 | + <!-- Password --> |
| 25 | + <div class="mb-2"> |
| 26 | + <input type="password" class="form-control" name="password" inputmode="text" autocomplete="current-password" placeholder="<?= lang('Auth.password') ?>" required /> |
| 27 | + </div> |
28 | 28 |
|
29 | 29 | <!-- Remember me -->
|
30 |
| - <?php if (setting('Auth.sessionConfig')['allowRemembering']): ?> |
31 |
| - <div class="form-check"> |
32 |
| - <label class="form-check-label"> |
33 |
| - <input type="checkbox" name="remember" class="form-check-input" <?php if (old('remember')): ?> checked<?php endif ?>> |
34 |
| - <?= lang('Auth.rememberMe') ?> |
35 |
| - </label> |
36 |
| - </div> |
37 |
| - <?php endif; ?> |
38 |
| - |
39 |
| - <div class="d-grid col-8 mx-auto m-3"> |
40 |
| - <button type="submit" class="btn btn-primary btn-block"><?= lang('Auth.login') ?></button> |
41 |
| - </div> |
42 |
| - |
43 |
| - <?php if (setting('Auth.allowMagicLinkLogins')) : ?> |
44 |
| - <p class="text-center"><?= lang('Auth.forgotPassword') ?> <a href="<?= route_to('magic-link') ?>"><?= lang('Auth.useMagicLink') ?></a></p> |
45 |
| - <?php endif ?> |
46 |
| - |
47 |
| - <?php if (setting('Auth.allowRegistration')) : ?> |
48 |
| - <p class="text-center"><?= lang('Auth.needAccount') ?> <a href="<?= route_to('register') ?>"><?= lang('Auth.register') ?></a></p> |
49 |
| - <?php endif ?> |
50 |
| - |
51 |
| - </form> |
52 |
| - </div> |
53 |
| - </div> |
54 |
| - </div> |
| 30 | + <?php if (setting('Auth.sessionConfig')['allowRemembering']): ?> |
| 31 | + <div class="form-check"> |
| 32 | + <label class="form-check-label"> |
| 33 | + <input type="checkbox" name="remember" class="form-check-input" <?php if (old('remember')): ?> checked<?php endif ?>> |
| 34 | + <?= lang('Auth.rememberMe') ?> |
| 35 | + </label> |
| 36 | + </div> |
| 37 | + <?php endif; ?> |
| 38 | + |
| 39 | + <div class="d-grid col-8 mx-auto m-3"> |
| 40 | + <button type="submit" class="btn btn-primary btn-block"><?= lang('Auth.login') ?></button> |
| 41 | + </div> |
| 42 | + |
| 43 | + <?php if (setting('Auth.allowMagicLinkLogins')) : ?> |
| 44 | + <p class="text-center"><?= lang('Auth.forgotPassword') ?> <a href="<?= route_to('magic-link') ?>"><?= lang('Auth.useMagicLink') ?></a></p> |
| 45 | + <?php endif ?> |
| 46 | + |
| 47 | + <?php if (setting('Auth.allowRegistration')) : ?> |
| 48 | + <p class="text-center"><?= lang('Auth.needAccount') ?> <a href="<?= route_to('register') ?>"><?= lang('Auth.register') ?></a></p> |
| 49 | + <?php endif ?> |
| 50 | + |
| 51 | + </form> |
| 52 | + </div> |
| 53 | + </div> |
| 54 | + </div> |
55 | 55 |
|
56 | 56 | <?= $this->endSection() ?>
|
0 commit comments