Sha256: 56a937e6227ac32fc95c48206544eb06a28cbcfdc35fd62a64ecb8e40b4c10ba

Contents?: true

Size: 1022 Bytes

Versions: 9

Compression:

Stored size: 1022 Bytes

Contents

= admin_form_for @user do |f|
  = input_set t('admin.form.base') do
    = f.input :email
    = f.input :first_name
    = f.input :last_name
    = f.input :patronymic
    = f.input :phone
    = f.input :skype
    = f.input :web_site
    = f.input :address

    = f.input :user_role_id, collection: UserRoleType.all, include_blank: false, as: :radio_buttons, item_wrapper_class: 'inline'

    = f.input :birthday, include_blank: true
    = f.input :gender, collection: GenderType.all, include_blank: false, as: :radio_buttons, item_wrapper_class: 'inline'

    = f.input :time_zone, fancy: true, priority: %w(Moscow Kyiv).map{|t| ActiveSupport::TimeZone[t] }
    = f.input :locale, collection: Globalize.available_locales
    = f.input :bg_color, as: :color

    = f.input :password, input_html: {autocomplete: 'off'}
    = f.input :password_confirmation, input_html: {autocomplete: 'off'}

  = f.input :avatar, as: :uploader, edit_meta: true

  = f.hidden_field :fileupload_guid if f.object.new_record?

  = f.save_buttons

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ab_admin-0.8.3 app/views/admin/users/_form.html.slim
ab_admin-0.8.2 app/views/admin/users/_form.html.slim
ab_admin-0.8.1 app/views/admin/users/_form.html.slim
ab_admin-0.8.0 app/views/admin/users/_form.html.slim
ab_admin-0.7.0 app/views/admin/users/_form.html.slim
ab_admin-0.6.1 app/views/admin/users/_form.html.slim
ab_admin-0.6.0 app/views/admin/users/_form.html.slim
ab_admin-0.5.0 app/views/admin/users/_form.html.slim
ab_admin-0.4.0 app/views/admin/users/_form.html.slim