38 lines
1.1 KiB
HTML
38 lines
1.1 KiB
HTML
<template name="Products">
|
|
<div id="products">
|
|
<div class="grid">
|
|
<div class="dataTable">
|
|
<table class="table table-striped table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th>Name {{>ProductSearch columnName='name'}}</th>
|
|
<th>Tags {{>ProductSearch columnName='tags'}}</th>
|
|
<th>Aliases {{>ProductSearch columnName='aliases'}}</th>
|
|
<th>Measures {{>ProductSearch columnName='measures' collectionQueryColumnName='name' collection='Measures' collectionResultColumnName='_id'}}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{#each products}}
|
|
{{> Product}}
|
|
{{/each}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<template name="Product">
|
|
<tr>
|
|
<td class="tdLarge noselect nonclickable left">{{name}}</td>
|
|
<td class="tdLarge noselect nonclickable left">{{tags}}</td>
|
|
<td class="tdLarge noselect nonclickable left">{{aliases}}</td>
|
|
<td class="tdLarge noselect nonclickable left">{{measures}}</td>
|
|
</tr>
|
|
</template>
|
|
|
|
<template name="ProductSearch">
|
|
<div class="">
|
|
<input type="text" class="searchInput" placeholder="Filter..." value="{{searchValue}}"/>
|
|
</div>
|
|
</template> |