= content_form.simple_fields_for :classroom_course_info do |f| .col-md-2 = f.label t('activerecord.attributes.classroom_course_info.duration').titleize .col-md-10 = f.input :duration, label: false, required: true .col-md-2 = f.label t('activerecord.attributes.classroom_course_info.number_of_students').titleize .col-md-10 = f.input :number_of_students, label: false, required: true .col-md-2 = f.label t('activerecord.attributes.classroom_course_info.address').titleize .col-md-10 = f.input :address, label: false, required: true .col-md-2 = f.label t('activerecord.attributes.classroom_course_info.contact_email').titleize .col-md-10 = f.input :contact_email, label: false, required: true .col-md-2 = f.label t('activerecord.attributes.classroom_course_info.contact_phone_number').titleize .col-md-10 = f.input :contact_phone_number, label: false, required: true .col-md-2 = f.label t('activerecord.attributes.classroom_course_info.date').titleize .col-md-10 = f.input :date, label: false, required: true .col-md-2 = f.label t('activerecord.attributes.classroom_course_info.highlighted').titleize .col-md-10 = f.input :highlighted, label: false, required: true .col-md-2 = f.label t('activerecord.attributes.classroom_course_info.price').titleize .col-md-10 = f.input :price, label: false, required: true .col-md-2 = f.label t('activerecord.attributes.classroom_course_info.details_file').titleize .col-md-4 = f.input :details_file, label: false, required: true = f.hidden_field :details_file_cache - if @content.classroom_course_info.details_file.present? .col-md-2 = f.label t('activerecord.attributes.classroom_course_info.uploaded_file').titleize .col-md-4 - if content.id.present? = link_to "#{File.basename content.classroom_course_info.details_file.path}", "/#{content.classroom_course_info.details_file.store_path}#{File.basename content.classroom_course_info.details_file.path}" - else = File.basename content.classroom_course_info.details_file.path