X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/1d1cc19596ac30d40a74ee751011b9bac038c47c..refs/pull/1973/head:/resources/views/pages/form.blade.php diff --git a/resources/views/pages/form.blade.php b/resources/views/pages/form.blade.php index 53861527b..ffc286c2c 100644 --- a/resources/views/pages/form.blade.php +++ b/resources/views/pages/form.blade.php @@ -1,57 +1,60 @@ -
- - {{ csrf_field() }} + page-id="{{ $model->id ?? 0 }}" + text-direction="{{ config('app.rtl') ? 'rtl' : 'ltr' }}" + page-new-draft="{{ $model->draft ?? 0 }}" + page-update-draft="{{ $model->isDraft ?? 0 }}"> + + @exposeTranslations([ + 'entities.pages_editing_draft', + 'entities.pages_editing_page', + 'errors.page_draft_autosave_fail', + 'entities.pages_editing_page', + 'entities.pages_draft_discarded', + 'entities.pages_edit_set_changelog', + ]) {{--Header Bar--}} -
-
-
- -
+
+
- + + +
+ -
-
- +
- -
+
+ + +
@@ -59,7 +62,7 @@ {{--Title input--}}
- @include('form/text', ['name' => 'name', 'placeholder' => trans('entities.pages_title')]) + @include('form.text', ['name' => 'name', 'placeholder' => trans('entities.pages_title')])
@@ -68,58 +71,15 @@ {{--WYSIWYG Editor--}} @if(setting('app-editor') === 'wysiwyg') -
- -
- - @if($errors->has('html')) -
{{ $errors->first('html') }}
- @endif + @include('pages.wysiwyg-editor', ['model' => $model]) @endif {{--Markdown Editor--}} @if(setting('app-editor') === 'markdown') -
- -
-
- {{ trans('entities.pages_md_editor') }} -
- @if(config('services.drawio')) - -  |  - @endif - -  |  - -
-
- -
- -
- -
- -
-
-
{{ trans('entities.pages_md_preview') }}
-
-
-
-
- - -
- - - - @if($errors->has('markdown')) -
{{ $errors->first('markdown') }}
- @endif + @include('pages.markdown-editor', ['model' => $model]) @endif
+ +
\ No newline at end of file