Sha256: 8116dead635bfae4410bed39a416b221b15f14e35bced73477e5c999d68fce27

Contents?: true

Size: 1.09 KB

Versions: 59

Compression:

Stored size: 1.09 KB

Contents

- url = profile.persisted? ? profile_path( profile.id ) : profiles_path

= form_for profile, :as => :profile, :url => url do |f|
  .input-field
    %label name
    = f.text_field :name
    
  .input-field
    %label username
    = f.text_field :username
    
  .input-field
    %label email
    = f.text_field :email
    
  .input-field
    = f.select :role_name, options_for_select( [[nil, nil]] + IshModels::UserProfile::ROLES.map { |r| [ r, r ] }, :selected => profile.role_name )
    %label role name
    
  .input-field
    = f.select :tag, options_for_select( [[nil, nil]] + IshModels::UserProfile::TAGS.map { |r| [ r, r ] }, :selected => profile.tag )
    %label Tag

  .input-field
    = f.select :current_city, options_for_select( @cities_list, :selected => profile.current_city_id )
    %label City
    
  .input-field
    %label About
    = f.text_area :about, :rows => 10
    
  .input-field
    = f.label :fb_access_token
    = f.text_field :fb_access_token
  .input-field
    = f.label :fb_long_access_token
    = f.text_field :fb_long_access_token
  
  = f.submit 'Save', :class => %w(button)
  
    

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
ish_manager-0.1.8.213 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.212 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.211 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.210 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.209 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.208 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.207 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.206 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.205 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.204 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.203 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.202 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.201 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.200 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.199 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.198 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.197 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.196 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.195 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.194 app/views/ish_manager/user_profiles/_form.haml