61 lines
2.9 KiB
HTML
61 lines
2.9 KiB
HTML
<template name="SaleDuplicates">
|
|
<div id="saleDuplicates">
|
|
<div class="controls">
|
|
<div class="pageControls">
|
|
<input class="duplicateScan btn btn-info" type="button" value="Scan For Duplicates"/>
|
|
</div>
|
|
<div class="tableControls">
|
|
<span class="controlLabel">Show Hidden</span>
|
|
<div class="toggleShowHidden checkbox checkbox-slider--b-flat">
|
|
<label>
|
|
<input type="checkbox" name="showHidden" {{showHidden}}><span></span>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="listRow">
|
|
<div class="listCell">
|
|
<div class="tableContainer">
|
|
<table class="table table-striped table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th class="amount noselect nonclickable">Duplicates</th>
|
|
<th class="amount noselect nonclickable">Amount</th>
|
|
<th class="product noselect nonclickable">Product <br/>{{>SaleDuplicateSearch columnName='productName' width='90%'}}</th>
|
|
<th class="price noselect nonclickable">Price</th>
|
|
<th class="measure noselect nonclickable">Measure</th>
|
|
<th class="saleDate noselect nonclickable">Date (Week)</th>
|
|
<th class="createdDate noselect nonclickable">Created On</th>
|
|
<th class="venue noselect nonclickable">Venue</th>
|
|
<th class="actions noselect nonclickable">Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{#each sales}}
|
|
{{> SaleDuplicate}}
|
|
{{/each}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<template name="SaleDuplicate">
|
|
<tr class="{{duplicateClasses}}">
|
|
<td class="tdLarge noselect nonclickable center">{{duplicateCount}}</td>
|
|
<td class="tdLarge noselect nonclickable center">{{amount}}</td>
|
|
<td class="tdLarge noselect nonclickable left">{{productName}}</td>
|
|
<td class="tdLarge noselect nonclickable left">{{formatPrice price}}{{#if showTotalPrice amount}} ({{formatTotalPrice price amount}}){{/if}}</td>
|
|
<td class="tdLarge noselect nonclickable left">{{measureName}}</td> <!-- measureName measureId -->
|
|
<td class="tdLarge noselect nonclickable left">{{formatDateAndWeek date}}</td>
|
|
<td class="tdLarge noselect nonclickable left">{{formatDateTime createdAt}}</td>
|
|
<td class="tdLarge noselect nonclickable left">{{venueName}}</td>
|
|
<td class="tdLarge noselect left actions"><i class="fa fa-check fa-lg clickable ignoreDuplicatesButton {{#if ignoreDuplicates}}hidden{{/if}}" title="Ignore All Duplicates" aria-hidden="true"></i> <i class="fa fa-minus-circle fa-lg clickable removeAllDuplicatesButton" title="Remove All Duplicates" aria-hidden="true"></i> <span class="clickable removeOneDuplicateButton" title="Remove One Duplicate"><i class="fa fa-minus-circle fa-lg" aria-hidden="true"></i><sup>1</sup></span></td>
|
|
</tr>
|
|
</template>
|
|
|
|
<template name="SaleDuplicateSearch">
|
|
<input type="text" class="searchInput" placeholder="Filter..." value="{{searchValue}}" style="padding-right: 10px; width: {{width}}"/>
|
|
</template> |