Sha256: ec72d4b1068692eb421d74d4a8c3e84c7ef4533eb4241322ff76bfe6d80ff5dc
Contents?: true
Size: 1.29 KB
Versions: 13
Compression:
Stored size: 1.29 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, class: 'select2'
Version data entries
13 entries across 13 versions & 1 rubygems