2021-08-22 08:15:58 -04:00
|
|
|
@extends('layouts.simple')
|
2015-07-28 15:57:13 -04:00
|
|
|
|
2017-08-26 09:36:48 -04:00
|
|
|
@section('body')
|
2015-07-28 15:57:13 -04:00
|
|
|
|
2018-05-28 05:33:38 -04:00
|
|
|
<div class="container small">
|
2019-01-31 15:37:12 -05:00
|
|
|
|
2019-02-17 12:52:42 -05:00
|
|
|
<div class="my-s">
|
2021-08-22 08:15:58 -04:00
|
|
|
@include('entities.breadcrumbs', ['crumbs' => [
|
2019-01-31 15:37:12 -05:00
|
|
|
$book,
|
|
|
|
$chapter,
|
2019-02-17 12:52:42 -05:00
|
|
|
$chapter->getUrl('/edit') => [
|
|
|
|
'text' => trans('entities.chapters_edit'),
|
|
|
|
'icon' => 'edit'
|
|
|
|
]
|
2019-01-31 15:37:12 -05:00
|
|
|
]])
|
2017-08-26 09:36:48 -04:00
|
|
|
</div>
|
2019-01-31 15:37:12 -05:00
|
|
|
|
2022-06-14 11:42:29 -04:00
|
|
|
<main class="content-wrap card auto-height">
|
2019-01-31 15:37:12 -05:00
|
|
|
<h1 class="list-heading">{{ trans('entities.chapters_edit') }}</h1>
|
|
|
|
<form action="{{ $chapter->getUrl() }}" method="POST">
|
|
|
|
<input type="hidden" name="_method" value="PUT">
|
2021-08-22 08:15:58 -04:00
|
|
|
@include('chapters.parts.form', ['model' => $chapter])
|
2019-01-31 15:37:12 -05:00
|
|
|
</form>
|
2019-08-25 10:44:51 -04:00
|
|
|
</main>
|
2019-01-31 15:37:12 -05:00
|
|
|
|
2022-06-14 11:42:29 -04:00
|
|
|
{{-- TODO - Permissions--}}
|
|
|
|
<div class="content-wrap card auto-height">
|
|
|
|
<h2 class="list-heading">Convert to Book</h2>
|
|
|
|
<div class="grid half left-focus no-row-gap">
|
|
|
|
<p>
|
|
|
|
You can convert this chapter to a new book with the same contents.
|
|
|
|
Any permissions set on this chapter will be copied to the new book but any inherited permissions,
|
|
|
|
from the parent book, will not be copied which could lead to a change of access control.
|
|
|
|
</p>
|
|
|
|
<div class="text-m-right">
|
|
|
|
<div component="dropdown" class="dropdown-container">
|
|
|
|
<button refs="dropdown@toggle" class="button outline" aria-haspopup="true" aria-expanded="false">Convert Chapter</button>
|
|
|
|
<ul refs="dropdown@menu" class="dropdown-menu" role="menu">
|
|
|
|
<li class="px-m py-s text-small text-muted">
|
|
|
|
Are you sure you want to convert this chapter?
|
|
|
|
<br>
|
|
|
|
This cannot be as easily undone.
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<form action="{{ $chapter->getUrl('/convert-to-book') }}" method="POST">
|
|
|
|
{!! csrf_field() !!}
|
|
|
|
<button type="submit" class="text-primary text-item">{{ trans('common.confirm') }}</button>
|
|
|
|
</form>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2015-07-28 15:57:13 -04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|