Sha256: b9f49114641898bd9b983886c78148ef6593bf64cb0be23425b62f7c4f02dd6e
Contents?: true
Size: 627 Bytes
Versions: 1
Compression:
Stored size: 627 Bytes
Contents
= f.label field.name, field.label .repeater-field{ ng: { controller: 'RepeaterFieldCtrl', init: "initRows(#{ f.object.send(field.name).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.name }][]", id: "#{ f.object_name }_#{ field.name }_{{ $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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
push_type_admin-0.5.0.alpha.2 | app/views/push_type/fields/_repeater.html.haml |