38 lines
1.2 KiB
PHP
38 lines
1.2 KiB
PHP
@extends('admin.layoutWithNavigation')
|
|
|
|
@section('pageHeading', $pageHeading)
|
|
|
|
@section('content')
|
|
|
|
@if(!count($templates))
|
|
<div class="alert alert-warning">
|
|
@lang('admin/contents.noTemplates')
|
|
</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 col-lg-6">
|
|
<button type="submit" class="btn btn-primary">@lang('admin/contents.save')</button>
|
|
</div>
|
|
|
|
@if ($historySize > 0)
|
|
@can('viewHistory', $page)
|
|
<div class="columns text-right col-lg-6">
|
|
<a class="btn btn-secondary"
|
|
href="{{route('content.history', ['id' => $page->id])}}">@lang('admin/contents.showHistory', ['count' => $historySize])</a>
|
|
</div>
|
|
@endcan
|
|
@endif
|
|
</div>
|
|
</form>
|
|
|
|
@stop
|
|
|
|
@section('javascripts')
|
|
@include('admin.snippets.ckEditor', ['textareaId' => 'pageContent'])
|
|
@stop |