]> BookStack Code Mirror - bookstack/blob - resources/views/chapters/parts/convert-to-book.blade.php
8a5d2a181c57dd034c9c16ace4fa56609ec70f07
[bookstack] / resources / views / chapters / parts / convert-to-book.blade.php
1 <div class="content-wrap card auto-height">
2     <h2 class="list-heading">Convert to Book</h2>
3     <div class="grid half left-focus no-row-gap">
4         <p>
5             You can convert this chapter to a new book with the same contents.
6             Any permissions set on this chapter will be copied to the new book but any inherited permissions,
7             from the parent book, will not be copied which could lead to a change of access control.
8         </p>
9         <div class="text-m-right">
10             <div component="dropdown" class="dropdown-container">
11                 <button refs="dropdown@toggle" class="button outline" aria-haspopup="true" aria-expanded="false">Convert Chapter</button>
12                 <ul refs="dropdown@menu" class="dropdown-menu" role="menu">
13                     <li class="px-m py-s text-small text-muted">
14                         Are you sure you want to convert this chapter?
15                         <br>
16                         This cannot be as easily undone.
17                     </li>
18                     <li>
19                         <form action="{{ $chapter->getUrl('/convert-to-book') }}" method="POST">
20                             {!! csrf_field() !!}
21                             <button type="submit" class="text-primary text-item">{{ trans('common.confirm') }}</button>
22                         </form>
23                     </li>
24                 </ul>
25             </div>
26         </div>
27     </div>
28 </div>