Sha256: 8c4eb643b069d78b5b609f10009d5980fd1d09e87b4caf72e2f065dad60abac1

Contents?: true

Size: 997 Bytes

Versions: 133

Compression:

Stored size: 997 Bytes

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.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

133 entries across 133 versions & 1 rubygems

Version Path
ish_manager-0.1.8.355 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.354 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.353 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.352 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.351 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.350 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.349 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.348 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.347 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.346 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.345 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.344 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.343 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.342 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.341 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.340 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.339 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.338 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.337 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.336 app/views/ish_manager/user_profiles/_form.haml