.editbox = simple_nested_form_for @user, url: settings_path, turboboost: true, validate: true, html: { class: "tutor_update_form dirty-form", id: :edit_awards} do |f| = hidden_field_tag :type, 'popover' = hidden_field_tag :form_type, 'award' = hidden_field_tag :award_id, params[:id] .row #award_fields.col-xs-12.col-sm-12 = f.fields_for :awards, [f.object.awards.find(params[:id])] do |p| .col-xs-12 = p.input :name, label: false, input_html: {data: {toggle: 'tooltip', placement: 'left'}, title: 'Name'} .col-sm-12 = p.input :issuer, label: false, input_html: {data: {toggle: 'tooltip', placement: 'left'}, title: 'Issuer'} .col-sm-12 | Date Received .col-sm-12.iset-awd = p.input :date_received, as: :date, label: false, start_year: Date.today.year - 60, default: { year: 2000}, end_year: Date.today.year, :discard_day=> true, class: 'pb10' .col-xs-12.col-sm-12 = p.input :description, as: :text, label: false, input_html: {data: {toggle: 'tooltip', placement: 'left'}, title: 'Description', rows: 2} .col-sm-12.mt5 .col-sm-6 button.btn.btn-default.mb10 .fa.fa-save .inline | Save .col-sm-6 .btn.btn-default.mb10 data-dismiss='popover' .fa.fa-times.pr5 .inline | Cancel .vspace25