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.457 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.456 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.455 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.454 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.453 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.452 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.451 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.450 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.449 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.448 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.447 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.446 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.445 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.444 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.443 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.442 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.441 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.440 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.439 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.438 app/views/ish_manager/user_profiles/_form.haml