2015-07-13 03:01:42 +08:00
|
|
|
@extends('base')
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
2015-07-16 05:55:49 +08:00
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
<div class="col-md-3 page-menu">
|
|
|
|
<h4>Book Actions</h4>
|
|
|
|
<div class="buttons">
|
|
|
|
<a href="{{$book->getEditUrl()}}"><i class="fa fa-pencil"></i>Edit Book</a>
|
2015-07-22 03:13:29 +08:00
|
|
|
<a href="{{ $book->getUrl() }}/sort"><i class="fa fa-sort"></i>Sort Pages</a>
|
2015-07-16 05:55:49 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="page-content col-md-9 float left">
|
|
|
|
<h1>{{$book->name}}</h1>
|
|
|
|
<p class="text-muted">{{$book->description}}</p>
|
|
|
|
|
|
|
|
<div class="clearfix header-group">
|
|
|
|
<h4 class="float">Pages</h4>
|
|
|
|
<a href="{{$book->getUrl() . '/page/create'}}" class="text-pos float right">+ New Page</a>
|
|
|
|
</div>
|
|
|
|
|
2015-07-21 05:05:26 +08:00
|
|
|
@include('pages/page-tree-list', ['pageTree' => $pageTree])
|
2015-07-16 05:55:49 +08:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2015-07-21 05:05:26 +08:00
|
|
|
<script>
|
|
|
|
$(function() {
|
|
|
|
|
|
|
|
$('.nested-page-list i.arrow').click(function() {
|
|
|
|
var list = $(this).closest('.nested-page-list');
|
|
|
|
var listItem = $(this).closest('li');
|
|
|
|
listItem.toggleClass('expanded');
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2015-07-13 03:01:42 +08:00
|
|
|
@stop
|