]> BookStack Code Mirror - bookstack/blobdiff - resources/views/auth/login.blade.php
TypeScript: Updated compile target, addressed issues
[bookstack] / resources / views / auth / login.blade.php
index f5d9e998f540df3826d26c56322338f39f76f80f..6278adcd7a89eeb19c626b4ed4d1907f2d64e2cc 100644 (file)
@@ -1,4 +1,4 @@
-@extends('simple-layout')
+@extends('layouts.simple')
 
 @section('content')
 
@@ -6,44 +6,32 @@
 
         <div class="my-l">&nbsp;</div>
 
-        <div class="card content-wrap">
-            <h1 class="list-heading">{{ title_case(trans('auth.log_in')) }}</h1>
+        <div class="card content-wrap auto-height">
+            <h1 class="list-heading">{{ Str::title(trans('auth.log_in')) }}</h1>
 
-            <form action="{{ baseUrl("/login") }}" method="POST" id="login-form" class="mt-l">
-                {!! csrf_field() !!}
+            @include('auth.parts.login-message')
 
-                <div class="stretch-inputs">
-                    @include('auth/forms/login/' . $authMethod)
-                </div>
-
-                <div class="grid half collapse-xs large-gap v-center">
-                    <div class="text-left ml-xxs">
-                        @include('components.custom-checkbox', [
-                            'name' => 'remember',
-                            'checked' => false,
-                            'value' => 'on',
-                            'label' => trans('auth.remember_me'),
-                        ])
-                    </div>
-                    <div class="text-right">
-                        <button class="button primary" tabindex="3">{{ title_case(trans('auth.log_in')) }}</button>
-                    </div>
-                </div>
-
-            </form>
+            @include('auth.parts.login-form-' . $authMethod)
 
             @if(count($socialDrivers) > 0)
                 <hr class="my-l">
                 @foreach($socialDrivers as $driver => $name)
                     <div>
-                        <a id="social-login-{{$driver}}" class="button outline block svg text-left" href="{{ baseUrl("/login/service/" . $driver) }}">
+                        <a id="social-login-{{$driver}}" class="button outline svg" href="{{ url("/login/service/" . $driver) }}">
                             @icon('auth/' . $driver)
-                            {{ trans('auth.log_in_with', ['socialDriver' => $name]) }}
+                            <span>{{ trans('auth.log_in_with', ['socialDriver' => $name]) }}</span>
                         </a>
                     </div>
                 @endforeach
             @endif
+
+            @if(setting('registration-enabled') && config('auth.method') === 'standard')
+                <div class="text-center pb-s">
+                    <hr class="my-l">
+                    <a href="{{ url('/register') }}">{{ trans('auth.dont_have_account') }}</a>
+                </div>
+            @endif
         </div>
     </div>
 
-@stop
\ No newline at end of file
+@stop