Updated custom home views to use tri-layout

Closes #1423
This commit is contained in:
Dan Brown 2019-05-25 16:35:09 +01:00
parent 13c0386e84
commit 35f35bcba5
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
4 changed files with 42 additions and 54 deletions

View File

@ -1,7 +1,5 @@
@extends('tri-layout') @extends('tri-layout')
@section('container-classes', 'mt-xl')
@section('body') @section('body')
@include('books.list', ['books' => $books, 'view' => $view]) @include('books.list', ['books' => $books, 'view' => $view])
@stop @stop

View File

@ -1,10 +1,14 @@
@extends('simple-layout') @extends('tri-layout')
@section('body') @section('body')
<div class="container mt-m"> @include('books.list', ['books' => $books, 'view' => $view])
<div class="grid right-focus gap-xl"> @stop
<div>
@section('left')
@include('common.home-sidebar')
@stop
@section('right')
<div class="actions mb-xl"> <div class="actions mb-xl">
<h5>{{ trans('common.actions') }}</h5> <h5>{{ trans('common.actions') }}</h5>
<div class="icon-list text-primary"> <div class="icon-list text-primary">
@ -12,12 +16,4 @@
@include('components.expand-toggle', ['target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details']) @include('components.expand-toggle', ['target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
</div> </div>
</div> </div>
@include('common.home-sidebar')
</div>
<div>
@include('books.list', ['books' => $books, 'view' => $view])
</div>
</div>
</div>
@stop @stop

View File

@ -1,26 +1,24 @@
@extends('simple-layout') @extends('tri-layout')
@section('body') @section('body')
<div class="container mt-l"> <div class="mt-m">
<div class="grid right-focus gap-xl">
<div>
<div class="actions mb-xl">
<h5>{{ trans('common.actions') }}</h5>
<div class="icon-list text-primary">
@include('components.expand-toggle', ['target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
</div>
</div>
@include('common.home-sidebar')
</div>
<div>
<div class="content-wrap card"> <div class="content-wrap card">
<div class="page-content" page-display="{{ $customHomepage->id }}"> <div class="page-content" page-display="{{ $customHomepage->id }}">
@include('pages.page-display', ['page' => $customHomepage]) @include('pages.page-display', ['page' => $customHomepage])
</div> </div>
</div> </div>
</div> </div>
@stop
@section('left')
@include('common.home-sidebar')
@stop
@section('right')
<div class="actions mb-xl">
<h5>{{ trans('common.actions') }}</h5>
<div class="icon-list text-primary">
@include('components.expand-toggle', ['target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
</div> </div>
</div> </div>
@stop @stop

View File

@ -1,10 +1,14 @@
@extends('simple-layout') @extends('tri-layout')
@section('body') @section('body')
<div class="container mt-m"> @include('shelves.list', ['shelves' => $shelves, 'view' => $view])
<div class="grid right-focus gap-xl"> @stop
<div>
@section('left')
@include('common.home-sidebar')
@stop
@section('right')
<div class="actions mb-xl"> <div class="actions mb-xl">
<h5>{{ trans('common.actions') }}</h5> <h5>{{ trans('common.actions') }}</h5>
<div class="icon-list text-primary"> <div class="icon-list text-primary">
@ -12,12 +16,4 @@
@include('components.expand-toggle', ['target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details']) @include('components.expand-toggle', ['target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
</div> </div>
</div> </div>
@include('common.home-sidebar')
</div>
<div>
@include('shelves.list', ['shelves' => $shelves, 'view' => $view])
</div>
</div>
</div>
@stop @stop