= simple_form_for [:admin, @user] do |f| .container .row .col-xs-12 = link_to admin_users_path, class: "", "data-position" => "bottom", "data-tooltip" => t("keppler.actions.back") do .arrow-back.btn.btn-default %i.fa.fa-angle-left = t('keppler.actions.back') .row .col-md-4.col-sm-5 .box.slice-box .box-body.box-profile .upload-image .files.form-group.trigger{ class: "#{'files-absolute' unless @user.avatar.blank?}" } #icon-file + = f.file_field :avatar, class: 'photo_upload' %center#image = image_tag "#{@user.avatar.blank? ? 'avatar.png' : @user.avatar}", class: "#{'hidden' if @user.avatar.blank?} image_to_upload" .col-md-8.col-sm-7 .box.slice-box .box-header.with-border %h3.box-title User .box-body %table.table.table-bordered %tbody .form-padding .row .col-lg-6 = f.input :name, label: false, placeholder: "Name", input_html: {class: "form-control"}, required: true .col-lg-6 = f.input :email, label: false, placeholder: "Email", input_html: {class: "form-control"}, required: true .row .col-xs-12 -# = f.input :role_ids, label: false, collection: @roles, include_blank: t("keppler.actions.select_rol"), input_html: { class: "form-control" }, required: true .form-group %select#user_role_ids.form-control.select.required.form-control{"aria-required" => "true", :name => "user[role_ids]", :required => "required"} %option{:value => ""} Seleccionar rol - @roles.each do |role| %option{ value: role.last }= role.first .row .col-lg-6 = f.input :password, label: false, placeholder: "Password", input_html: {class: "form-control"}, required: true .col-lg-6 = f.input :password_confirmation, label: false, 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"