Added custom.js, login redirects to current page, added form-start/form-end and change breadcrumb width

This commit is contained in:
Deon George 2020-01-09 18:44:07 +11:00
parent 8b83990a66
commit f131db31c6
No known key found for this signature in database
GPG Key ID: 7670E8DC27415254
5 changed files with 14 additions and 7 deletions

View File

@ -13,7 +13,8 @@
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- In case we have input fields in the header -->
@yield('page-form-start')
@include('adminlte::layouts.partials.contentheader')
<!-- Main content -->
@ -24,6 +25,7 @@
</div>
</section><!-- /.content -->
@yield('page-form-end')
</div><!-- /.content-wrapper -->
@isset($controlsidebar)

View File

@ -2,12 +2,12 @@
<div class="content-header d-print-none">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<div class="col-sm-8">
<h1 class="m-0 text-dark">@yield('contentheader_title', 'Content Title')</h1>
<small>@yield('contentheader_description','Description')</small>
</div><!-- /.col -->
<div class="col-sm-6">
<div class="col-sm-4">
<ol class="breadcrumb float-sm-right small">
<li class="breadcrumb-item"><a href="{{ url('/home'.(isset($ido) ? '/'.$ido->id : '')) }}">Home</a></li>
@isset($breadcrumb)

View File

@ -59,7 +59,7 @@
</div>
</li>
@else
<a href="{{ url('login') }}" class="text-muted pr-2"><i class="fa fa-lock"></i></a>
<a href="{{ url()->current().'?login=1' }}" class="text-muted pr-2"><i class="fa fa-lock"></i></a>
@endif
<!-- Control Side Bar -->

View File

@ -70,4 +70,9 @@
}
}
});
</script>
</script>
@if(file_exists('js/custom.js'))
<!-- Any Custom JS -->
<script src="{{ asset('js/custom.js') }}"></script>
@endif

View File

@ -14,13 +14,13 @@
@if($user->exists)
<img src="{{ Gravatar::get(($user->exists AND $user->email) ? $user->email : 'nobody@example.com') }}" class="img-circle elevation-2" alt="User">
@else
<a href="{{ url('login') }}" class="d-block"><i class="pl-1 fa fa-3x fa-lock"></i></a>
<a name="login" href="{{ url()->current().'?login=1' }}" class="d-block"><i class="pl-1 fa fa-3x fa-lock"></i></a>
@endif
</div>
<div class="info">
<a href="{{ url('login') }}" class="d-block">{{ $user->exists ? ($user->name ?: 'No Name') : 'Login' }}</a>
@isset($user->lastlogin)<a span="d-block"><small><span style="color: #747474;">Last On:</span> {{ $user->lastlogin->format('Y-m-d H:i') }}</small></a>@endisset
@isset($user->lastlogin)<a name="login" span="d-block"><small><span style="color: #747474;">Last On:</span> {{ $user->lastlogin->format('Y-m-d H:i') }}</small></a>@endisset
</div>
</div>