Sha256: a9f7e2f1ef60762c0cdd3caa2075c679464bb474ba1208ab7b43213f3b844666

Contents?: true

Size: 1 KB

Versions: 32

Compression:

Stored size: 1 KB

Contents

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

= form_for profile, :as => :profile, :url => url do |f|
  %label name
  = f.text_field :name

  .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

32 entries across 32 versions & 1 rubygems

Version Path
ish_manager-0.1.8.138 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.137 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.136 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.135 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.134 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.133 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.132 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.131 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.129 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.128 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.127 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.126 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.125 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.124 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.123 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.122 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.121 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.120 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.119 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.118 app/views/ish_manager/user_profiles/_form.haml