2015-11-18 13:50:48 +03:00
|
|
|
<div class="modal-body">
|
2016-02-26 16:25:47 +03:00
|
|
|
{{#if url}}
|
|
|
|
<div class="gh-image-uploader --with-image">
|
|
|
|
<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')
|
|
|
|
onInput=(action (mut newUrl))
|
|
|
|
}}
|
2016-02-26 16:25:47 +03:00
|
|
|
{{/if}}
|
2015-11-18 13:50:48 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button {{action "closeModal"}} class="btn btn-default btn-minor">Cancel</button>
|
|
|
|
{{#gh-spin-button action="confirm" class="btn btn-blue right js-button-accept" submitting=submitting}}Save{{/gh-spin-button}}
|
|
|
|
</div>
|