<p>
    Select a site:
    <select onchange={{action (mut siteId) value="target.value"}}>
        <option value="" selected={{eq siteId}}>(show all users)</option>
        {{#each siteNames as |site|}}
            <option value="{{site}}" selected={{eq siteId site}}>{{site}}</option>
        {{/each}}
    </select>
</p>

<table class="table">
    <thead>
    <tr>
        <th>userID</th>
        <th>Completed study?</th>
    </tr>
    </thead>
    <tbody>
        {{#each model as |account|}}
            <tr>
                <td>{{account.id}}</td>
                {{! Readability + some studies may have field undefined }}
                <td>{{if account.extra.hasCompletedStudy 'Yes' 'No'}}</td>
            </tr>
        {{/each}}
    </tbody>
</table>

<button class="btn-primary" {{action 'exportResults'}}>Export to CSV</button>

<p>
    Select a site:
    <select onchange={{action (mut siteId) value="target.value"}}>
        <option value="" selected={{eq siteId}}>(show all users)</option>
        {{#each siteNames as |site|}}
            <option value="{{site}}" selected={{eq siteId site}}>{{site}}</option>
        {{/each}}
    </select>
</p>

<table class="table">
    <thead>
    <tr>
        <th>userID</th>
        <th>Completed study?</th>
    </tr>
    </thead>
    <tbody>
        {{#each model as |account|}}
            <tr>
                <td>{{account.id}}</td>
                {{! Readability + some studies may have field undefined }}
                <td>{{if account.extra.hasCompletedStudy 'Yes' 'No'}}</td>
            </tr>
        {{else}}
            <tr><td>(no results found)</td><td></td></tr>
        {{/each}}
    </tbody>
</table>

<button class="btn-primary" {{action 'exportResults'}}>Export to CSV</button>

Add else condition if no results found; don't just show a blank table.
Add else condition if no results found; don't just show a blank table.

[#LEI-313]
