FIX: fix removing image after resaving page
This commit is contained in:
+569
-564
File diff suppressed because it is too large
Load Diff
@@ -53,5 +53,6 @@ return [
|
||||
'status' => 'Status',
|
||||
'moduleName' => 'Module',
|
||||
'actions' => 'Actions',
|
||||
'invalidTemplateSelected' => 'Invalid template selected! This page cannot be rendered!'
|
||||
'invalidTemplateSelected' => 'Invalid template selected! This page cannot be rendered!',
|
||||
'deleteTitlePhoto' => 'Delete title photo'
|
||||
];
|
||||
@@ -1,7 +1,14 @@
|
||||
@if($page->title_photo)
|
||||
<div class="row">
|
||||
<div class="col-lg-12 title-photo text-center">
|
||||
<img src="{{config('app.upload_url')}}/{{$page->title_photo}}" alt="" />
|
||||
<div id="titlePhotoContainer"
|
||||
class="col-lg-4 col-lg-offset-4 col-md-6 col-md-offset-3 col-sm-12 title-photo text-center">
|
||||
<input type="hidden" id="existingTitlePhoto" value="{{$page->title_photo}}" name="existingTitlePhoto">
|
||||
<p><img src="{{config('app.upload_url')}}/{{$page->title_photo}}" alt="" /></p>
|
||||
<p>
|
||||
<a href="javascript:void(0)" id="removeTitlePhoto" class="btn btn-warning" data-toggle="tooltip"
|
||||
title="@lang('admin/contents.deleteTitlePhoto')"><i
|
||||
class="fa fa-trash"></i></a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user