FEATURE #1523: add subpages for content
This commit is contained in:
@@ -35,5 +35,6 @@ return [
|
||||
'template' => 'Template of this page',
|
||||
'overview' => 'List of all content pages',
|
||||
'homepageSetup' => 'Homepage successfully set up.',
|
||||
'setHomepage' => 'Set page as homepage'
|
||||
'setHomepage' => 'Set page as homepage',
|
||||
'noParentPage' => ' -- No parent page -- '
|
||||
];
|
||||
@@ -9,6 +9,7 @@ return [
|
||||
'columnStatus' => 'Page visibility',
|
||||
'columnTemplate' => 'Template',
|
||||
'columnIs_homepage' => 'Homepage',
|
||||
'columnParentPage' => 'Parent page',
|
||||
'emptyValue' => '<em>none</em>',
|
||||
'changedFromTo' => 'Changed from <del>:from</del> to <ins>:to</ins>',
|
||||
'numOfChanges' => 'One change|:count changes',
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="columns large-12">
|
||||
<div class="columns large-6">
|
||||
<label>
|
||||
<select name="status">
|
||||
@foreach($contentStatuses as $status => $translation)
|
||||
@@ -41,6 +41,26 @@
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
<div class="column large-6">
|
||||
<label>
|
||||
<select name="parentPage">
|
||||
<option value="">@lang('admin/contents.noParentPage')</option>
|
||||
|
||||
@foreach($rootPages as $rootPage)
|
||||
<option value="{{$rootPage->id}}"
|
||||
@if(old('parent_page', $page->parent_id) == $rootPage->id) selected @endif>
|
||||
{{$rootPage->title}}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</label>
|
||||
|
||||
@if (isset($errors) && $errors->has('status'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('status') }}
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user