# HG changeset patch # User Nattee Niparnan # Date 2018-03-22 15:09:57 # Node ID 08159fa838b822baabca60c20d602f5d8e6bc8d5 # Parent 731a0933113612cb29440009c1d4d4a8f32ee5e6 add description diff --git a/app/views/submissions/edit.html.haml b/app/views/submissions/edit.html.haml --- a/app/views/submissions/edit.html.haml +++ b/app/views/submissions/edit.html.haml @@ -19,9 +19,12 @@ .form-group = label_tag "Task:" = text_field_tag 'asdf', "#{@problem.long_name}", class: 'form-control', disabled: true + .form-group + = label_tag "Description:" + = link_to_description_if_any "[download] ".html_safe, @problem .form-group - = label_tag 'Language' + = label_tag 'Language:' = 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" .form-group = submit_tag 'Submit', class: 'btn btn-success', id: 'live_submit',