Sha256: 363e3598fbfd631c7d162fa1d21960941ce02ca3c4bf4fde2bcdc81de42c55c2

Contents?: true

Size: 546 Bytes

Versions: 1

Compression:

Stored size: 546 Bytes

Contents

.repeater-field{ ng: { controller: 'RepeaterFieldCtrl', init: "initRows(#{ field.json_value.to_json })" } }
  %table
    %tbody
      %tr{ ng: { repeat: 'row in rows track by $index' } }
        = f.fields_for field.name do |m|
          %td
            - merge_repeater_html_options f.object_name, field, field.field
            = render_field field.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/_repeater.html.haml