4 <div class="page-editor flex-fill flex" ng-controller="PageEditController" page-id="{{ $model->id or 0 }}" page-draft="{{ $page->isDraft or 0 }}">
7 <div class="faded-small toolbar">
8 <div class="container">
10 <div class="col-sm-4 faded">
11 <div class="action-buttons text-left">
12 <a href="{{ back()->getTargetUrl() }}" class="text-button text-primary"><i class="zmdi zmdi-arrow-left"></i>Back</a>
13 <a onclick="$('body>header').slideToggle();" class="text-button text-primary"><i class="zmdi zmdi-swap-vertical"></i>Toggle Header</a>
16 <div class="col-sm-4 faded text-center">
17 <span class="faded-text" ng-bind="draftText"></span>
19 <div class="col-sm-4 faded">
20 <div class="action-buttons" ng-cloak>
21 <button type="button" ng-if="isDraft" ng-click="discardDraft()" class="text-button text-neg"><i class="zmdi zmdi-close-circle"></i>Discard Draft</button>
22 <button type="submit" id="save-button" class="text-button text-pos"><i class="zmdi zmdi-floppy"></i>Save Page</button>
29 <div class="title-input page-title clearfix" ng-non-bindable>
31 @include('form/text', ['name' => 'name', 'placeholder' => 'Page Title'])
34 <div class="edit-area flex-fill flex">
35 <textarea id="html-editor" tinymce="editorOptions" mce-change="editorChange" mce-model="editorHtml" name="html" rows="5"
36 @if($errors->has('html')) class="neg" @endif>@if(isset($model) || old('html')){{htmlspecialchars( old('html') ? old('html') : $model->html)}}@endif</textarea>
37 @if($errors->has('html'))
38 <div class="text-neg text-small">{{ $errors->first('html') }}</div>