= simple_form_for [dunlop, @user], html: {autocomplete: 'off', class: 'ui form'} do |f|
  = f.error_notification
  .form-inputs= f.input :email, input_html: {autocomplete: 'off'}
  .form-inputs= f.input :password, input_html: {autocomplete: 'off'}
  - if current_user.admin?
    .form-inputs.ui.checkbox= f.input :admin
  = hidden_field_tag "user[role_names][]", nil
  = render "admin_user_roles", f: f
  .form-actions.clearfix
    = link_to 'Cancel', dunlop.users_path, class: 'ui basic button'
    = f.button :submit,                    class: 'ui secondary button'
