Description:
fix double h2 in live submit
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r780:bb5de7322cc4 - - 1 file changed: 0 inserted, 3 deleted
@@ -1,51 +1,48 | |||
|
1 | - %h2 Live submit | |
|
2 | - %br | |
|
3 | - | |
|
4 | 1 |
|
|
5 | 2 | .container |
|
6 | 3 | .row |
|
7 | 4 | .col-md-12 |
|
8 | 5 | %h2 Live submit |
|
9 | 6 | |
|
10 | 7 | .row |
|
11 | 8 | .col-md-12 |
|
12 | 9 | .alert.alert-info |
|
13 | 10 | Write your code in the following box, choose language, and click submit button when finished |
|
14 | 11 | .row |
|
15 | 12 | .col-md-8 |
|
16 | 13 | %div#editor{style: 'height: 500px; border-radius: 7px; font-size: 14px;'} |
|
17 | 14 | .col-md-4 |
|
18 | 15 | - # submission form |
|
19 | 16 | = form_tag({controller: :main, :action => 'submit'}, :multipart => true, class: 'form') do |
|
20 | 17 | |
|
21 | 18 | = hidden_field_tag 'editor_text', @source |
|
22 | 19 | = hidden_field_tag 'submission[problem_id]', @problem.id |
|
23 | 20 | .form-group |
|
24 | 21 | = label_tag "Task:" |
|
25 | 22 | = text_field_tag 'asdf', "#{@problem.long_name}", class: 'form-control', disabled: true |
|
26 | 23 | .form-group |
|
27 | 24 | = label_tag "Description:" |
|
28 | 25 | = link_to_description_if_any "[download] <span class='glyphicon glyphicon-file'></span>".html_safe, @problem |
|
29 | 26 | |
|
30 | 27 | .form-group |
|
31 | 28 | = label_tag 'Language:' |
|
32 | 29 | = select_tag 'language_id', options_from_collection_for_select(Language.all, 'id', 'pretty_name', @lang_id || Language.find_by_pretty_name("Python").id || Language.first.id), class: 'form-control select', style: "width: 100px" |
|
33 | 30 | .form-group |
|
34 | 31 | .input-group |
|
35 | 32 | %span.input-group-btn |
|
36 | 33 | %span.btn.btn-default.btn-file |
|
37 | 34 | Browse |
|
38 | 35 | = file_field_tag 'load_file' |
|
39 | 36 | = text_field_tag '' , nil, {readonly: true, class: 'form-control'} |
|
40 | 37 | .form-group |
|
41 | 38 | = submit_tag 'Submit', class: 'btn btn-success', id: 'live_submit', |
|
42 | 39 | data: {confirm: "Submitting this source code for task #{@problem.long_name}?"} |
|
43 | 40 | - # latest submission status |
|
44 | 41 | .panel{class: (@submission && @submission.graded_at) ? "panel-info" : "panel-warning"} |
|
45 | 42 | .panel-heading |
|
46 | 43 | Latest Submission Status |
|
47 | 44 | = link_to "Refresh",get_latest_submission_status_submissions_path(@submission.user,@problem), class: "btn btn-default btn-sm", remote: true if @submission |
|
48 | 45 | .panel-body |
|
49 | 46 | %div#latest_status |
|
50 | 47 | - if @submission |
|
51 | 48 | = render :partial => 'submission_short', |
You need to be logged in to leave comments.
Login now