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,23 +1,19 @@
@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>
<div class="actions mb-xl"> @section('left')
<h5>{{ trans('common.actions') }}</h5> @include('common.home-sidebar')
<div class="icon-list text-primary"> @stop
@include('partials.view-toggle', ['view' => $view, 'type' => 'book'])
@include('components.expand-toggle', ['target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
</div>
</div>
@include('common.home-sidebar') @section('right')
</div> <div class="actions mb-xl">
<div> <h5>{{ trans('common.actions') }}</h5>
@include('books.list', ['books' => $books, 'view' => $view]) <div class="icon-list text-primary">
</div> @include('partials.view-toggle', ['view' => $view, 'type' => 'book'])
@include('components.expand-toggle', ['target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
</div> </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 class="content-wrap card">
<div> <div class="page-content" page-display="{{ $customHomepage->id }}">
@include('pages.page-display', ['page' => $customHomepage])
<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="page-content" page-display="{{ $customHomepage->id }}">
@include('pages.page-display', ['page' => $customHomepage])
</div>
</div>
</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>
@stop @stop

View File

@ -1,23 +1,19 @@
@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>
<div class="actions mb-xl"> @section('left')
<h5>{{ trans('common.actions') }}</h5> @include('common.home-sidebar')
<div class="icon-list text-primary"> @stop
@include('partials.view-toggle', ['view' => $view, 'type' => 'shelf'])
@include('components.expand-toggle', ['target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
</div>
</div>
@include('common.home-sidebar') @section('right')
</div> <div class="actions mb-xl">
<div> <h5>{{ trans('common.actions') }}</h5>
@include('shelves.list', ['shelves' => $shelves, 'view' => $view]) <div class="icon-list text-primary">
</div> @include('partials.view-toggle', ['view' => $view, 'type' => 'shelf'])
@include('components.expand-toggle', ['target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
</div> </div>
</div> </div>
@stop @stop