]> BookStack Code Mirror - bookstack/blob - resources/views/mfa/totp-generate.blade.php
Fixes for CodeStyle vol.2
[bookstack] / resources / views / mfa / totp-generate.blade.php
1 @extends('layouts.simple')
2
3 @section('body')
4
5     <div class="container very-small py-xl">
6         <div class="card content-wrap auto-height">
7             <h1 class="list-heading">{{ trans('auth.mfa_gen_totp_title') }}</h1>
8             <p>{{ trans('auth.mfa_gen_totp_desc') }}</p>
9             <p>{{ trans('auth.mfa_gen_totp_scan') }}</p>
10
11             <div class="text-center">
12                 <div class="block inline">
13                     {!! $svg !!}
14                 </div>
15             </div>
16
17             <h2 class="list-heading">{{ trans('auth.mfa_gen_totp_verify_setup') }}</h2>
18             <p id="totp-verify-input-details" class="mb-s">{{ trans('auth.mfa_gen_totp_verify_setup_desc') }}</p>
19             <form action="{{ url('/mfa/totp/confirm') }}" method="POST">
20                 {{ csrf_field() }}
21                 <input type="text"
22                        name="code"
23                        aria-labelledby="totp-verify-input-details"
24                        placeholder="{{ trans('auth.mfa_gen_totp_provide_code_here') }}"
25                        class="input-fill-width {{ $errors->has('code') ? 'neg' : '' }}">
26                 @if($errors->has('code'))
27                     <div class="text-neg text-small px-xs">{{ $errors->first('code') }}</div>
28                 @endif
29                 <div class="mt-s text-right">
30                     <a href="{{ url('/mfa/setup') }}" class="button outline">{{ trans('common.cancel') }}</a>
31                     <button class="button">{{ trans('auth.mfa_gen_confirm_and_enable') }}</button>
32                 </div>
33             </form>
34         </div>
35     </div>
36
37 @stop