Sha256: 6840ee2aa432be1fbfbec855e8be045bffacd341620c19401629dffb92984167

Contents?: true

Size: 1.21 KB

Versions: 6

Compression:

Stored size: 1.21 KB

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 :trust_state, :collection => UserState.all, :include_blank => false, :as => :radio, :as => :radio_buttons, :item_wrapper_class => 'inline'

    = f.input :birthday
    = 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'}

  = input_set t('admin.avatar') do
    = f.attach_file_field :avatar, :file_max_size => 2

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

  = f.save_buttons

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ab_admin-0.2.3 app/views/admin/users/_form.html.slim
ab_admin-0.2.2 app/views/admin/users/_form.html.slim
ab_admin-0.2.1 app/views/admin/users/_form.html.slim
ab_admin-0.1.2 app/views/admin/users/_form.html.slim
ab_admin-0.1.1 app/views/admin/users/_form.html.slim
ab_admin-0.1.0 app/views/admin/users/_form.html.slim