Sha256: 6d88dd5e7bdad683a23209216221e3c703bab546901d0590e9182d70bdf8d2ab
Contents?: true
Size: 1.17 KB
Versions: 8
Compression:
Stored size: 1.17 KB
Contents
.nested-fields %div.block = f.text_field :name, placeholder: 'page block title (leave blank for no title)', class: 'form-control med' = f.text_field :div_id, placeholder: 'division identifier (always fill out)', class: 'form-control' = f.hidden_field :order, class: 'block-order' %div = f.fields_for :text_boxes do |text_box| = render 'text_box_fields', f: text_box %div = f.fields_for :blog_feeds do |text_box| = render 'blog_feed_fields', f: text_box %div.row = f.fields_for :image_boxes do |text_box| = render 'image_box_fields', f: text_box %div.row = f.fields_for :thumbnails do |thumbnail| = render 'thumbnail_fields', f: thumbnail %hr = link_to_add_association 'Add Text Box', f, :text_boxes, class: 'btn btn-default btn-xs' = link_to_add_association 'Add Thumbnail', f, :thumbnails, class: 'btn btn-default btn-xs' = link_to_add_association 'Add Blog Feed', f, :blog_feeds, class: 'btn btn-default btn-xs' = link_to_add_association 'Add Image Box', f, :image_boxes, class: 'btn btn-default btn-xs' %div.right = link_to_remove_association 'Remove Block', f
Version data entries
8 entries across 8 versions & 1 rubygems