]> BookStack Code Mirror - bookstack/blob - resources/views/auth/login.blade.php
Merge branch 'feature/saml' of git://github.com/Xiphoseer/BookStack into Xiphoseer...
[bookstack] / resources / views / auth / login.blade.php
1 @extends('simple-layout')
2
3 @section('content')
4
5     <div class="container very-small">
6
7         <div class="my-l">&nbsp;</div>
8
9         <div class="card content-wrap auto-height">
10             <h1 class="list-heading">{{ Str::title(trans('auth.log_in')) }}</h1>
11
12             <form action="{{ url('/login') }}" method="POST" id="login-form" class="mt-l">
13                 {!! csrf_field() !!}
14
15                 <div class="stretch-inputs">
16                     @include('auth.forms.login.' . $authMethod)
17                 </div>
18
19                 <div class="grid half collapse-xs gap-xl v-center">
20                     <div class="text-left ml-xxs">
21                         @include('components.custom-checkbox', [
22                             'name' => 'remember',
23                             'checked' => false,
24                             'value' => 'on',
25                             'label' => trans('auth.remember_me'),
26                         ])
27                     </div>
28
29                     <div class="text-right">
30                         <button class="button">{{ Str::title(trans('auth.log_in')) }}</button>
31                     </div>
32                 </div>
33
34             </form>
35
36             @if(count($socialDrivers) > 0)
37                 <hr class="my-l">
38                 @foreach($socialDrivers as $driver => $name)
39                     <div>
40                         <a id="social-login-{{$driver}}" class="button outline block svg" href="{{ url("/login/service/" . $driver) }}">
41                             @icon('auth/' . $driver)
42                             {{ trans('auth.log_in_with', ['socialDriver' => $name]) }}
43                         </a>
44                     </div>
45                 @endforeach
46             @endif
47
48             @if($samlEnabled)
49               <hr class="my-l">
50               <div>
51                   <a id="saml-login" class="button outline block svg" href="{{ url("/saml2/login") }}">
52                       {{-- @icon('auth/github') --}}
53                       {{ trans('auth.log_in_with', ['socialDriver' => config('services.saml.name')]) }}
54                   </a>
55               </div>
56             @endif
57
58             @if(setting('registration-enabled', false))
59                 <div class="text-center pb-s">
60                     <hr class="my-l">
61                     <a href="{{ url('/register') }}">{{ trans('auth.dont_have_account') }}</a>
62                 </div>
63             @endif
64         </div>
65     </div>
66
67 @stop