= simple_form_for [:admin, user] do |f| .container .row .col-xs-12 = link_to admin_users_path, 'data-position' => 'bottom', 'data-tooltip' => t('keppler.actions.back') do .arrow-back.btn.btn-default %i.icon-arrow-left = t('keppler.actions.back') .row .col-md-6 .box.slice-box.p-15 .box-header.with-border %h3.box-title Avatar .box-body.box-profile = f.input :avatar, as: :keppler_file, label: false .col-md-6 .box.slice-box.p-15 .box-header.with-border %h3.box-title= user.name || 'User' .box-body %table.table %tbody .form-padding .row .col-lg-6 = f.input :name, label: t('simple_form.labels.defaults.name'), placeholder: 'Name', input_html: { class: 'form-control' }, required: true .col-lg-6 = f.input :email, label: t('simple_form.labels.defaults.email'), placeholder: 'Email', input_html: { class: 'form-control' }, required: true .row .col-xs-12 = f.input :role_ids, collection: roles, label: t('keppler.actions.select_rol'), include_blank: t('simple_form.labels.defaults.select_role') .row .col-lg-6 = f.input :password, label: t('simple_form.labels.defaults.password'), placeholder: 'Password', input_html: { class: 'form-control' }, required: true .col-lg-6 = f.input :password_confirmation, label: t('simple_form.labels.defaults.password_confirmation'), placeholder: 'Password Confirmation', input_html: { class: 'form-control' }, required: true .row .col-lg-12 .pull-right = f.button :submit, t('keppler.actions.save'), name: '_save', class: 'btn-primary' = f.button :submit, t('keppler.actions.save_and_add_another'), name: '_add_other'