#info.col-xs-12.col-sm-10.col-sm-offset-1
h4.bold.pt5
| What Class is Your Book For?
.col-sm-12.no-padding.align-center
= simple_nested_form_for @user, turboboost: true, url: books_path, method: :post, validate: true do |f|
#user-books
= f.fields_for :books, [@book] do |book|
= book.input :course_ids, as: :hidden, input_html: {id: 'course_ids'}, validate: true
#input_book_details.set-booknew.hide
= book.input :title, label: 'Title', validate: true
.clearfix
= book.input :authors, label: 'Authors', validate: true
.clearfix
= book.input :edition, label: 'Edition', validate: true
.clearfix
= book.input :professor, label: 'Professor', validate: true
.clearfix
= book.input :cost, label: 'Cost', validate: true
.form-group
label.control-label
| Condition
= book.select :condition, options_for_select(['Fair','Good','Mint'])
.clearfix
.form-group
= book.fields_for :text_book_image, book.object.text_book_image || book.object.build_text_book_image do |i|
= i.file_field :image
.clearfix
= book.link_to_remove "ï€", class: "fa pull-right"
#book_courses
= render 'profile/subjects'
.vspace10
#next_btn.hide.blue-arrow.btn-link.mb30
span
= link_to 'NEXT', '', data: {toggle: 'class:hide', target: '#input_book_details,#book_courses,#add_more_book,#add_book'}, :class => "txt-white"
#add_more_book.hide.pull-left.mt14.mr10.ml100
.pull-left
= f.link_to_add "Add More Book", :books, class: 'add_fields add-more-books btn-green-book', data: {target: '#user-books'}
.form-group.mb25.pull-left#add_book.hide
.pull-left
= f.submit 'Save Book', class: 'btn-green-book'