Sha256: c9fd55b05e78826241f6144a4929e05d81bd963cc6afa8d81f2634e545aab187

Contents?: true

Size: 719 Bytes

Versions: 3

Compression:

Stored size: 719 Bytes

Contents

%tr.nested-fields{:data => {:new => f.object.new_record?}}
  %td.text-center
    = f.input_field :gallery_title, :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' # image_path('polygallery/thumbnail-missing.jpg')
  %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

3 entries across 3 versions & 1 rubygems

Version Path
polygallery-0.2.5 app/views/polygallery/photos/_simple_fields_for.html.haml
polygallery-0.2.4 app/views/polygallery/photos/_simple_fields_for.html.haml
polygallery-0.2.3 app/views/polygallery/photos/_simple_fields_for.html.haml