metropolis/frontend/src/components/itemDetails.hbs

62 lines
1.4 KiB
Handlebars

<table class='table is-fullwidth'>
<tbody>
<tr>
<th>name</th>
<td>{{name}}</td>
</tr>
<tr>
<th>notes</th>
<td>{{notes}}</td>
</tr>
<tr>
<th>ean13</th>
<td>{{ean13}}</td>
</tr>
<tr>
<th>ancestors</th>
<td>
{{#if ancestors}}
<table class='table is-striped is-narrow is-fullwidth'>
{{#each ancestors}}
<tr>
<th>{{name}}</th>
<td>{{ean13}}</td>
<td>
<button
class='item-open-details button is-light is-small'
data-id='{{ean13}}'
>details</button>
</td>
</tr>
{{/each}}
</table>
{{else}}
none
{{/if}}
</td>
</tr>
<tr>
<th>descendants</th>
<td>
{{#if descendants}}
<table class='table is-striped is-narrow is-fullwidth'>
{{#each descendants}}
<tr>
<th>{{name}}</th>
<td>{{ean13}}</td>
<td>
<button
class='item-open-details button is-light is-small'
data-id='{{ean13}}'
>details</button>
</td>
</tr>
{{/each}}
</table>
{{else}}
none
{{/if}}
</td>
</tr>
</tbody>
</table>