Show More
Commit Description:
update max_score / current_score to property use group filter
Commit Description:
update max_score / current_score to property use group filter
References:
File last commit:
Show/Diff file:
Action:
app/views/report/max_score.html.haml
| 54 lines
| 1.9 KiB
| text/x-haml
| HamlLexer
|
r593 | %h1 Maximum score | |||
r753 | = form_tag show_max_score_report_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 | ||||
r696 | = radio_button_tag 'users', 'all', (params[:users] == "all") | |||
r593 | All users | |||
.radio | ||||
%label | ||||
r696 | = radio_button_tag 'users', 'enabled', (params[:users] == "enabled") | |||
r593 | Only enabled users | |||
r802 | .radio | |||
%label | ||||
= radio_button_tag 'users', 'group', (params[:users] == "group") | ||||
Only users from this group | ||||
= select_tag "group_id", options_from_collection_for_select( Group.all, 'id','name',params[:group_id]), id: 'group_name',class: 'select2', style: 'width: 20em'; | ||||
r593 | .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" | |||