mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
25 lines
857 B
PHP
25 lines
857 B
PHP
@extends('layouts.base')
|
|
|
|
@push('body-class', 'flexbox ')
|
|
|
|
@section('content')
|
|
|
|
<div id="main-content" class="flex-fill flex fill-height">
|
|
<form action="{{ $page->getUrl() }}" autocomplete="off" data-page-id="{{ $page->id }}" method="POST" class="flex flex-fill">
|
|
{{ csrf_field() }}
|
|
|
|
@if(!$isDraft) {{ method_field('PUT') }} @endif
|
|
@include('pages.parts.form', ['model' => $page])
|
|
@include('pages.parts.editor-toolbox')
|
|
</form>
|
|
</div>
|
|
|
|
@include('pages.parts.image-manager', ['uploaded_to' => $page->id])
|
|
@include('pages.parts.code-editor')
|
|
@include('entities.selector-popup')
|
|
<script nonce="{{ $cspNonce }}" type="module">
|
|
window.$components.first('image-manager').show((image) => {
|
|
console.log(image);
|
|
}, 'gallery');
|
|
</script>
|
|
@stop |