]> BookStack Code Mirror - bookstack/blob - resources/views/auth/login.blade.php
Changed the location of the "view-toggle" to be under the books views.
[bookstack] / resources / views / auth / login.blade.php
1 @extends('public')
2
3 @section('header-buttons')
4     @if(setting('registration-enabled', false))
5         <a href="{{ baseUrl("/register") }}">@icon('new-user') {{ trans('auth.sign_up') }}</a>
6     @endif
7 @stop
8
9 @section('content')
10
11     <div class="text-center">
12         <div class="card center-box">
13             <h3>@icon('login') {{ title_case(trans('auth.log_in')) }}</h3>
14
15             <div class="body">
16                 <form action="{{ baseUrl("/login") }}" method="POST" id="login-form">
17                     {!! csrf_field() !!}
18
19                     @include('auth/forms/login/' . $authMethod)
20
21                     <div class="form-group">
22                         <label for="remember" class="inline">{{ trans('auth.remember_me') }}</label>
23                         <input type="checkbox" id="remember" name="remember"  class="toggle-switch-checkbox">
24                         <label for="remember" class="toggle-switch"></label>
25                     </div>
26
27                     <div class="from-group">
28                         <button class="button block pos" tabindex="3">@icon('login') {{ title_case(trans('auth.log_in')) }}</button>
29                     </div>
30                 </form>
31
32                 @if(count($socialDrivers) > 0)
33                     <hr class="margin-top">
34                     @foreach($socialDrivers as $driver => $name)
35                         <a id="social-login-{{$driver}}" class="button block muted-light svg text-left" href="{{ baseUrl("/login/service/" . $driver) }}">
36                             @icon('auth/' . $driver)
37                             {{ trans('auth.log_in_with', ['socialDriver' => $name]) }}
38                         </a>
39                     @endforeach
40                 @endif
41             </div>
42         </div>
43     </div>
44
45 @stop