Sha256: 3e3992e6627e616f4339d930c2a320c5b51f34387521d0feae1ff77cd637fc9e

Contents?: true

Size: 690 Bytes

Versions: 1

Compression:

Stored size: 690 Bytes

Contents

.repeater-field{ ng: { controller: 'MatrixFieldCtrl', init: "initRows(#{ field.json_value.to_json })" } }
  %table
    %thead
      %tr
        - field.fields.keys.each do |name|
          %th= name.to_s.humanize
        %th  
    %tbody
      %tr{ ng: { repeat: 'row in rows track by $index' } }
        = fields_for :matrix do |m|
          - field.fields.each do |name, sub_field|
            - merge_matrix_html_options f.object_name, field, sub_field
            %td= render_field sub_field, m
          %td.remove
            %a.alert{ ng: { click: 'removeRow($index)' } }= ficon(:x)
  .plus
    %a.button.success.tiny.radius{ ng: { click: 'addRow()' } }= ficon :plus, 'Add row'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
push_type_admin-0.6.0.beta.1 app/views/push_type/fields/_matrix.html.haml