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.376 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.374 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.373 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.372 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.371 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.370 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.369 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.368 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.367 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.366 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.365 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.364 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.363 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.362 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.361 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.360 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.359 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.358 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.357 app/views/ish_manager/user_profiles/_form.haml
ish_manager-0.1.8.356 app/views/ish_manager/user_profiles/_form.haml