---
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
        model_config:
          delete_if_true: 1
  
  - type: Hidden
    name: count
  
  - type: Submit
    name: submit

