clayallsopp/formotion — pull request #24 by mordaroso (2012-07-24 07:54:06+00:00)
Title: Subforms

Adds support for two new row types:

* Subform row
* Open the subform in a ModelViewController or push it to the NavigationController

* Back row
* Close ModalViewController or dismiss view in NavigationController

The form.render triggers render on all subforms too and merges them together.

```ruby
{
title: "Account type",
type: :subform,
subform: {
title: "Account Type",
sections: [{
key: :account_type,
select_one: true,
rows: [{
title: "Free",
key: :free,
type: :check,
}, {
title: "Basic",
value: true,
key: :basic,
type: :check,
}, {
title: "Pro",
key: :pro,
type: :check,
}]
}, {
rows: [{
title: 'Back',
type: :back
}]
}]
}
}
```

![Subview](https://dl.dropbox.com/u/1098463/Screenshots/Screen%20Shot%202012-07-24%20at%209.14.05%20.png)
![Back button](https://dl.dropbox.com/u/1098463/Screenshots/Screen%20Shot%202012-07-24%20at%209.14.08%20.png)