mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-18 16:01:40 +03:00
09a97779b2
refs https://github.com/TryGhost/Team/issues/1320 - fixed event handling in `gh-file-input` for test-initiated uploads - added `POST /members/upload/` API mock that emulates uploading a single member - it's enough for this particular test and can be expanded as needed - added acceptance test that does a simple 1-member, no Stripe, CSV upload with no mapping changes
21 lines
858 B
Handlebars
21 lines
858 B
Handlebars
{{#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}}
|
|
<div class="upload-form br3">
|
|
<section class="gh-image-uploader gh-members-import-uploader {{this.dragClass}}"
|
|
{{on "drop" this.drop}}
|
|
{{on "dragover" this.dragOver}}
|
|
{{on "dragleave" this.dragLeave}}
|
|
>
|
|
<GhFileInput @multiple={{false}} @alt={{this.labelText}} @action={{this.fileSelected}} @accept={{this.accept}} data-test-fileinput="members-csv">
|
|
<div class="flex flex-column items-center">
|
|
{{svg-jar "upload"}}
|
|
<div class="description">{{this.labelText}}</div>
|
|
</div>
|
|
</GhFileInput>
|
|
</section>
|
|
</div>
|