game-data/views/reports/index.erb

36 lines
1.2 KiB
Plaintext
Raw Normal View History

<div class="grid-x grid-margin-x">
<form class="cell small-12" action="/reports" method="post">
<div class="grid-x grid-margin-x">
<select class="cell medium-6" id="report_type" name="report_type" disabled>
<option value="benchmark">Benchmark</option>
<option value="hardware">Hardware</option>
</select>
<select class="cell medium-6" id="report_choice" name="report_choice">
<% benchmarks.each do |b| %>
<option value="<%= b.id %>"><%= b.name %></option>
<% end %>
</select>
</div>
<div class="grid-x grid-margin-x">
<select class="cell small-12" id="report_compare" name="report_compare[]" multiple>
<% hardware.each do |h| %>
<option value="<%= h.id %>"><%= h.name %></option>
<% end %>
</select>
</div>
<input type="submit" class="button" id="generate_button" value="Generate">
<a href="#" class="button" id="download_button" disabled>Download</a>
<div class="grid-x grid-margin-x">
<canvas id="chart_canvas" width="100%" height="25"></canvas>
</div>
</form>
</div>
<!-- load the chart.js library -->
<!-- load chart functionality -->
<script src="/js/reports.js" charset="utf-8"></script>