Show More
Commit Description:
modernize problem
Commit Description:
modernize problem
References:
File last commit:
Show/Diff file:
Action:
app/views/shared/_problem_select.html.haml
| 19 lines
| 708 B
| text/x-haml
| HamlLexer
|
r788 | .panel.panel-primary | |||
.panel-heading | ||||
Problems | ||||
.panel-body | ||||
r792 | .radio | |||
%label | ||||
= radio_button_tag 'problems', 'all', (params[:users] == "all") | ||||
All problems | ||||
.radio | ||||
%label | ||||
= radio_button_tag 'problems', 'enabled', (params[:users] == "enabled"), checked: true | ||||
Only problems with available = "yes" | ||||
.radio | ||||
%label | ||||
= radio_button_tag 'problems', 'selected', (params[:users] == "group") | ||||
Only these selected problems | ||||
r788 | = select_tag 'problem_id[]', | |||
options_for_select(Problem.all.collect {|p| ["[#{p.name}] #{p.full_name}", p.id]},params[:problem_id]), | ||||
r790 | { id: :problem_id, class: 'select2 form-control', multiple: "true" } | |||