Sha256: 8eacfb5413f55f1da52bac1992e702cfb1f7689db0a3da39f166486a7cc5337a

Contents?: true

Size: 1.7 KB

Versions: 4

Compression:

Stored size: 1.7 KB

Contents

%div.back.space
  %div.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 :markdown_texts do |markdown|
          = render 'markdown_text_fields', f: markdown
      %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 Markdown Box', f, :markdown_texts, 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

4 entries across 4 versions & 1 rubygems

Version Path
pages_cms-2.1.1 app/views/pages_cms/admin/pages/_page_block_fields.html.haml
pages_cms-2.1.0 app/views/pages_cms/admin/pages/_page_block_fields.html.haml
pages_cms-2.0.1 app/views/pages_cms/admin/pages/_page_block_fields.html.haml
pages_cms-2.0.0 app/views/pages_cms/admin/pages/_page_block_fields.html.haml