Show More
Commit Description:
default config
Commit Description:
default config
File last commit:
Show/Diff file:
Action:
app/views/application/_problem_chooser.html.haml | 23 lines | 714 B | text/x-haml | HamlLexer |
.card.border-info.mb-2
.card-header.text-bg-info.border-info
Select a Task
.card-body
.row
.col-6
= select 'submission',
'problem_id',
problems.collect {|p| ["[#{p.name}] #{p.full_name}", send(target_url_method,p.id)]},
{ selected: (selected_problem ? problem_submissions_url(selected_problem) : -1) },
{ class: 'select2 form-control'}
.col-6
%a.btn.btn-primary.go-button#problem_go{data: {source: '#submission_problem_id'}} Go
:javascript
$(".go-button").on('click', function(event) {
var link, url;
link = $(this).attr("data-source");
url = $(link).val();
if (url) {
window.location.href = url;
}
});