mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
a61c9c5e98
- Primarily moved and re-organised view files. - Included readme within views to document the convention. - Fixed some issues with page field select list in previous commit. - Tweaked some route names while going through. - Split some views out further. Closes #2805
36 lines
1.3 KiB
PHP
36 lines
1.3 KiB
PHP
@extends('layouts.simple')
|
|
|
|
@section('body')
|
|
<div class="container small">
|
|
<div class="my-s">
|
|
@if (isset($bookshelf))
|
|
@include('entities.breadcrumbs', ['crumbs' => [
|
|
$bookshelf,
|
|
$bookshelf->getUrl('/create-book') => [
|
|
'text' => trans('entities.books_create'),
|
|
'icon' => 'add'
|
|
]
|
|
]])
|
|
@else
|
|
@include('entities.breadcrumbs', ['crumbs' => [
|
|
'/books' => [
|
|
'text' => trans('entities.books'),
|
|
'icon' => 'book'
|
|
],
|
|
'/create-book' => [
|
|
'text' => trans('entities.books_create'),
|
|
'icon' => 'add'
|
|
]
|
|
]])
|
|
@endif
|
|
</div>
|
|
|
|
<main class="content-wrap card">
|
|
<h1 class="list-heading">{{ trans('entities.books_create') }}</h1>
|
|
<form action="{{ isset($bookshelf) ? $bookshelf->getUrl('/create-book') : url('/books') }}" method="POST" enctype="multipart/form-data">
|
|
@include('books.parts.form', ['returnLocation' => isset($bookshelf) ? $bookshelf->getUrl() : url('/books')])
|
|
</form>
|
|
</main>
|
|
</div>
|
|
|
|
@stop |