Sha256: 9b60e616ecba4fa032ba912df1350570755897d1fafe4fae380b082a822ca1b5
Contents?: true
Size: 1.38 KB
Versions: 5
Compression:
Stored size: 1.38 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 = f.fields_for :contact_fields do |contact| = render 'contact_field_fields', f: contact %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' = link_to_add_association 'Add Contact Box', f, :contact_fields, class: 'btn btn-default btn-xs' %div.right = link_to_remove_association 'Remove Block', f
Version data entries
5 entries across 5 versions & 1 rubygems