Show More
Commit Description:
- bootstrapize submission list...
Commit Description:
- bootstrapize submission list - add live edit from submission
File last commit:
Show/Diff file:
Action:
app/views/sources/direct_edit.html.haml | 23 lines | 996 B | text/x-haml | HamlLexer |
%h2 Live submit
%br
%textarea#text_haha{style: "display:none"}~ @source
.container
.row
.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}?"}