clayallsopp/formotion — pull request #26 by mordaroso (2012-07-30 21:38:52+00:00)
Title: Template Row

I've added a template row to add list of things

``` ruby
{
title: 'Your nicknames',
rows: [{
title: "Add nickname",
key: :nicknames,
type: :template,
value: ['Nici', 'Sam'],
template: {
title: 'Nickname',
type: :string,
placeholder: 'Enter here',
indented: true,
deletable: true
}
}]
}
```

![Template row in action](https://dl.dropbox.com/u/1098463/Screenshots/Screen%20Shot%202012-07-30%20at%2023.31.52%20.png)

This will allow the user to add multiple values and ```form.render[:template]``` will return the results as an ```Array``` of values.

In order to make this work I had to change the whole ```UITableView``` mode to the editing mode.

Some documentation is still missing. I'll add them as soon as possible. And I think that are all the features from my side for now. I still have some refactorings I want to look at.