2020-12-09 22:32:31 +03:00
|
|
|
{{#if this.error}}
|
|
|
|
<div class="failed flex items-start gh-members-upload-errorcontainer error">
|
|
|
|
<div class="mr2">{{svg-jar "warning" class="nudge-top--2 w4 h4 fill-red"}}</div>
|
|
|
|
<p class="ma0 pa0">{{this.error.message}}</p>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2022-02-08 16:56:19 +03:00
|
|
|
<div class="upload-form br3">
|
2020-12-09 22:32:31 +03:00
|
|
|
<section class="gh-image-uploader gh-members-import-uploader {{this.dragClass}}"
|
|
|
|
{{on "drop" this.drop}}
|
|
|
|
{{on "dragover" this.dragOver}}
|
|
|
|
{{on "dragleave" this.dragLeave}}
|
|
|
|
>
|
2022-02-11 14:07:13 +03:00
|
|
|
<GhFileInput @multiple={{false}} @alt={{this.labelText}} @action={{this.fileSelected}} @accept={{this.accept}} data-test-fileinput="members-csv">
|
2020-12-09 22:32:31 +03:00
|
|
|
<div class="flex flex-column items-center">
|
2022-02-08 16:56:19 +03:00
|
|
|
{{svg-jar "upload"}}
|
|
|
|
<div class="description">{{this.labelText}}</div>
|
2020-12-09 22:32:31 +03:00
|
|
|
</div>
|
|
|
|
</GhFileInput>
|
|
|
|
</section>
|
|
|
|
</div>
|