Issue #1863 fixed
This commit is contained in:
parent
b4319e1f38
commit
1e73cc9bc8
|
|
@ -32,9 +32,11 @@
|
|||
</div>
|
||||
|
||||
<div class="page-action">
|
||||
<a href="{{ route('shop.cms.page', $page->translate($locale)['url_key']) }}" class="btn btn-lg btn-primary" target="_blank">
|
||||
{{ __('admin::app.cms.pages.preview') }}
|
||||
</a>
|
||||
@if ($page->translate($locale)))
|
||||
<a href="{{ route('shop.cms.page', $page->translate($locale)['url_key']) }}" class="btn btn-lg btn-primary" target="_blank">
|
||||
{{ __('admin::app.cms.pages.preview') }}
|
||||
</a>
|
||||
@endif
|
||||
|
||||
<button type="submit" class="btn btn-lg btn-primary">
|
||||
{{ __('admin::app.cms.pages.edit-btn-title') }}
|
||||
|
|
@ -51,7 +53,7 @@
|
|||
<div class="control-group" :class="[errors.has('{{$locale}}[page_title]') ? 'has-error' : '']">
|
||||
<label for="page_title" class="required">{{ __('admin::app.cms.pages.page-title') }}</label>
|
||||
|
||||
<input type="text" class="control" name="{{$locale}}[page_title]" v-validate="'required'" value="{{ old($locale)['page_title'] ?? $page->translate($locale)['page_title'] }}" data-vv-as=""{{ __('admin::app.cms.pages.page-title') }}"">
|
||||
<input type="text" class="control" name="{{$locale}}[page_title]" v-validate="'required'" value="{{ old($locale)['page_title'] ?? ($page->translate($locale)['page_title'] ?? '') }}" data-vv-as=""{{ __('admin::app.cms.pages.page-title') }}"">
|
||||
|
||||
<span class="control-error" v-if="errors.has('{{$locale}}[page_title]')">@{{ errors.first('{!!$locale!!}[page_title]') }}</span>
|
||||
</div>
|
||||
|
|
@ -76,7 +78,7 @@
|
|||
<label for="html_content" class="required">{{ __('admin::app.cms.pages.content') }}</label>
|
||||
|
||||
<textarea type="text" class="control" id="content" name="{{$locale}}[html_content]" v-validate="'required'" data-vv-as=""{{ __('admin::app.cms.pages.content') }}"">
|
||||
{{ old($locale)['html_content'] ?? $page->translate($locale)['html_content'] }}
|
||||
{{ old($locale)['html_content'] ?? ($page->translate($locale)['html_content'] ?? '') }}
|
||||
</textarea>
|
||||
|
||||
<span class="control-error" v-if="errors.has('{{$locale}}[html_content]')">@{{ errors.first('{!!$locale!!}[html_content]') }}</span>
|
||||
|
|
@ -89,13 +91,13 @@
|
|||
<div class="control-group">
|
||||
<label for="meta_title">{{ __('admin::app.cms.pages.meta_title') }}</label>
|
||||
|
||||
<input type="text" class="control" name="{{$locale}}[meta_title]" value="{{ old($locale)['meta_title'] ?? $page->translate($locale)['meta_title'] }}">
|
||||
<input type="text" class="control" name="{{$locale}}[meta_title]" value="{{ old($locale)['meta_title'] ?? ($page->translate($locale)['meta_title'] ?? '') }}">
|
||||
</div>
|
||||
|
||||
<div class="control-group" :class="[errors.has('{{$locale}}[url_key]') ? 'has-error' : '']">
|
||||
<label for="url-key" class="required">{{ __('admin::app.cms.pages.url-key') }}</label>
|
||||
|
||||
<input type="text" class="control" name="{{$locale}}[url_key]" v-validate="'required'" value="{{ old($locale)['url_key'] ?? $page->translate($locale)['url_key'] }}" data-vv-as=""{{ __('admin::app.cms.pages.url-key') }}"">
|
||||
<input type="text" class="control" name="{{$locale}}[url_key]" v-validate="'required'" value="{{ old($locale)['url_key'] ?? ($page->translate($locale)['url_key'] ?? '') }}" data-vv-as=""{{ __('admin::app.cms.pages.url-key') }}"">
|
||||
|
||||
<span class="control-error" v-if="errors.has('{{$locale}}[url_key]')">@{{ errors.first('{!!$locale!!}[url_key]') }}</span>
|
||||
</div>
|
||||
|
|
@ -104,7 +106,7 @@
|
|||
<label for="meta_keywords">{{ __('admin::app.cms.pages.meta_keywords') }}</label>
|
||||
|
||||
<textarea type="text" class="control" name="{{$locale}}[meta_keywords]">
|
||||
{{ old($locale)['meta_keywords'] ?? $page->translate($locale)['meta_keywords'] }}
|
||||
{{ old($locale)['meta_keywords'] ?? ($page->translate($locale)['meta_keywords'] ?? '') }}
|
||||
</textarea>
|
||||
</div>
|
||||
|
||||
|
|
@ -112,7 +114,7 @@
|
|||
<label for="meta_description">{{ __('admin::app.cms.pages.meta_description') }}</label>
|
||||
|
||||
<textarea type="text" class="control" name="{{$locale}}[meta_description]">
|
||||
{{ old($locale)['meta_description'] ?? $page->translate($locale)['meta_description'] }}
|
||||
{{ old($locale)['meta_description'] ?? ($page->translate($locale)['meta_description'] ?? '') }}
|
||||
</textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue