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.233 app/views/ish_manager/galleries/_form.haml
ish_manager-0.1.8.232 app/views/ish_manager/galleries/_form.haml
ish_manager-0.1.8.231 app/views/ish_manager/galleries/_form.haml
ish_manager-0.1.8.230 app/views/ish_manager/galleries/_form.haml
ish_manager-0.1.8.229 app/views/ish_manager/galleries/_form.haml
ish_manager-0.1.8.228 app/views/ish_manager/galleries/_form.haml
ish_manager-0.1.8.227 app/views/ish_manager/galleries/_form.haml
ish_manager-0.1.8.226 app/views/ish_manager/galleries/_form.haml
ish_manager-0.1.8.225 app/views/ish_manager/galleries/_form.haml
ish_manager-0.1.8.224 app/views/ish_manager/galleries/_form.haml
ish_manager-0.1.8.223 app/views/ish_manager/galleries/_form.haml
ish_manager-0.1.8.222 app/views/ish_manager/galleries/_form.haml
ish_manager-0.1.8.221 app/views/ish_manager/galleries/_form.haml
ish_manager-0.1.8.220 app/views/ish_manager/galleries/_form.haml
ish_manager-0.1.8.219 app/views/ish_manager/galleries/_form.haml
ish_manager-0.1.8.218 app/views/ish_manager/galleries/_form.haml
ish_manager-0.1.8.217 app/views/ish_manager/galleries/_form.haml
ish_manager-0.1.8.216 app/views/ish_manager/galleries/_form.haml
ish_manager-0.1.8.215 app/views/ish_manager/galleries/_form.haml
ish_manager-0.1.8.214 app/views/ish_manager/galleries/_form.haml