Started work on page move view and entity selector

This commit is contained in:
Dan Brown
2016-06-11 21:04:18 +01:00
parent 61596a8e21
commit 97d011ac8e
9 changed files with 100 additions and 9 deletions

View File

@ -450,6 +450,24 @@ class PageController extends Controller
]);
}
/**
* Show the view to choose a new parent to move a page into.
* @param $bookSlug
* @param $pageSlug
* @return mixed
* @throws NotFoundException
*/
public function showMove($bookSlug, $pageSlug)
{
$book = $this->bookRepo->getBySlug($bookSlug);
$page = $this->pageRepo->getBySlug($pageSlug, $book->id);
$this->checkOwnablePermission('page-update', $page);
return view('pages/move', [
'book' => $book,
'page' => $page
]);
}
/**
* Set the permissions for this page.
* @param $bookSlug