2020-06-19 20:42:09 +03:00
|
|
|
<table class="f8 gh-members-import-table ma0">
|
2020-06-18 08:47:04 +03:00
|
|
|
<thead>
|
2020-07-07 14:07:21 +03:00
|
|
|
<tr>
|
2020-07-07 14:29:44 +03:00
|
|
|
<th class="table-cell-field"><span class="f-small midgrey ttu fw5">Field</span></th>
|
|
|
|
<th class="table-cell-data">
|
2020-07-07 14:07:21 +03:00
|
|
|
<div class="flex items-center justify-between">
|
2020-07-09 15:42:29 +03:00
|
|
|
<span class="f-small midgrey ttu fw5 nudge-top--1">Sample data <span class="midlightgrey fw4">(#{{format-number this.currentRecord}})</span></span>
|
2020-07-07 14:07:21 +03:00
|
|
|
<div class="flex items-center bg-white br2 ml1 nr1 gh-members-import-datanav">
|
2020-07-08 13:23:02 +03:00
|
|
|
<a href="#" {{action "prev"}} class="pa1 flex items-center justify-center br b--whitegrey {{unless this.hasPrevRecord "o-30"}}" data-test-import-prev>{{svg-jar "arrow-left" class="w3 h3 fill-middarkgrey" }}</a>
|
|
|
|
<a href="#" {{action "next"}} class="pa1 flex items-center justify-center {{unless this.hasNextRecord "o-30"}}" data-test-import-next>{{svg-jar "arrow-right" class="w3 h3 fill-middarkgrey" }}</a>
|
2020-07-07 14:07:21 +03:00
|
|
|
</div>
|
2020-06-18 12:33:34 +03:00
|
|
|
</div>
|
2020-07-07 14:07:21 +03:00
|
|
|
</th>
|
2020-07-09 15:42:29 +03:00
|
|
|
<th><span class="f-small midgrey ttu fw5">Import as</span></th>
|
2020-07-07 14:07:21 +03:00
|
|
|
</tr>
|
2020-06-18 08:47:04 +03:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2020-07-03 07:54:21 +03:00
|
|
|
{{#each currentlyDisplayedData as |row|}}
|
2020-06-18 08:47:04 +03:00
|
|
|
<tr>
|
2020-07-07 14:29:44 +03:00
|
|
|
<td class="middarkgrey table-cell-field"><span>{{row.key}}</span></td>
|
|
|
|
<td class="middarkgrey table-cell-data {{unless row.value "empty-cell"}}"><span>{{row.value}}</span></td>
|
2020-12-09 22:32:31 +03:00
|
|
|
<td><span><GhMembersImportMappingInput @updateMapping={{this.updateMapping}} @mapFrom={{row.key}} @mapTo={{row.mapTo}} @disabled={{@disabled}} /></span></td>
|
2020-06-18 08:47:04 +03:00
|
|
|
</tr>
|
|
|
|
{{else}}
|
|
|
|
<tr>
|
2020-07-09 15:42:29 +03:00
|
|
|
<td colspan="3" class="gh-member-import-nodata"><span>No data found in the uploaded CSV.</span></td>
|
2020-06-18 08:47:04 +03:00
|
|
|
</tr>
|
2020-07-03 07:54:21 +03:00
|
|
|
{{/each}}
|
2020-06-18 08:47:04 +03:00
|
|
|
</tbody>
|
|
|
|
</table>
|