Sha256: 6d2622a41cd39642b5f6c3d128008b8cc5f36b61cfb92ce9fc020ef3c2134b01
Contents?: true
Size: 643 Bytes
Versions: 7
Compression:
Stored size: 643 Bytes
Contents
= f.label field.json_key, field.label .repeater-field{ ng: { controller: 'RepeaterFieldCtrl', init: "initRows(#{ f.object.send(field.json_key).to_json })" } } %table %tbody %tr{ ng: { repeat: 'row in rows track by $index' } } %td= f.send field.form_helper, nil, field.html_options.merge(name: "#{ f.object_name }[#{ field.json_key }][]", id: "#{ f.object_name }_#{ field.json_key }_{{ $index }}", value: nil, :'ng-model' => 'rows[$index]') %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
7 entries across 7 versions & 1 rubygems