queue added

This commit is contained in:
Yurun Chen
2024-12-06 15:11:16 +11:00
parent a6ee2d6889
commit 163a3cffc4
2 changed files with 102 additions and 17 deletions

View File

@@ -95,7 +95,7 @@
<script id="category-template" type="text/x-handlebars-template">
<div>
<strong>Category:</strong><br>
<select class="form-select selectwidthauto" multiple aria-label="multiple select" name="category" >
<select oninput="global_component.update_listbox(1)" class="form-select selectwidthauto" aria-label="multiple select" id="category_sel" multiple="multiple" size="5">
{{#each this}}
<option>{{this.[1]}}</option>
{{/each}}
@@ -113,9 +113,9 @@
<script id="subcategory-template" type="text/x-handlebars-template">
<div>
<strong>Subcategory:</strong><br>
<select class="form-select selectwidthauto" multiple aria-label="multiple select" name="subcat_sel" >
<select class="form-select selectwidthauto" multiple aria-label="multiple select" id="subcat_sel" >
{{#each this}}
<option>{{this.[1]}}</option>
<option>{{this}}</option>
{{/each}}
</select>
</div>
@@ -131,7 +131,35 @@
<div class="col-8">
<div class="col-12">
<!--this is gonna be the selected values-->
<div class="row">hey</div>
<div class="row">
<div id="filter_queue"></div>
<!--Template-->
<script id="filter_queue_template" type="text/x-handlebars-template">
<div>
<h5>Queries:</h5>
<br>
<table class="table">
<thead class="thead-dark">
<tr>
<th scope="col">Subdiv/LGA</th>
<th scope="col">Category</th>
<th scope="col">Subcategory</th>
</tr>
</thead>
<tbody>
{{#each this}}
<tr>
<td>{{this.subdivs}} {{this.lgas}}</td>
<td>{{this.categorys}}</td>
<td>{{this.subcategorys}}</td>
</tr>
{{/each}}
</tbody>
</table>
<h5>Multiple choices in a given column will be AVGed.</h5>
</div>
</script>
</div>
<div class="row">
<div>
<canvas id="chart_canvas"></canvas>