Sha256: fa03b792868af1f13c878737c8ab2a91ed465f80f2011f832c9008908d5e5b1e

Contents?: true

Size: 1.35 KB

Versions: 8

Compression:

Stored size: 1.35 KB

Contents

- edit ||= false
.section
  %table
    %tr
      %td
        .label.top.req #{t :username}:
        = f.text_field :username
      %td= spacer
      %td
        .label.top.req #{t :email}:
        = f.text_field :email
    %tr
      %td
        .label #{t :password}:
        = f.password_field :password
      %td= spacer
      %td
        .label #{t :password_confirmation}:
        = f.password_field :password_confirmation
    %tr
      %td(colspan=3)
        .check_box(style="margin-top:6px")
          -# Sorry, you can't revoke Admin rights from yourself.
          = f.check_box(:admin, { :disabled => edit && @user == current_user })
          %label{:for => 'user_admin'}
            = t(:user_is_admin)
.subtitle #{t :personal_information}
.section
  %table
    %tr
      %td
        .label #{t :first_name}:
        = f.text_field :first_name
      %td= spacer
      %td
        .label #{t :last_name}:
        = f.text_field :last_name
    %tr
      %td
        .label #{t :job_title}:
        = f.text_field :title
      %td= spacer
      %td
        .label #{t :company}:
        = f.text_field :company
        
.subtitle #{t :group_memberships}
.section
  %table
    %tr
      %td
        .label #{t :groups}:
        = f.select :group_ids, Group.all.map {|g| [g.name, g.id]}, {}, :multiple => true
        :javascript
          new Chosen($('user_group_ids'));

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fat_free_crm-0.13.2 app/views/admin/users/_profile.html.haml
fat_free_crm-0.12.3 app/views/admin/users/_profile.html.haml
fat_free_crm-0.12.2 app/views/admin/users/_profile.html.haml
fat_free_crm-0.13.1 app/views/admin/users/_profile.html.haml
fat_free_crm-0.12.1 app/views/admin/users/_profile.html.haml
fat_free_crm-0.13.0 app/views/admin/users/_profile.html.haml
fat_free_crm-0.12.0 app/views/admin/users/_profile.html.haml
fat_free_crm-0.11.4 app/views/admin/users/_profile.html.haml