mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-14 23:23:37 +08:00
588fd7d165
Optimised permission fetching so that it won't initialise a bunch of models for the role permissions and instead does a manual query to get the data directly.
26 lines
802 B
PHP
26 lines
802 B
PHP
@extends('base')
|
|
|
|
@section('head')
|
|
<script src="{{ url('/libs/tinymce/tinymce.min.js?ver=4.9.4') }}"></script>
|
|
@stop
|
|
|
|
@section('body-class', 'flexbox')
|
|
|
|
@section('content')
|
|
|
|
<div 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(!isset($isDraft))
|
|
<input type="hidden" name="_method" value="PUT">
|
|
@endif
|
|
@include('pages.form', ['model' => $page])
|
|
@include('pages.editor-toolbox')
|
|
</form>
|
|
</div>
|
|
|
|
@include('components.image-manager', ['uploaded_to' => $page->id])
|
|
@include('components.code-editor')
|
|
@include('components.entity-selector-popup')
|
|
@stop |