Added graphs and charts; Updated a lot of the collections for security and consistency; Updated all of the page to fix bugs and propagate fixes to all templates; Added the d3 library for graphing; Added a real ui for Measures and Venues.
This commit is contained in:
53
imports/ui/Graphs.html
Normal file
53
imports/ui/Graphs.html
Normal file
@@ -0,0 +1,53 @@
|
||||
<template name="Graphs">
|
||||
<div id="graphs">
|
||||
<label>Time</label>
|
||||
<select name="time">
|
||||
<option value="annual" selected>Annual</option>
|
||||
<option value="monthly">Monthly</option>
|
||||
<option value="weekly">Weekly</option>
|
||||
</select>
|
||||
<label>Options</label>
|
||||
<select name="options">
|
||||
<option value="none" selected>None</option>
|
||||
<option value="markets">Markets</option>
|
||||
<option value="types">Types</option>
|
||||
</select>
|
||||
<svg class="salesGraph"></svg>
|
||||
<div class="salesTable">
|
||||
<table class="table table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="year">Year</th>
|
||||
{{#if showTime "monthly"}}
|
||||
<th class="month">Month</th>
|
||||
{{/if}}
|
||||
{{#if showTime "weekly"}}
|
||||
<th class="week">Week</th>
|
||||
{{/if}}
|
||||
{{#if showOption "markets"}}
|
||||
<th class="market">Market</th>
|
||||
{{/if}}
|
||||
<th class="total">Total</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{#each sales}}
|
||||
<tr>
|
||||
<td>{{year}}</td>
|
||||
{{#if showTime "monthly"}}
|
||||
<td>{{month}}</td>
|
||||
{{/if}}
|
||||
{{#if showTime "weekly"}}
|
||||
<td>{{week}}</td>
|
||||
{{/if}}
|
||||
{{#if showOption "markets"}}
|
||||
<td>{{venue}}</td>
|
||||
{{/if}}
|
||||
<td>{{formatTotal total}}</td>
|
||||
</tr>
|
||||
{{/each}}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user