Sha256: bcaa6a179768e2e88b0cb42c7e671ff16cb56873cf81d5d426e742fc5df4b772

Contents?: true

Size: 977 Bytes

Versions: 1

Compression:

Stored size: 977 Bytes

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 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 :current_city, options_for_select( @cities_list, :selected => profile.current_city_id )
    %label City

  .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

  .input-field
    = f.select :bookmarked_location_ids, options_for_select( @locations_list, selected: profile.bookmarked_location_ids), {}, { multiple: true }
    %label Bookmarked Locations

  = f.submit 'Save', :class => %w(button)


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ish_manager-0.1.8.253 app/views/ish_manager/user_profiles/_form.haml