]> BookStack Code Mirror - bookstack/blob - resources/views/pages/form.blade.php
Found the source of the issue, not sure how to fix
[bookstack] / resources / views / pages / form.blade.php
1
2
3
4 <div class="page-editor flex-fill flex" ng-non-bindable>
5
6     {{ csrf_field() }}
7     <div class="faded-small toolbar">
8         <div class="container">
9             <div class="row">
10                 <div class="col-sm-4 faded">
11                     <div class="action-buttons text-left">
12                         <a onclick="$('body>header').slideToggle();" class="text-button text-primary"><i class="zmdi zmdi-swap-vertical"></i>Toggle Header</a>
13                     </div>
14                 </div>
15                 <div class="col-sm-8 faded">
16                     <div class="action-buttons">
17                         <a href="{{ back()->getTargetUrl() }}" class="text-button text-primary"><i class="zmdi zmdi-close"></i>Cancel</a>
18                         <button type="submit" id="save-button" class="text-button  text-pos"><i class="zmdi zmdi-floppy"></i>Save Page</button>
19                     </div>
20                 </div>
21             </div>
22         </div>
23     </div>
24
25     <div class="title-input page-title clearfix">
26         <div class="input">
27             @include('form/text', ['name' => 'name', 'placeholder' => 'Page Title'])
28         </div>
29     </div>
30     <div class="edit-area flex-fill flex">
31         <textarea id="html-editor" name="html" rows="5"
32                   @if($errors->has('html')) class="neg" @endif>@if(isset($model) || old('html')){{htmlspecialchars( old('html') ? old('html') : $model->html)}}@endif</textarea>
33         @if($errors->has('html'))
34             <div class="text-neg text-small">{{ $errors->first('html') }}</div>
35         @endif
36     </div>
37 </div>