Sha256: 926fd6872ae9e3be268bd4480eb43e2c65567c41234fcea8138b937c3d6ce87a
Contents?: true
Size: 1.18 KB
Versions: 7
Compression:
Stored size: 1.18 KB
Contents
- photo_association_name = gallery.polygallery_settings[:association_names][:photos] = f.simple_fields_for gallery.title.to_sym do |ff| = ff.input_field :title, :as => :hidden, :value => gallery.title = ff.input_field :galleryable_id, :as => :hidden = ff.input_field :galleryable_type, :as => :hidden - if options[:label] %h3.lead = link_to_add_association 'Add Photo', ff, :photos, :partial => 'polygallery/photos/simple_fields_for', :class => 'btn btn-default btn-sm pull-right', :data => {:association_insertion_node => "##{photo_association_name} .photo-receptacle", :association_insertion_method => 'append'} - if options[:label] == true = gallery.title.titleize - else = options[:label].titleize .polygallery-cocoon-table{:id => photo_association_name.to_s} %table.table.table-bordered.table-striped.table-condensed.polygallery-photos-table %thead %tr %th.text-center{:style => 'width:85px;'} Photo %th File %th.text-center Actions %tbody.photo-receptacle = ff.simple_fields_for :photos do |pf| # photo_association_name do |pf| = render 'polygallery/photos/simple_fields_for', :f => pf
Version data entries
7 entries across 7 versions & 1 rubygems