.editbox .row .col-sm-12.align-center.no-padding .col-sm-12.col-md-12 label.pull-left.pl2.pt10 .clearfix = text_field_tag 'course-search', nil, placeholder: "Search by #{Subject.model_name.human} #{Tutor.model_name.human}", id: 'search-subjects-tutors', class: 'search-subjects-list-tutors' .clearfix .col-sm-12.col-md-12 #tutor-subjects-list.hbs.col-sm-12.col-md-12 data-url=search_api_subjects_path #tutor-courses-list.hbs.col-sm-12.col-md-12 data-url=api_courses_path .text-left.pl15.bold | Selected #{Course.model_name.human.pluralize} #tutoring-courses-list.hbs.col-sm-12.col-md-12 = simple_form_for @user, as: :user, turboboost: true, :url => settings_path, validate: true do |f| = f.input :course_ids, as: :hidden, validate: true, input_html: {data: {load: f.object.courses.map{|c| {id: c.id, name: c.name}}}, value: ''} = f.input :title, as: :hidden, input_html: { value: "#{Subject.model_name.human.pluralize}" } = f.input :sub_title, as: :hidden, input_html: { value: "#{Course.model_name.human.pluralize}" } .clearfix button.btn.btn-default.mb10.mr10 .fa.fa-save.inline | Save Courses .btn.btn-default.mb10.mr10 .fa.fa-mail-reply .inline = link_to 'Cancel', dashboard_path .vspace25