FEATURE: add page ordering
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
@extends('admin.layoutWithNavigation')
|
||||
|
||||
@section('pageHeading', trans('admin/contents.setOrder'))
|
||||
|
||||
@section('content')
|
||||
|
||||
@if (count($pages) > 0)
|
||||
<div class="card items" id="orderSetup">
|
||||
<div class="card-block">
|
||||
<form method="POST" enctype="multipart/form-data" class="form-inline"
|
||||
action="{{route('content.setOrder')}}">
|
||||
{!! csrf_field() !!}
|
||||
|
||||
<table>
|
||||
@foreach($pages as $page)
|
||||
@include('admin.content._partials.orderSetupRow')
|
||||
|
||||
@foreach($page->subpages as $subpage)
|
||||
@include('admin.content._partials.orderSetupRow', ['page' => $subpage, 'extraClass' => 'subpage'])
|
||||
@endforeach
|
||||
@endforeach
|
||||
</table>
|
||||
|
||||
|
||||
<button type="submit" class="btn btn-primary">@lang('admin/contents.save')</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="card-footer">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@else
|
||||
<div class="alert alert-info">
|
||||
@lang('admin/contents.noPagesAvailable')
|
||||
</div>
|
||||
@endif
|
||||
@endsection
|
||||
Reference in New Issue
Block a user