.modal-content.no-shadow #info.col-xs-12.bg-white.col-sm-12 .row .col-sm-10.col-sm-offset-1 = simple_nested_form_for @user, as: :user, validate: true, turboboost: true, url: profile_path(params[:id]), method: :patch do |f| #bank-account-fields.col-sm-12.col-xs-12.no-padding = f.fields_for :bank_accounts do |b| .col-sm-11.col-xs-11.no-padding = b.input :name_on_account, input_html: {disabled: b.object.persisted?}, label: false, validate: true - if b.object.new_record? or b.object.routing_number? = b.input :routing_number, input_html: {disabled: b.object.persisted?}, label: false, validate: true = b.input :account_number, input_html: {disabled: b.object.persisted?}, label: false, validate: true = b.input :account_number_confirmation, input_html: {disabled: b.object.persisted?, value: b.object.account_number}, label: false, validate: true - if b.object.new_record? or b.object.account_type? = b.input :account_type, collection: BankAccount::ACCOUNT_TYPES, input_html: {disabled: b.object.persisted?}, validate: true, prompt: 'Select Account Type', label: false = b.input :base, input: false, label: false = b.link_to_remove 'Remove', class: "pull-right" .col-sm-1.col-xs-1.no-padding.text-center = b.check_box :active, class: 'fontawsome-star active', id: "bank-account-active-#{b.index}" label for="bank-account-active-#{b.index}" .clearfix .clearfix .cent-block.pt10 = f.link_to_add 'Add Another Account', :bank_accounts, class: 'add_fields add', :data => { :target => "#bank-account-fields" } .vspace15 .text-center .subtle.mt20 | Please click here after you have added your Bank Account label.center-block.w25 .center-block.mt20.day-checkbox = check_box_tag(:as_next_step) #next_step.center.hide .text-center.ptb5 button.blue-arrow.btn-link span | Next .pt10.skip_step = link_to 'Skip', edit_profile_path(User.next_step(params[:id])) .clearfix