Sha256: c0b4ff43e0ee74c45dee3c29a822bc5a73a5470689a206f3ab8946d780890c5d
Contents?: true
Size: 771 Bytes
Versions: 5
Compression:
Stored size: 771 Bytes
Contents
%tr{class: "nested-fields #{f.object.new_record? ? 'new-polyphoto' : ''}", data: { new: f.object.new_record? }} %td.text-center = f.input_field :gallery_title, :as => :hidden = f.input_field :gallery_id, :as => :hidden = f.input_field :galleryable_id, :as => :hidden = f.input_field :galleryable_type, :as => :hidden = image_tag f.object.photo.file? ? f.object.photo.url(:thumb) : 'polygallery/thumbnail-missing.jpg', class: 'img-responsive' %td = f.input_field :photo = f.input_field :caption, :placeholder => "Caption... (optional)", :style => "margin-top:5px;", :as => :string %td.text-center{:style => "width:51px;"} = link_to_remove_association f, :class => 'btn btn-default btn-sm' do %span.glyphicon.glyphicon-trash
Version data entries
5 entries across 5 versions & 1 rubygems