mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +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>
26 lines
1.1 KiB
Handlebars
26 lines
1.1 KiB
Handlebars
{{#if this.hasFileData}}
|
|
<GhFormGroup class="gh-members-import-mapping">
|
|
<div class="gh-members-import-mappingwrapper {{if (and this.error @showErrors) "error"}}">
|
|
<div class="gh-members-import-scrollarea">
|
|
<GhMembersImportTable
|
|
@data={{this.fileData}}
|
|
@setMapping={{this.setMapping}}
|
|
@disabled={{@disabled}} />
|
|
</div>
|
|
</div>
|
|
{{#if (and this.error @showErrors)}}
|
|
<p class="pt2 error">{{this.error.message}}</p>
|
|
{{/if}}
|
|
<p class="pt2">If an email address in your CSV matches an existing member, they will be updated with the mapped values.</p>
|
|
|
|
<div class="mt6">
|
|
<label for="label-input"><span class="fw6 f8 dib mb1">Label these members</span></label>
|
|
<GhMemberLabelInput @onChange={{this.updateLabels}} @disabled={{@disabled}} @triggerId="label-input" />
|
|
</div>
|
|
</GhFormGroup>
|
|
{{else}}
|
|
<div class="bg-whitegrey-l2 ba b--whitegrey br3 gh-image-uploader gh-members-import-spinner">
|
|
<GhLoadingSpinner />
|
|
</div>
|
|
{{/if}}
|