Sha256: 022e60e3a648f44df207e3bf4ec930c0ef5fc36a77ada49ab2dce799b1b73b49
Contents?: true
Size: 757 Bytes
Versions: 2
Compression:
Stored size: 757 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, settings[:file_input] = f.input_field :caption, placeholder: 'Caption... (optional)', style: 'margin-top:5px;', as: :string %td.text-center{style: 'width:51px;'} = link_to_remove_association f, settings[:remove_btn] do %span.glyphicon.glyphicon-trash
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
polygallery-0.4.8 | app/views/polygallery/photos/_simple_fields_for.html.haml |
polygallery-0.4.7 | app/views/polygallery/photos/_simple_fields_for.html.haml |