.upload-syllabus
p.fs10.mb10 Upload your Syllabus and Gotti will automatically schedule your assignments this semester into your task manager and pay you $1. Your syllabi will be available in your task manager in the next 24 hours.
.pull-left.syllabus-wrapper
= simple_nested_form_for current_user, url: profile_questions_path, turboboost: true, validate: true, html: { id: 'strengthen_profile', "data-uploaded_syllabuses-min-count" => 1 } do |f|
= hidden_field_tag :step, "uploaded_syllabuses"
#syllabus-fields-pq
= f.fields_for :uploaded_syllabuses, [f.object.uploaded_syllabuses.build] do |s|
.select-course
= s.input :course_id, collection: current_user.courses_studying, prompt: "Select Courses"
.attachment-wrapper
= s.fields_for :attachments, [s.object.attachments.build] do |a|
= a.input :attachment, label: false
= s.link_to_remove class: :hide do
i.fa.fa-close.pl10.pt10
.mb5.clearfix
.upload-syllabus-btn
= f.submit "Upload", class: 'btn-save'
.row
.col-sm-12.text-left
= f.link_to_add :uploaded_syllabuses, data: {target: '#syllabus-fields-pq'}, class: 'txt-white' do
i.fa.fa-plus.pr5
| Add More syllabi
.upload-syllabus-skip
= link_to 'Skip', edit_profile_questions_path(step: User::PROFILE_QUESTION.rindex('uploaded_syllabuses')), class: 'btn-skip mt0', remote: true