Sha256: 80ac27dc24a142b7fa342f51a89544a50e84578cc884cf2baf4ccf404be7ec8d

Contents?: true

Size: 639 Bytes

Versions: 55

Compression:

Stored size: 639 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.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

55 entries across 55 versions & 1 rubygems

Version Path
tenon-1.0.67 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.0.66 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.0.65 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.0.64 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.0.63 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.0.62 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.0.61 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.0.60 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.0.59 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.0.57 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.0.56 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.0.55 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.0.54 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.0.53 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.0.52 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.0.51 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.0.50 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.0.49 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.0.48 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml
tenon-1.0.47 app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml