BookStack/resources/views/books/create.blade.php

38 lines
1.3 KiB
PHP
Raw Normal View History

@extends('layouts.simple')
2015-07-12 15:01:42 -04:00
@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="{{ $bookshelf?->getUrl('/create-book') ?? url('/books') }}" method="POST" enctype="multipart/form-data">
2022-12-02 12:41:59 -05:00
@include('books.parts.form', [
'returnLocation' => $bookshelf?->getUrl() ?? url('/books')
2022-12-02 12:41:59 -05:00
])
</form>
</main>
</div>
2015-07-12 15:01:42 -04:00
@stop