Sha256: de14e169e7f3b4eede7979741815f5f6b247be1591b47f2fe8cbed4456260004

Contents?: true

Size: 1.12 KB

Versions: 2

Compression:

Stored size: 1.12 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]] + Ish::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

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


Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ish_manager-0.1.8.322 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.321 app/views/ish_manager/user_profiles/_form.haml