956eb1308f
Extracted page editor view data gathering to its own class for alignment. Updated the data used in views as part of the process to use view-specific variables instead of custom attributes added to models. Also moved tinymce library loading so it's not loaded when not using the wysiwyg editor.
20 lines
No EOL
670 B
PHP
20 lines
No EOL
670 B
PHP
@extends('layouts.base')
|
|
|
|
@section('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')
|
|
@stop |