mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 15:12:58 +03:00
f068e40723
no refs depends on https://github.com/TryGhost/Ghost/pull/12472 The members CSV importer gets an overhaul and works with new importer module in members service, performing the import in a background job when the import will take too long to complete in a reasonable time and send an email with data on completion. Also includes updated CSV mapping UI and error handling to allow easier import from different type of exports. Co-authored-by: Fabien O'Carroll <fabien@allou.is> Co-authored-by: Peter Zimon <zimo@ghost.org>
21 lines
897 B
Handlebars
21 lines
897 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 bg-whitegrey-l2 ba b--whitegrey 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}}>
|
|
<div class="flex flex-column items-center">
|
|
{{svg-jar "upload" class="w9 h9 mb1 stroke-midgrey"}}
|
|
<div class="description midgrey">{{this.labelText}}</div>
|
|
</div>
|
|
</GhFileInput>
|
|
</section>
|
|
</div>
|