Show More
Commit Description:
- add front page toggle to announcement...
Commit Description:
- add front page toggle to announcement
- cosmetic change in some pages / main
References:
File last commit:
Show/Diff file:
Action:
app/views/sources/direct_edit.html.haml
| 27 lines
| 1.1 KiB
| text/x-haml
| HamlLexer
|
r565 | %h2 Live submit | |||
r564 | %br | |||
r565 | %textarea#text_haha{style: "display:none"}~ @source | |||
r564 | .container | |||
.row | ||||
r567 | .col-md-12 | |||
.alert.alert-info | ||||
Write your code in the following box, choose language, and click submit button when finished | ||||
.row | ||||
r565 | .col-md-7 | |||
%div#editor{style: 'height: 500px; border-radius: 7px; font-size: 14px;'} | ||||
.col-md-5 | ||||
= form_tag({controller: :main, :action => 'submit'}, :multipart => true, class: 'form') do | ||||
= hidden_field_tag 'editor_text', @source | ||||
= hidden_field_tag 'submission[problem_id]', @problem.id | ||||
.form-group | ||||
= label_tag "Task:" | ||||
= text_field_tag 'asdf', "#{@problem.long_name}", class: 'form-control', disabled: true | ||||
.form-group | ||||
= label_tag 'Language' | ||||
= select_tag 'language_id', options_from_collection_for_select(Language.all, 'id', 'pretty_name', @lang_id || Language.first.id), class: 'form-control select', style: "width: 100px" | ||||
.form-group | ||||
= submit_tag 'Submit', class: 'btn btn-success', id: 'live_submit', | ||||
data: {confirm: "Submitting this source code for task #{@problem.long_name}?"} | ||||