Sha256: b29418f1009e2dd29b98da442d9725e89a2d608644fc197d427fdb5dc0fe41c0
Contents?: true
Size: 731 Bytes
Versions: 2
Compression:
Stored size: 731 Bytes
Contents
- f ||= local_assigns[:locals][:f] .nested_fields .nested_fields %p = f.label "Gallery Title" %br/ = f.text_field :title .nested_fields %h4 Gallery Photos #photos = f.fields_for :photos do |photo_form| = render "photos/form", :locals => {:f => photo_form} %p= link_to_add_nested('Add Photo', f, :photos, 'photos') .nested_fields %h4 Gallery Videos #videos = f.fields_for :videos do |video_form| = render "videos/form", :locals => {:f => video_form} %p= link_to_add_nested('Add Video', f, :videos, 'videos') - unless f.object.new_record? = f.hidden_field :_destroy %p= link_to_function "Remove Gallery", "remove_fields(this)", :class => "remove"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sbdevcore-0.2.2 | app/views/galleries/_form.html.haml |
sbdevcore-0.2.0 | app/views/galleries/_form.html.haml |