FIX: fix removing image after resaving page

This commit is contained in:
Michal Kváček
2016-09-26 14:20:06 +02:00
parent 445f369ff2
commit 6868af609f
4 changed files with 585 additions and 568 deletions
@@ -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