2016-02-26 16:25:47 +03:00
|
|
|
{{#if image}}
|
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={{image}}></div>
|
|
|
|
<a class="image-cancel icon-trash" title="Delete" {{action remove}}>
|
|
|
|
<span class="hidden">Delete</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
{{gh-image-uploader
|
|
|
|
text=text
|
2016-07-24 12:19:49 +03:00
|
|
|
altText=altText
|
2016-02-26 16:25:47 +03:00
|
|
|
update=(action 'update')
|
|
|
|
onInput=(action 'onInput')
|
|
|
|
uploadStarted=(action 'uploadStarted')
|
|
|
|
uploadFinished=(action 'uploadFinished')
|
2016-07-24 12:19:49 +03:00
|
|
|
formChanged=(action 'formChanged')
|
|
|
|
}}
|
2016-02-26 16:25:47 +03:00
|
|
|
{{/if}}
|