X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/5283919d2493a396f588043b68bf9a4b3d5876a2..refs/pull/846/head:/resources/views/pages/form.blade.php diff --git a/resources/views/pages/form.blade.php b/resources/views/pages/form.blade.php index d8dc19ec2..58afdfca7 100644 --- a/resources/views/pages/form.blade.php +++ b/resources/views/pages/form.blade.php @@ -1,51 +1,125 @@ -
+
{{ csrf_field() }} + + {{--Header Bar--}}
-
+
-
-
+
+ - - +
-
+ {{--Title input--}} +
- @include('form/text', ['name' => 'name', 'placeholder' => 'Page Title']) + @include('form/text', ['name' => 'name', 'placeholder' => trans('entities.pages_title')])
+ + {{--Editors--}}
- - @if($errors->has('html')) -
{{ $errors->first('html') }}
+ + {{--WYSIWYG Editor--}} + @if(setting('app-editor') === 'wysiwyg') +
+ +
+ + @if($errors->has('html')) +
{{ $errors->first('html') }}
+ @endif + @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 @endif +
\ No newline at end of file