Sha256: 7a780cd936a9097eebb95c9d69414c3af9b1756bb7a96405c8c6d8b428af36a4
Contents?: true
Size: 948 Bytes
Versions: 3
Compression:
Stored size: 948 Bytes
Contents
- photo_association_name = f.object.polygallery_settings[:association_names][:photos] = f.input_field :title, as: :hidden, value: f.object.title = f.input_field :galleryable_id, as: :hidden = f.input_field :galleryable_type, as: :hidden - add_settings = settings[:add_btn].except(:text) - add_settings[:render_options] = { locals: { settings: settings } } %h3.lead = link_to_add_association settings[:add_btn][:text], f, :photos, add_settings = settings[:label] || f.object.title.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 = f.simple_fields_for :photos do |pf| # photo_association_name do |pf| = render 'polygallery/photos/simple_fields_for', f: pf, settings: settings
Version data entries
3 entries across 3 versions & 1 rubygems