Sha256: e77b8423211058e2b5c54ba5f56e451c7488d6b07c685b28184669329552013b

Contents?: true

Size: 645 Bytes

Versions: 17

Compression:

Stored size: 645 Bytes

Contents

.three-column-image-and-text.stacked-image-and-text
  = f.hidden_field :row_type
  = f.hidden_field :list_order
  -[[0,1], [2,3], [4,5]].each do |positions|
    .four{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

17 entries across 17 versions & 1 rubygems

Version Path
tenon-1.1.8 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.1.7 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.1.6 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.1.5 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.1.4 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.1.3 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.1.2 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.1.1 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.0.76 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.0.75 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.0.74 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.0.73 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.0.72 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.0.71 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.0.70 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.0.69 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.0.68 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml