Sha256: b480ebcc82f5d05add35413d96f65087418a837800723fd5cfc755560795a445

Contents?: true

Size: 927 Bytes

Versions: 6

Compression:

Stored size: 927 Bytes

Contents

.nested-fields
  %div.block
    <span style="cursor: crosshair">Reorder</span>
    = f.text_field :name, placeholder: 'page block title (leave blank for no title)', class: 'form-control med'
    = f.hidden_field :order, class: 'block-order'
    %div
      = f.fields_for :jumbotrons do |jumbotron|
        = render 'jumbotron_fields', f: jumbotron
      = f.fields_for :text_boxes do |text_box|
        = render 'text_box_fields', f: text_box
      %div.row
        = f.fields_for :thumbnails do |thumbnail|
          = render 'thumbnail_fields', f: thumbnail
      %hr
      = link_to_add_association 'Add Jumbotron', f, :jumbotrons, class: 'btn btn-default btn-xs'
      = 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'
    %div.right
      = link_to_remove_association 'Remove Block', f

Version data entries

6 entries across 5 versions & 1 rubygems

Version Path
pages_cms-0.1.1 app/views/pages_cms/admin/pages/_page_block_fields.html.haml
pages_cms-0.1.1 test/dummy/app/views/pages_cms/admin/pages/_page_block_fields.html.haml
pages_cms-0.1.0 app/views/pages_cms/admin/pages/_page_block_fields.html.haml
pages_cms-0.0.3 app/views/pages_cms/admin/pages/_page_block_fields.html.haml
pages_cms-0.0.2 app/views/pages_cms/admin/pages/_page_block_fields.html.haml
pages_cms-0.0.1 app/views/pages_cms/admin/pages/_page_block_fields.html.haml