Sha256: 923e25051a08dd7fe23c376052c2d37a6be808b28079ccf41282e490e638a478

Contents?: true

Size: 1.52 KB

Versions: 24

Compression:

Stored size: 1.52 KB

Contents

-#
-# ish_manager / galleries / _form
-#

- url ||= galleries_path

= form_for gallery, :url => url do |f|
  .row
    .col-sm-6
      = f.label :name
      = f.text_field :name
    .col-sm-6
      = f.label :galleryname
      = f.text_field :galleryname
      
  .row
    .col-sm-4
      = f.label :site
      = select :gallery, :site_id, @sites_list
    .col-sm-4
      = f.label :city
      = select :gallery, :city_id, @cities_list
    .col-sm-4
      = f.label :venue
      = select :gallery, :venue_id, @venues_list
  .row
    .col-sm-4
      = f.label :tags
      = f.select :tag_ids, @tags_list, {}, { multiple: true }
      
  .row
    .panel
      .panel-body
        .col-sm-4
          = f.label 'Shared with'
          = f.select :shared_profiles, options_for_select( [[nil,nil,:disabled=>true]]+current_user.profile.friends.map { |f| [ f.email, f.id ] }, :selected => gallery.shared_profiles.map(&:id) ), {}, { :multiple => true }
        .col-sm-4
          Shared with:<br />
          - gallery.shared_profiles.each do |p|
            &gt; #{p.email} <br />
        .col-sm-4
          "/
  .row
    = f.label :subhead
    = f.text_area :subhead
  .row
    = f.text_area :descr, class: :tinymce
    
  .row
    .col-sm-3
      = f.check_box :is_public
      = f.label :is_public
    .col-sm-3
      = f.check_box :is_trash
      = f.label :is_trash
    .col-sm-3
      = f.label :premium_tier
      = f.number_field :premium_tier
    .col-sm-3
      = f.label :username
      = f.text_field :username
    .col-sm-3
      = f.submit 'Submit'

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
ish_manager-0.1.8.213 app/views/ish_manager/galleries/_form.haml
ish_manager-0.1.8.212 app/views/ish_manager/galleries/_form.haml
ish_manager-0.1.8.211 app/views/ish_manager/galleries/_form.haml
ish_manager-0.1.8.210 app/views/ish_manager/galleries/_form.haml