2015-07-13 04:31:15 +08:00
|
|
|
@extends('base')
|
|
|
|
|
|
|
|
@section('head')
|
2016-03-13 20:04:08 +08:00
|
|
|
<script src="/libs/tinymce/tinymce.min.js?ver=4.3.7"></script>
|
2015-07-13 04:31:15 +08:00
|
|
|
@stop
|
|
|
|
|
2015-08-31 18:43:28 +08:00
|
|
|
@section('body-class', 'flexbox')
|
|
|
|
|
2015-07-13 04:31:15 +08:00
|
|
|
@section('content')
|
|
|
|
|
2016-03-10 06:32:07 +08:00
|
|
|
<div class="flex-fill flex">
|
|
|
|
<form action="{{$page->getUrl()}}" data-page-id="{{ $page->id }}" method="POST" class="flex flex-fill">
|
2016-05-13 06:12:05 +08:00
|
|
|
@if(!isset($isDraft))
|
|
|
|
<input type="hidden" name="_method" value="PUT">
|
|
|
|
@endif
|
2015-08-31 18:43:28 +08:00
|
|
|
@include('pages/form', ['model' => $page])
|
|
|
|
</form>
|
2016-05-13 06:12:05 +08:00
|
|
|
|
|
|
|
<div class="floating-toolbox" ng-controller="PageAttributeController" page-id="{{ $page->id or 0 }}">
|
|
|
|
<form ng-submit="saveAttributes()">
|
|
|
|
<table>
|
|
|
|
<tr ng-repeat="attribute in attributes">
|
|
|
|
<td><input type="text" ng-model="attribute.name" ng-change="attributeChange(attribute)" ng-blur="attributeBlur(attribute)" placeholder="Attribute Name"></td>
|
|
|
|
<td><input type="text" ng-model="attribute.value" ng-change="attributeChange(attribute)" ng-blur="attributeBlur(attribute)" placeholder="Value"></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<button class="button pos" type="submit">Save attributes</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
2015-08-31 18:43:28 +08:00
|
|
|
</div>
|
2016-03-13 21:30:47 +08:00
|
|
|
@include('partials/image-manager', ['imageType' => 'gallery', 'uploaded_to' => $page->id])
|
2015-07-15 05:34:31 +08:00
|
|
|
|
2015-07-13 04:31:15 +08:00
|
|
|
@stop
|