FEATURE: add saving templates to static pages
This commit is contained in:
@@ -27,6 +27,9 @@ return [
|
||||
'pageDeleted' => 'Page :name (:url) successfully deleted.',
|
||||
'nothingToEdit' => 'You did not submit any changes. Nothing was edited.',
|
||||
'successfullyEdited' => 'Edit successfull',
|
||||
'showHistory' => 'History (:count)'
|
||||
'showHistory' => 'History (:count)',
|
||||
'templatePath' => 'Static pages',
|
||||
'appearance' => 'Appearance',
|
||||
'template' => 'Template of this page'
|
||||
|
||||
];
|
||||
@@ -24,6 +24,9 @@
|
||||
<li class="tabs-title">
|
||||
<a href="#publication">@lang('staticpages::admin.publicationOptions')</a>
|
||||
</li>
|
||||
<li class="tabs-title">
|
||||
<a href="#appearance">@lang('staticpages::admin.appearance')</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="tabs-content" data-tabs-content="static-page-controls">
|
||||
@@ -141,6 +144,31 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tabs-panel" id="appearance">
|
||||
<div class="row">
|
||||
<div class="columns large-12">
|
||||
<label>
|
||||
@lang('staticpages::admin.template')
|
||||
|
||||
<select name="template">
|
||||
@foreach($templates as $template)
|
||||
<option value="{{$template->template_name}}">
|
||||
{{$template->name}}
|
||||
@if($template->description != '')
|
||||
- {{str_limit($template->description, 60)}}
|
||||
@endif
|
||||
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -23,6 +23,9 @@
|
||||
<li class="tabs-title">
|
||||
<a href="#publication">@lang('staticpages::admin.publicationOptions')</a>
|
||||
</li>
|
||||
<li class="tabs-title">
|
||||
<a href="#appearance">@lang('staticpages::admin.appearance')</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="tabs-content" data-tabs-content="static-page-controls">
|
||||
@@ -57,9 +60,9 @@
|
||||
<label>
|
||||
<select name="status">
|
||||
@foreach($contentStatuses as $status => $translation)
|
||||
<option value="{{$status}}" @if($selectedStatus== $status) selected @endif>
|
||||
{{$translation}}
|
||||
</option>
|
||||
<option value="{{$status}}" @if($selectedStatus== $status) selected @endif>
|
||||
{{$translation}}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</label>
|
||||
@@ -141,6 +144,37 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tabs-panel" id="appearance">
|
||||
<div class="row">
|
||||
<div class="columns large-12">
|
||||
<label>
|
||||
@lang('staticpages::admin.template')
|
||||
|
||||
<select name="template">
|
||||
@foreach($templates as $template)
|
||||
<option value="{{$template->template_name}}">
|
||||
{{$template->name}}
|
||||
@if($template->description != '')
|
||||
- {{str_limit($template->description, 60)}}
|
||||
@endif
|
||||
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
|
||||
@if (isset($errors) && $errors->has('template'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('template') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
@@ -154,6 +188,6 @@
|
||||
<script src="{{asset('../resources/assets/js/vendor/ckeditor/ckeditor.js')}}"></script>
|
||||
|
||||
<script type="application/javascript">
|
||||
CKEDITOR.replace('pageContent');
|
||||
CKEDITOR.replace ('pageContent');
|
||||
</script>
|
||||
@stop
|
||||
Reference in New Issue
Block a user