= simple_form_for(resource, html: {class: 'col sl12'} ) do |f|
/ - if parent?
/ = render @parent
= f.error_notification
.form-inputs
.row
.input-field.col.s12
= f.input :name, class: :validate, disabled: @disabled, autofocus: true
.row
.input-field.col.s12
= f.input :account_id, collection: policy_scope(Account), class: :validate, disabled: @disabled, autofocus: true
.row
.input-field.col.s12
= f.input :email, class: :validate, disabled: @disabled, autofocus: true
.row
.input-field.col.s6
= f.input :password, class: :validate, disabled: @disabled, autofocus: true
.input-field.col.s6
= f.input :password_confirmation, class: :validate, disabled: @disabled, autofocus: true
.row
.input-field.col.s6
= f.input :role, collection: User.policed_roles(current_user), class: :validate, disabled: @disabled
.input-field.col.s6
%label{ style: "margin-top: -20px"}= t('.account_active')
.switch
%label
= t(:passive)
=f.check_box :active, disabled: @disabled
%span.lever
= t(:active)
.row
.col.sl12{ style: "margin-bottom: 30px"}
%hr
- unless @disabled
.row
.form-actions.right-align
= f.button :submit, t(".#{params[:action]}.submit")
- if %w{ show edit }.include? params[:action]
:coffeescript
$('form label').addClass('active')