Sha256: 07e61c45438d6c6ec56e32227771d83bcaffd336cfe625cccb70510f15d285b9

Contents?: true

Size: 808 Bytes

Versions: 10

Compression:

Stored size: 808 Bytes

Contents

.six-column-image-and-text.stacked-image-and-text
  = f.hidden_field :row_type
  = f.hidden_field :list_order
  - [ [ [0,1], [2,3] ], [ [4,5], [6,7] ], [ [8,9], [10,11] ] ].each_with_index do |columns, i|
    .inner4{ class: i == 2 ? 'omega' : '' }
      - columns.each do |positions|
        .inner6{ class: cycle('', 'omega') }
          = f.fields_for :pieces, f.object.pieces.select{ |p| positions.include?(p.position) } do |piece|
            = piece.hidden_field :piece_type
            - if piece.object.piece_type == 'Image'
              .tn-tc-piece.tn-tc-asset-field
                = render 'tenon/tenon_content/piece_types/form/image', f: piece, style: 'half'
            - else
              .tn-tc-piece
                = render 'tenon/tenon_content/piece_types/form/text', f: piece
  .spacer

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tenon-2.1.0 app/views/tenon/tenon_content/row_types/form/_six_column_image_and_text.html.haml
tenon-2.0.8 app/views/tenon/tenon_content/row_types/form/_six_column_image_and_text.html.haml
tenon-2.0.7 app/views/tenon/tenon_content/row_types/form/_six_column_image_and_text.html.haml
tenon-2.0.6 app/views/tenon/tenon_content/row_types/form/_six_column_image_and_text.html.haml
tenon-2.0.5 app/views/tenon/tenon_content/row_types/form/_six_column_image_and_text.html.haml
tenon-2.0.4 app/views/tenon/tenon_content/row_types/form/_six_column_image_and_text.html.haml
tenon-2.0.3 app/views/tenon/tenon_content/row_types/form/_six_column_image_and_text.html.haml
tenon-2.0.2 app/views/tenon/tenon_content/row_types/form/_six_column_image_and_text.html.haml
tenon-2.0.1 app/views/tenon/tenon_content/row_types/form/_six_column_image_and_text.html.haml
tenon-2.0.0 app/views/tenon/tenon_content/row_types/form/_six_column_image_and_text.html.haml