2015-11-18 13:50:48 +03:00
|
|
|
<div class="modal-body">
|
2016-02-26 16:25:47 +03:00
|
|
|
{{#if url}}
|
2016-09-24 12:10:08 +03:00
|
|
|
<div class="gh-image-uploader -with-image">
|
2016-02-26 16:25:47 +03:00
|
|
|
<div><img src={{url}}></div>
|
|
|
|
<a class="image-cancel icon-trash" title="Delete" {{action 'removeImage'}}>
|
|
|
|
<span class="hidden">Delete</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
2016-07-14 15:27:18 +03:00
|
|
|
{{gh-image-uploader
|
|
|
|
image=newUrl
|
|
|
|
saveButton=false
|
|
|
|
update=(action 'fileUploaded')
|
2017-01-26 14:17:34 +03:00
|
|
|
accept=model.accept
|
|
|
|
extensions=model.extensions
|
|
|
|
uploadUrl=model.uploadUrl
|
2016-07-14 15:27:18 +03:00
|
|
|
}}
|
2016-02-26 16:25:47 +03:00
|
|
|
{{/if}}
|
2015-11-18 13:50:48 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal-footer">
|
2017-02-16 22:50:05 +03:00
|
|
|
<button {{action "closeModal"}} class="gh-btn"><span>Cancel</span></button>
|
2017-04-07 18:23:45 +03:00
|
|
|
{{gh-task-button task=uploadImage class="gh-btn gh-btn-blue gh-btn-icon right" data-test-modal-accept-button=true}}
|
2017-01-26 14:17:34 +03:00
|
|
|
</div>
|