Sha256: 9af656577305e8ea8a3a0cee9950a46a809eaea3eedef7b529380eebb7a8daf3

Contents?: true

Size: 1.32 KB

Versions: 5

Compression:

Stored size: 1.32 KB

Contents

-#
-# ish_manager / user_profiles / _form
-#

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

.row
  .col.s6
    = form_for profile, :html => { :multipart => true }, :as => :profile, :url => url do |f|
      .input-field
        %label name
        = f.text_field :name

      .input-field
        %label email
        = f.text_field :email

      .input-field
        %label Change profile pic
        %br
        = file_field_tag :photo
        = image_tag profile.profile_photo.photo.url(:thumb) rescue nil
        %br
        %br

      .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

5 entries across 5 versions & 1 rubygems

Version Path
ish_manager-0.1.8.258 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.257 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.256 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.255 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.254 app/views/ish_manager/user_profiles/_form.haml