Show More
Commit Description:
Merge pull request #18 from nattee/master...
Commit Description:
Merge pull request #18 from nattee/master
upstream
References:
File last commit:
Show/Diff file:
Action:
app/views/main/_submission_box.html.haml
| 20 lines
| 941 B
| text/x-haml
| HamlLexer
|
| r573 | = form_tag({:action => 'submit'}, :multipart => true, class: 'form') do | |||
| r555 | - if @submission and @submission.errors.any? | |||
| #error_explanation | ||||
| .alert.alert-danger | ||||
| %h3= "#{pluralize(@submission.errors.count, "error")} prohibited this user from being saved:" | ||||
| %ul | ||||
| - @submission.errors.full_messages.each do |msg| | ||||
| %li= msg | ||||
| .form-group | ||||
| = label_tag :submission, 'Problem:' | ||||
| r613 | = select 'submission', 'problem_id', [[(t 'main.specified_in_header'),'-1']] + @problems.collect {|p| ["[#{p.name}] #{p.full_name}", p.id]}, {:selected => '-1'}, { class: 'select2 form-control', style: "width: 100%" } | |||
| r555 | .form-group | |||
| = label_tag :file, 'File:' | ||||
| .input-group | ||||
| %span.input-group-btn | ||||
| %span.btn.btn-default.btn-file | ||||
| Browse | ||||
| = file_field_tag 'file' | ||||
| = text_field_tag '' , nil, {readonly: true, class: 'form-control'} | ||||
| = submit_tag 'Submit', class: 'btn btn-default' | ||||
