FIX: fix removing image after resaving page
This commit is contained in:
@@ -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