2020-12-09 22:32:31 +03:00
|
|
|
{{#if this.hasFileData}}
|
2022-02-11 14:07:13 +03:00
|
|
|
<GhFormGroup class="gh-members-import-mapping" data-test-csv-file-mapping>
|
2020-12-09 22:32:31 +03:00
|
|
|
<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}}
|
2022-09-16 11:45:47 +03:00
|
|
|
|
|
|
|
{{#if this.membersStats.memberCount}}
|
|
|
|
<p class="pt2">If an email address in your CSV matches an existing member, they will be updated with the mapped values.</p>
|
|
|
|
{{/if}}
|
2020-12-09 22:32:31 +03:00
|
|
|
|
|
|
|
<div class="mt6">
|
|
|
|
<label for="label-input"><span class="fw6 f8 dib mb1">Label these members</span></label>
|
2023-06-08 14:37:23 +03:00
|
|
|
<GhMemberLabelInput @labels={{this.labels}} @onChange={{this.updateLabels}} @disabled={{@disabled}} @triggerId="label-input" @renderInPlace={{true}} />
|
2020-12-09 22:32:31 +03:00
|
|
|
</div>
|
|
|
|
</GhFormGroup>
|
|
|
|
{{else}}
|
|
|
|
<div class="bg-whitegrey-l2 ba b--whitegrey br3 gh-image-uploader gh-members-import-spinner">
|
|
|
|
<GhLoadingSpinner />
|
|
|
|
</div>
|
|
|
|
{{/if}}
|