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>
|
2017-04-14 19:22:14 +03:00
|
|
|
<a class="image-cancel" title="Delete" {{action 'removeImage'}}>
|
|
|
|
{{inline-svg "trash"}}
|
2016-02-26 16:25:47 +03:00
|
|
|
<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-07-31 12:44:26 +03:00
|
|
|
uploadStarted=(action 'isUploading')
|
|
|
|
uploadFinished=(action 'isUploading')
|
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-07-31 12:44:26 +03:00
|
|
|
{{#if _isUploading}}
|
|
|
|
<button class="gh-btn gh-btn-blue right gh-btn-icon disabled"><span>Save</span></button>
|
|
|
|
{{else}}
|
|
|
|
{{gh-task-button task=uploadImage class="gh-btn gh-btn-blue right gh-btn-icon" data-test-modal-accept-button=true}}
|
|
|
|
{{/if}}
|
2017-01-26 14:17:34 +03:00
|
|
|
</div>
|