Hi Nigel,
you might want to have a look at
http://search.cpan.org/~cfranks/HTML-FormFu-Model-DBIC-0.03003/lib/HTML/FormFu/Model/DBIC.pm#has_many_and_many_to_many_relationships
which should give you a godd start. Repeatable elements are elements
which get repeated as many times as there is data. You can add a
checkbox, which deletes the row if this box is checked.
From the tests I found this small example:
---
auto_fieldset: 1
elements:
- type: Hidden
name: id
- type: Text
name: name
- type: Repeatable
nested_name: addresses
counter_name: count
elements:
- type: Hidden
name: id
- type: Text
name: address
- type: Checkbox
name: delete
value: 1
model_config:
delete_if_true: 1
- type: Hidden
name: count
- type: Submit
name: submit
cheers,
moritz
_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu