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.417 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.416 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.415 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.414 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.413 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.412 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.411 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.410 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.409 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.408 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.407 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.406 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.405 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.404 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.403 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.402 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.401 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.400 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.399 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.397 app/views/ish_manager/user_profiles/_form.haml