Show More
Commit Description:
Merge pull request #17 from nattee/master...
Commit Description:
Merge pull request #17 from nattee/master
upgrade to current working snapshot
References:
File last commit:
Show/Diff file:
Action:
app/views/report/max_score.html.haml
| 49 lines
| 1.5 KiB
| text/x-haml
| HamlLexer
|
r593 | %h1 Maximum score | |||
r594 | = form_tag report_show_max_score_path | |||
r593 | .row | |||
.col-md-4 | ||||
.panel.panel-primary | ||||
.panel-heading | ||||
Problems | ||||
.panel-body | ||||
r594 | %p | |||
Select problem(s) that we wish to know the score. | ||||
= label_tag :problem_id, "Problems" | ||||
= select_tag 'problem_id[]', | ||||
r607 | options_for_select(Problem.all.collect {|p| ["[#{p.name}] #{p.full_name}", p.id]},params[:problem_id]), | |||
r594 | { class: 'select2 form-control', multiple: "true" } | |||
r593 | .col-md-4 | |||
.panel.panel-primary | ||||
.panel-heading | ||||
Submission range | ||||
.panel-body | ||||
r594 | %p | |||
Input minimum and maximum range of submission ID that should be included. A blank value for min and max means -1 and infinity, respectively. | ||||
r593 | .form-group | |||
r594 | = label_tag :from, "Min" | |||
r647 | = text_field_tag 'from_id', @since_id, class: "form-control" | |||
r593 | .form-group | |||
r594 | = label_tag :from, "Max" | |||
r647 | = text_field_tag 'to_id', @until_id, class: "form-control" | |||
r593 | .col-md-4 | |||
.panel.panel-primary | ||||
.panel-heading | ||||
Users | ||||
.panel-body | ||||
.radio | ||||
%label | ||||
= radio_button_tag 'users', 'all', true | ||||
All users | ||||
.radio | ||||
%label | ||||
= radio_button_tag 'users', 'enabled' | ||||
Only enabled users | ||||
.row | ||||
.col-md-12 | ||||
r607 | = button_tag 'Show', class: "btn btn-primary btn-large", value: "show" | |||
= button_tag 'Download CSV', class: "btn btn-primary btn-large", value: "download" | ||||
r594 | ||||
- if @scorearray | ||||
%h2 Result | ||||
r601 | =render "score_table" | |||