90 lines
3.2 KiB
PHP
Executable File
90 lines
3.2 KiB
PHP
Executable File
<div class="row">
|
|
<div class="col-lg-6">
|
|
<input type="text" name="title" required class="form-control slug-source"
|
|
placeholder="@lang('admin/contents.field_title')"
|
|
value="{{old('title', $page->title)}}" />
|
|
|
|
@include('admin.snippets.hasError', ['field' => 'title'])
|
|
</div>
|
|
<div class="col-lg-4">
|
|
|
|
<input type="text" name="url" required class="form-control slug-target"
|
|
placeholder="@lang('admin/contents.field_url')"
|
|
value="{{old('url', $page->url)}}" />
|
|
|
|
@include('admin.snippets.hasError', ['field' => 'url'])
|
|
</div>
|
|
<div class="col-lg-2 text-center">
|
|
<label>
|
|
<input class="checkbox" value="1" id="lockUrl"
|
|
@if(old('lockUrl') || ($page->id > 0 && \Illuminate\Support\Str::slug($page->title) != $page->url)) checked
|
|
@endif name="lockUrl" type="checkbox">
|
|
<span>@lang('admin/contents.lockUrl')</span>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-lg-6">
|
|
<select class="form-control" name="status">
|
|
@foreach($contentStatuses as $status => $translation)
|
|
<option value="{{$status}}" @if(old('status', $page->status) == $status) selected @endif>
|
|
{{$translation}}
|
|
</option>
|
|
@endforeach
|
|
</select>
|
|
|
|
@include('admin.snippets.hasError', ['field' => 'status'])
|
|
</div>
|
|
<div class="col-lg-4">
|
|
<select class="form-control" name="parentId">
|
|
<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>
|
|
@endforeach
|
|
</select>
|
|
|
|
@include('admin.snippets.hasError', ['field' => 'parentPage'])
|
|
</div>
|
|
|
|
<div class="col-lg-2 text-center">
|
|
<label>
|
|
<input class="checkbox" value="1"
|
|
@if(old('allowComments', isset($page->moduleSettings->allowComments) ? $page->moduleSettings->allowComments : true)) checked
|
|
@endif name="allowComments" type="checkbox">
|
|
<span>@lang('article::article.allowComments')</span>
|
|
</label>
|
|
</div>
|
|
|
|
@if($module->support_categories && count($categories))
|
|
<div class="col-lg-12">
|
|
<select class="form-control" name="categoryId">
|
|
<option value="">@lang('admin/contents.noCategory')</option>
|
|
@foreach($categories as $category)
|
|
<option value="{{$category->id}}"
|
|
@if($category->id == old('categoryId', $page->categoryId)) selected @endif>
|
|
{{str_repeat(' - ', $category->real_depth)}} {{$category->name}}
|
|
</option>
|
|
@endforeach
|
|
</select>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<textarea name="pageContent" id="pageContent" class="wysiwyg-editor">
|
|
{{old('pageContent', $page->pageContent)}}
|
|
</textarea>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|