2019-10-04 12:33:10 +03:00
|
|
|
<header class="modal-header" data-test-modal="import-members">
|
|
|
|
<h1>
|
2019-12-13 17:20:29 +03:00
|
|
|
{{#if this.response}}
|
2019-10-04 14:55:52 +03:00
|
|
|
Import result
|
2019-10-04 12:33:10 +03:00
|
|
|
{{else}}
|
2019-10-04 14:55:52 +03:00
|
|
|
Import members
|
2019-10-04 12:33:10 +03:00
|
|
|
{{/if}}
|
|
|
|
</h1>
|
|
|
|
</header>
|
2020-05-28 19:11:21 +03:00
|
|
|
<a class="close" href="" role="button" title="Close" {{action "closeModal"}}>{{svg-jar "close"}}<span class="hidden">Close</span></a>
|
2019-10-04 12:33:10 +03:00
|
|
|
|
2019-10-04 14:55:52 +03:00
|
|
|
<div class="modal-body bg-whitegrey-l2 ba b--whitegrey br3">
|
2019-12-13 17:20:29 +03:00
|
|
|
{{#if this.response}}
|
2019-10-04 14:55:52 +03:00
|
|
|
<table class="gh-members-import-results">
|
2019-10-04 12:33:10 +03:00
|
|
|
<tr>
|
|
|
|
<td>Imported:</td>
|
2019-12-13 17:20:29 +03:00
|
|
|
<td align="left" data-test-text="import-members-imported">{{this.response.imported}}</td>
|
2019-10-04 12:33:10 +03:00
|
|
|
</tr>
|
2019-12-13 17:20:29 +03:00
|
|
|
{{#if this.response.duplicates}}
|
2019-10-04 12:33:10 +03:00
|
|
|
<tr>
|
|
|
|
<td>Duplicates:</td>
|
2019-12-13 17:20:29 +03:00
|
|
|
<td align="left" data-test-text="import-members-duplicates">{{this.response.duplicates}}</td>
|
2019-10-04 12:33:10 +03:00
|
|
|
</tr>
|
|
|
|
{{/if}}
|
2019-12-13 17:20:29 +03:00
|
|
|
{{#if this.response.invalid}}
|
2019-10-04 12:33:10 +03:00
|
|
|
<tr>
|
2019-10-04 14:55:52 +03:00
|
|
|
<td class="red">Invalid:</td>
|
2019-12-13 17:20:29 +03:00
|
|
|
<td align="left" data-test-text="import-members-invalid" class="red">{{this.response.invalid}}</td>
|
2019-10-04 12:33:10 +03:00
|
|
|
</tr>
|
|
|
|
{{/if}}
|
|
|
|
</table>
|
|
|
|
{{else}}
|
2020-01-16 18:14:03 +03:00
|
|
|
<GhFileUploader
|
|
|
|
@url={{this.uploadUrl}}
|
|
|
|
@paramName="membersfile"
|
|
|
|
@labelText="Select or drag-and-drop a CSV file."
|
|
|
|
@uploadStarted={{action "uploadStarted"}}
|
|
|
|
@uploadFinished={{action "uploadFinished"}}
|
|
|
|
@uploadSuccess={{action "uploadSuccess"}} />
|
2019-10-04 12:33:10 +03:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal-footer">
|
2019-12-13 17:20:29 +03:00
|
|
|
<button {{action "closeModal"}} disabled={{this.closeDisabled}} class="gh-btn" data-test-button="close-import-members">
|
|
|
|
<span>{{#if this.response}}Close{{else}}Cancel{{/if}}</span>
|
2019-10-04 12:33:10 +03:00
|
|
|
</button>
|
|
|
|
</div>
|