Show More
Commit Description:
fix destroy button link...
Commit Description:
fix destroy button link (grafted from b75d9cfe4ee0550d574de4c4836ecc36c9354c53)
File last commit:
Show/Diff file:
Action:
app/views/report/max_score.html.haml | 49 lines | 1.4 KiB | text/x-haml | HamlLexer |
- fix authorization for viewing submission, only admin can view all problems all the time, normal user depends on right.view_submission and problem.available?...
r593 %h1 Maximum score
- update show max score
r594 = form_tag report_show_max_score_path
- fix authorization for viewing submission, only admin can view all problems all the time, normal user depends on right.view_submission and problem.available?...
r593 .row
.col-md-4
.panel.panel-primary
.panel-heading
Problems
.panel-body
- update show max score
r594 %p
Select problem(s) that we wish to know the score.
= label_tag :problem_id, "Problems"
= select_tag 'problem_id[]',
options_for_select(Problem.all.collect {|p| ["[#{p.name}] #{p.full_name}", p.id]}),
{ class: 'select2 form-control', multiple: "true" }
- fix authorization for viewing submission, only admin can view all problems all the time, normal user depends on right.view_submission and problem.available?...
r593 .col-md-4
.panel.panel-primary
.panel-heading
Submission range
.panel-body
- update show max score
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.
- fix authorization for viewing submission, only admin can view all problems all the time, normal user depends on right.view_submission and problem.available?...
r593 .form-group
- update show max score
r594 = label_tag :from, "Min"
- fix authorization for viewing submission, only admin can view all problems all the time, normal user depends on right.view_submission and problem.available?...
r593 = text_field_tag 'from_id', nil, class: "form-control"
.form-group
- update show max score
r594 = label_tag :from, "Max"
- fix authorization for viewing submission, only admin can view all problems all the time, normal user depends on right.view_submission and problem.available?...
r593 = text_field_tag 'to_id', nil, class: "form-control"
.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
= button_tag 'Show', class: "btn btn-primary btn-large"
= button_tag 'Download CSV', class: "btn btn-primary btn-large"
- update show max score
r594
- if @scorearray
%h2 Result
- DRY score table...
r601 =render "score_table"