Files
game-data/views/reports/index.erb
Gregory Ballantine 886f566ae2
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/tag/woodpecker Pipeline failed
Started work to move the CSS framework to Bootstrap 5
2025-07-25 17:44:25 -04:00

36 lines
1.2 KiB
Plaintext

<div class="row">
<form class="col-12" action="/reports" method="post">
<div class="grid-x grid-margin-x">
<select class="col-12 col-md-6 form-select" id="report_type" name="report_type" disabled>
<option value="benchmark">Benchmark</option>
<option value="test">Test</option>
</select>
<select class="col-12 col-md-6 form-select" 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="col-12 form-select" id="report_compare" name="report_compare[]" multiple>
<% tests.each do |t| %>
<option value="<%= t.id %>"><%= t.name %></option>
<% end %>
</select>
</div>
<input type="submit" class="btn btn-primary" 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>