Sha256: c281a88c261eeaa26a9290c56f192469ac1d2e835abfe2dae556204607527339

Contents?: true

Size: 1.12 KB

Versions: 1

Compression:

Stored size: 1.12 KB

Contents

- i = 0
= f.fields_for :page_cols do |page_col|
  .fieldset.open
    %h2= t("page_col_#{i}")
    .option-panel-content
      %a#add-block.backgrounds.static-content.action-button{ :href => "#" }
        %span.big-icons
          = t('page.block.add').capitalize
      %a#add-widget.backgrounds.widget-content.action-button{ :href => "#" }
        %span.big-icons
          = t('page.widget.add').capitalize
      .clear
      .nested_sortable
        = hidden_field_tag "page[page_cols_attributes][#{i}][block_ids][]"
        - page_col.object.blocks.each do |block|
          .block-container
            %span.block-type
              %span.handler
                %span.inner
              %span
                = block.class.human_name.capitalize
            %span.block-name
              = block.title.capitalize unless block.title.nil?

            = link_to('', [forgeos_cms, :edit, :admin, block], :popup => true, :class => 'small-icons edit-link')
            = link_to '', '#', :class => 'big-icons gray-destroy'
            = hidden_field_tag "page[page_cols_attributes][#{i}][block_ids][]", block.id
        .clear
    - i = i+1

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
forgeos_cms-1.9.0 app/views/admin/pages/_blocks.html.haml