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>
|
2020-01-15 09:15:54 +00:00
|
|
|
{{#yield-slot name='header'}}{{yield}}{{/yield-slot}}
|
2018-10-19 15:17:02 +00:00
|
|
|
<th class="actions">Actions</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{#each items as |item index|}}
|
|
|
|
<tr data-test-tabular-row onclick={{action 'click'}}>
|
2020-01-15 09:15:54 +00:00
|
|
|
{{#yield-slot name='row'}}{{yield item index}}{{/yield-slot}}
|
2018-10-19 15:17:02 +00:00
|
|
|
<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>
|
2020-01-15 09:15:54 +00:00
|
|
|
{{#yield-slot name='details'}}
|
2018-10-19 15:17:02 +00:00
|
|
|
{{yield item index}}
|
|
|
|
{{/yield-slot}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|