2018-04-14 13:00:16 -04:00
|
|
|
@extends('simple-layout')
|
|
|
|
|
|
|
|
@section('body')
|
|
|
|
|
|
|
|
<div class="container small">
|
|
|
|
|
2019-02-17 12:52:42 -05:00
|
|
|
<div class="my-s">
|
2019-02-02 06:41:41 -05:00
|
|
|
@include('partials.breadcrumbs', ['crumbs' => [
|
|
|
|
$page->book,
|
|
|
|
$page->chapter,
|
|
|
|
$page,
|
2019-02-17 12:52:42 -05:00
|
|
|
$page->getUrl('/copy') => [
|
|
|
|
'text' => trans('entities.pages_copy'),
|
|
|
|
'icon' => 'copy',
|
|
|
|
]
|
2019-02-02 06:41:41 -05:00
|
|
|
]])
|
|
|
|
</div>
|
2018-04-14 13:00:16 -04:00
|
|
|
|
2019-02-02 06:41:41 -05:00
|
|
|
<div class="card content-wrap auto-height">
|
2018-04-14 13:00:16 -04:00
|
|
|
|
2019-02-02 06:41:41 -05:00
|
|
|
<h1 class="list-heading">{{ trans('entities.pages_copy') }}</h1>
|
|
|
|
|
|
|
|
<form action="{{ $page->getUrl('/copy') }}" method="POST">
|
|
|
|
{!! csrf_field() !!}
|
|
|
|
|
|
|
|
<div class="form-group title-input">
|
|
|
|
<label for="name">{{ trans('common.name') }}</label>
|
2019-04-07 07:00:09 -04:00
|
|
|
@include('form.text', ['name' => 'name'])
|
2019-02-02 06:41:41 -05:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group" collapsible>
|
2019-08-25 10:44:51 -04:00
|
|
|
<button type="button" class="collapse-title text-primary" collapsible-trigger aria-expanded="false">
|
2019-02-02 06:41:41 -05:00
|
|
|
<label for="entity_selection">{{ trans('entities.pages_copy_desination') }}</label>
|
2019-08-25 10:44:51 -04:00
|
|
|
</button>
|
2019-02-02 06:41:41 -05:00
|
|
|
<div class="collapse-content" collapsible-content>
|
|
|
|
@include('components.entity-selector', ['name' => 'entity_selection', 'selectorSize' => 'large', 'entityTypes' => 'book,chapter', 'entityPermission' => 'page-create'])
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group text-right">
|
|
|
|
<a href="{{ $page->getUrl() }}" class="button outline">{{ trans('common.cancel') }}</a>
|
2019-08-25 07:40:04 -04:00
|
|
|
<button type="submit" class="button">{{ trans('entities.pages_copy') }}</button>
|
2019-02-02 06:41:41 -05:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
2018-04-14 13:00:16 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|