Files
PetitTetonMeteor/imports/ui/Pricing.html

54 lines
1.7 KiB
HTML

<template name="Pricing">
<div id="pricing">
<div class="controls">
<div class="controlGroup floatRight">
<label class='controlLabel'>New Price: </label>
<input type="number" class="price" name="price" min="0" data-schema-key='currency' value="{{price}}" required>
<input type="button" class="btn btn-success applyButton" value="Apply">
<!--<span class="toggleUpdateHistory toggleButton clickable">Set Prev</span>-->
<div class="controlGroup outline">
<span class="controlLabel">Set Previous:</span>
<div class="toggleUpdateHistory checkbox checkbox-slider--b-flat">
<label>
<input type="checkbox" name="setPrevious" checked><span></span>
</label>
</div>
<label class='controlLabel'>Effective: </label>
<input type="date" class="form-control" name="date" data-schema-key='date' required>
</div>
</div>
<div class="controlGroup outline floatLeft" style="position: relative; top: 12px">
<label class='controlLabel'>Selected Measure: </label>
<select name="measures">
{{#each measures}}
<option value="{{_id}}">{{name}}</option>
{{/each}}
</select>
</div>
</div>
<table>
<thead>
<tr>
<th class="name">Name</th>
<th class="current">Current</th>
<th class="changeDate">Change Date</th>
<th class="previous">Previous</th>
</tr>
</thead>
<tbody>
{{#each product}}
{{> PricingForProduct}}
{{/each}}
</tbody>
</table>
</div>
</template>
<template name="PricingForProduct">
<tr class="clickable noselect">
<td>{{name}}</td>
<td>{{currentPrice}}</td>
<td>{{priceChangeDate}}</td>
<td>{{previousPrice}}</td>
</tr>
</template>