FEATURE: allow infinite subpages depth

This commit is contained in:
Michal Kváček
2018-04-11 22:36:25 +02:00
parent ae29c49acf
commit b91b80debb
3 changed files with 10 additions and 5 deletions
@@ -43,10 +43,7 @@
<option value="">@lang('admin/contents.noParentPage')</option>
@foreach($rootPages as $rootPage)
<option value="{{$rootPage->id}}"
@if(old('parentId', $page->parentId) == $rootPage->id) selected @endif>
{{$rootPage->title}}
</option>
@include('admin.content._partials.subpages', ['optionPage' => $rootPage, 'prefix' => ''])
@endforeach
</select>