2015-07-12 20:31:15 +00:00
|
|
|
@extends('base')
|
|
|
|
|
|
|
|
@section('head')
|
2016-03-13 12:04:08 +00:00
|
|
|
<script src="/libs/tinymce/tinymce.min.js?ver=4.3.7"></script>
|
2015-07-12 20:31:15 +00:00
|
|
|
@stop
|
|
|
|
|
2015-08-31 10:43:28 +00:00
|
|
|
@section('body-class', 'flexbox')
|
|
|
|
|
2015-07-12 20:31:15 +00:00
|
|
|
@section('content')
|
|
|
|
|
2016-03-09 22:32:07 +00:00
|
|
|
<div class="flex-fill flex">
|
|
|
|
<form action="{{$page->getUrl()}}" data-page-id="{{ $page->id }}" method="POST" class="flex flex-fill">
|
2016-05-12 22:12:05 +00:00
|
|
|
@if(!isset($isDraft))
|
|
|
|
<input type="hidden" name="_method" value="PUT">
|
|
|
|
@endif
|
2015-08-31 10:43:28 +00:00
|
|
|
@include('pages/form', ['model' => $page])
|
|
|
|
</form>
|
2016-05-12 22:12:05 +00: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 10:43:28 +00:00
|
|
|
</div>
|
2016-03-13 13:30:47 +00:00
|
|
|
@include('partials/image-manager', ['imageType' => 'gallery', 'uploaded_to' => $page->id])
|
2015-07-14 21:34:31 +00:00
|
|
|
|
2015-07-12 20:31:15 +00:00
|
|
|
@stop
|