Sha256: d4b7c3285cbe69fd40c807607a9abbab8dc918d798972f5473e188878d63ab58
Contents?: true
Size: 800 Bytes
Versions: 17
Compression:
Stored size: 800 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| .four{class: i == 2 ? 'omega' : ''} - columns.each do |positions| .six{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