]> BookStack Code Mirror - bookstack/blob - resources/views/mfa/parts/setup-method-row.blade.php
Updated attachment links to have dropdown for open type
[bookstack] / resources / views / mfa / parts / setup-method-row.blade.php
1 <div class="grid half gap-xl">
2     <div>
3         <div class="setting-list-label">{{ trans('auth.mfa_option_' . $method . '_title') }}</div>
4         <p class="small">
5             {{ trans('auth.mfa_option_' . $method . '_desc') }}
6         </p>
7     </div>
8     <div class="pt-m">
9         @if($userMethods->has($method))
10             <div class="text-pos">
11                 @icon('check-circle')
12                 {{ trans('auth.mfa_setup_configured') }}
13             </div>
14             <a href="{{ url('/mfa/' . $method . '/generate') }}" class="button outline small">{{ trans('auth.mfa_setup_reconfigure') }}</a>
15             <div component="dropdown" class="inline relative">
16                 <button type="button" refs="dropdown@toggle" class="button outline small">{{ trans('common.remove') }}</button>
17                 <div refs="dropdown@menu" class="dropdown-menu">
18                     <p class="text-neg small px-m mb-xs">{{ trans('auth.mfa_setup_remove_confirmation') }}</p>
19                     <form action="{{ url('/mfa/' . $method . '/remove') }}" method="post">
20                         {{ csrf_field() }}
21                         {{ method_field('delete') }}
22                         <button class="text-primary small text-item">{{ trans('common.confirm') }}</button>
23                     </form>
24                 </div>
25             </div>
26         @else
27             <a href="{{ url('/mfa/' . $method . '/generate') }}" class="button outline">{{ trans('auth.mfa_setup_action') }}</a>
28         @endif
29     </div>
30 </div>