Sha256: 1808dbc697a0e3cd2e045f30da0f71a6a65d657969a3b169f33803bf68db43dd

Contents?: true

Size: 854 Bytes

Versions: 27

Compression:

Stored size: 854 Bytes

Contents

= simple_form_for(@user, url: url, method: method, :html => {:class => 'form-horizontal'}, wrapper: :horizontal_form) do |f|
  = f.input :ldap_uid, :input_html => {disabled: 'disabled'}
  = f.input :first_name, :input_html => {disabled: 'disabled'}
  = f.input :last_name, :input_html => {disabled: 'disabled'}
  = f.input :email, :input_html => {disabled: 'disabled'}
  = f.input :alternate_email
  = f.input :last_login_at, as: :string, :input_html => {disabled: 'disabled', value: @user.last_login_at&.strftime("%m/%d/%Y %H:%M:%S")}
  = f.input :superuser_flag, :as => :boolean, label: "Superuser?", wrapper: :horizontal_boolean
  = f.input :inactive_flag, :as => :boolean, :label => "Inactive User?", wrapper: :horizontal_boolean

  .form-actions
    %button{type: "submit", class: "btn btn-primary"} Submit
    = link_to "Cancel", admin_users_path

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
ucb_rails_user-3.0.1 app/views/ucb_rails_user/users/_form.html.haml
ucb_rails_user-3.0.0 app/views/ucb_rails_user/users/_form.html.haml
ucb_rails_user-2.0.1 app/views/ucb_rails_user/users/_form.html.haml
ucb_rails_user-2.0.0 app/views/ucb_rails_user/users/_form.html.haml
ucb_rails_user-1.1.3 app/views/ucb_rails_user/users/_form.html.haml
ucb_rails_user-1.1.2 app/views/ucb_rails_user/users/_form.html.haml
ucb_rails_user-1.1.1 app/views/ucb_rails_user/users/_form.html.haml