]> BookStack Code Mirror - bookstack/blob - resources/views/users/account/auth.blade.php
ExportFormatter: Add book description and check for empty book and chapter descriptio...
[bookstack] / resources / views / users / account / auth.blade.php
1 @extends('users.account.layout')
2
3 @section('main')
4
5     @if($authMethod === 'standard')
6         <section class="card content-wrap auto-height">
7             <form action="{{ url('/my-account/auth/password') }}" method="post">
8                 {{ method_field('put') }}
9                 {{ csrf_field() }}
10
11                 <h2 class="list-heading">{{ trans('preferences.auth_change_password') }}</h2>
12
13                 <p class="text-muted text-small">
14                     {{ trans('preferences.auth_change_password_desc') }}
15                 </p>
16
17                 <div class="grid half mt-m gap-xl wrap stretch-inputs mb-m">
18                     <div>
19                         <label for="password">{{ trans('auth.password') }}</label>
20                         @include('form.password', ['name' => 'password', 'autocomplete' => 'new-password'])
21                     </div>
22                     <div>
23                         <label for="password-confirm">{{ trans('auth.password_confirm') }}</label>
24                         @include('form.password', ['name' => 'password-confirm'])
25                     </div>
26                 </div>
27
28                 <div class="form-group text-right">
29                     <button class="button">{{ trans('common.update') }}</button>
30                 </div>
31
32             </form>
33         </section>
34     @endif
35
36     <section class="card content-wrap auto-height items-center flex-container-row gap-m gap-x-l wrap justify-space-between">
37         <div class="flex-min-width-m">
38             <h2 class="list-heading">{{ trans('settings.users_mfa') }}</h2>
39             <p class="text-muted text-small">{{ trans('settings.users_mfa_desc') }}</p>
40             <p class="text-muted">
41                 @if ($mfaMethods->count() > 0)
42                     <span class="text-pos">@icon('check-circle')</span>
43                 @else
44                     <span class="text-neg">@icon('cancel')</span>
45                 @endif
46                 {{ trans_choice('settings.users_mfa_x_methods', $mfaMethods->count()) }}
47             </p>
48         </div>
49         <div class="text-right">
50             <a href="{{ url('/mfa/setup')  }}"
51                class="button outline">{{ trans('common.manage') }}</a>
52         </div>
53     </section>
54
55     @if(count($activeSocialDrivers) > 0)
56         <section id="social-accounts" class="card content-wrap auto-height">
57             <h2 class="list-heading">{{ trans('settings.users_social_accounts') }}</h2>
58             <p class="text-muted text-small">{{ trans('settings.users_social_accounts_info') }}</p>
59             <div class="container">
60                 <div class="grid third">
61                     @foreach($activeSocialDrivers as $driver => $enabled)
62                         <div class="text-center mb-m">
63                             <div role="presentation">@icon('auth/'. $driver, ['style' => 'width: 56px;height: 56px;'])</div>
64                             <div>
65                                 @if(user()->hasSocialAccount($driver))
66                                     <form action="{{ url("/login/service/{$driver}/detach") }}" method="POST">
67                                         {{ csrf_field() }}
68                                         <button aria-label="{{ trans('settings.users_social_disconnect') }} - {{ $driver }}"
69                                                 class="button small outline">{{ trans('settings.users_social_disconnect') }}</button>
70                                     </form>
71                                 @else
72                                     <a href="{{ url("/login/service/{$driver}") }}"
73                                        aria-label="{{ trans('settings.users_social_connect') }} - {{ $driver }}"
74                                        class="button small outline">{{ trans('settings.users_social_connect') }}</a>
75                                 @endif
76                             </div>
77                         </div>
78                     @endforeach
79                 </div>
80             </div>
81         </section>
82     @endif
83
84     @if(userCan('access-api'))
85         @include('users.api-tokens.parts.list', ['user' => user(), 'context' => 'my-account'])
86     @endif
87 @stop