33 lines
1.0 KiB
PHP
33 lines
1.0 KiB
PHP
@if (session('success'))
|
|
<div data-alert class="callout success">
|
|
<strong>{{ session('success') }}</strong>
|
|
</div>
|
|
@endif
|
|
|
|
@if (session('error'))
|
|
<div data-alert class="callout alert">
|
|
<strong>{{ session('error') }}</strong>
|
|
</div>
|
|
@endif
|
|
|
|
<form method="POST" enctype="multipart/form-data" action="{{route('content.editPost', ['pageId' => $page->id])}}">
|
|
{!! csrf_field() !!}
|
|
|
|
@include('admin.content.formInputs')
|
|
|
|
<div class="row">
|
|
<div class="columns large-6">
|
|
<button type="submit" class="button success">@lang('admin/contents.edit', ['name' => $page->title])</button>
|
|
</div>
|
|
|
|
@if ($historySize > 0)
|
|
<div class="columns text-right large-6">
|
|
<a class="button warning" href="{{route('content.history', ['id' => $page->id])}}">@lang('admin/contents.showHistory', ['count' => $historySize])</a>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</form>
|
|
|
|
@section('javascripts')
|
|
@include('admin.snippets.ckEditor', ['textareaId' => 'pageContent'])
|
|
@stop |