e7a8be81ef
no issue - nav menu had many unused CSS classes that were sometimes used for test selectors - `:contains` is not a native CSS selector so will cause issues when we switch to native test helpers
30 lines
1.3 KiB
Handlebars
30 lines
1.3 KiB
Handlebars
<section class="gh-canvas">
|
|
<header class="gh-canvas-header">
|
|
<h2 class="gh-canvas-title" data-test-screen-title>Subscribers <span style="font-weight:200;margin-left:10px;display:inline-block;" data-test-total-subscribers> ({{total}})</span></h2>
|
|
<div class="view-actions">
|
|
{{#link-to "subscribers.import" class="gh-btn gh-btn-hover-green" data-test-link="import-csv"}}<span>Import CSV</span>{{/link-to}}
|
|
<a href="#" {{action 'exportData'}} class="gh-btn gh-btn-hover-blue"><span>Export CSV</span></a>
|
|
{{#link-to "subscribers.new" class="gh-btn gh-btn-green" data-test-link="add-subscriber"}}<span>Add Subscriber</span>{{/link-to}}
|
|
</div>
|
|
</header>
|
|
|
|
<section class="view-container">
|
|
{{gh-subscribers-table
|
|
table=table
|
|
isLoading=isLoading
|
|
loadNextPage=(action 'loadNextPage')
|
|
sortByColumn=(action 'sortByColumn')
|
|
delete=(action 'deleteSubscriber')}}
|
|
</section>
|
|
</section>
|
|
|
|
{{#if subscriberToDelete}}
|
|
{{gh-fullscreen-modal "delete-subscriber"
|
|
model=subscriberToDelete
|
|
confirm=(action "confirmDeleteSubscriber")
|
|
close=(action "cancelDeleteSubscriber")
|
|
modifier="action wide"}}
|
|
{{/if}}
|
|
|
|
{{outlet}}
|