mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-09-04 16:42:21 +00:00
![Dan Brown](/assets/img/avatar_default.png)
- Added to prevent future possibility of 'shelf' var being introduced in scope and therefore causing a side-effect of redirect logic.
36 lines
1.3 KiB
PHP
36 lines
1.3 KiB
PHP
@extends('simple-layout')
|
|
|
|
@section('body')
|
|
<div class="container small">
|
|
<div class="my-s">
|
|
@if (isset($bookshelf))
|
|
@include('partials.breadcrumbs', ['crumbs' => [
|
|
$bookshelf,
|
|
$bookshelf->getUrl('/create-book') => [
|
|
'text' => trans('entities.books_create'),
|
|
'icon' => 'add'
|
|
]
|
|
]])
|
|
@else
|
|
@include('partials.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.form', ['returnLocation' => isset($bookshelf) ? $bookshelf->getUrl() : url('/books')])
|
|
</form>
|
|
</main>
|
|
</div>
|
|
|
|
@stop |