2018-10-19 15:17:02 +00:00
|
|
|
{{yield}}
|
2019-05-01 18:09:29 +00:00
|
|
|
<table class="with-details has-actions">
|
2018-10-19 15:17:02 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
{{#yield-slot 'header'}}{{yield}}{{/yield-slot}}
|
|
|
|
<th class="actions">Actions</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{#each items as |item index|}}
|
|
|
|
<tr data-test-tabular-row onclick={{action 'click'}}>
|
|
|
|
{{#yield-slot 'row'}}{{yield item index}}{{/yield-slot}}
|
|
|
|
<td class="actions">
|
2019-04-08 10:17:30 +00:00
|
|
|
<label for={{concat inputId index}}><span>Show details</span></label>
|
2018-10-19 15:17:02 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="3">
|
2019-05-01 18:09:29 +00:00
|
|
|
<input type="checkbox" checked={{ not (is-empty item.closed) }} value={{index}} name={{name}} id={{concat inputId index}} onchange={{action 'change' item items}} />
|
2018-10-19 15:17:02 +00:00
|
|
|
<div>
|
2019-04-08 10:17:30 +00:00
|
|
|
<label for={{concat inputId index}}><span>Hide details</span></label>
|
2018-10-19 15:17:02 +00:00
|
|
|
<div>
|
|
|
|
{{#yield-slot 'details'}}
|
|
|
|
{{yield item index}}
|
|
|
|
{{/yield-slot}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|