gitana/alpaca — pull request #15 by JocelynDelalande (2013-01-09 16:25:18+00:00)
Title: Added inline view

Following my reflections about a table layout (see #13 ), I ended on an inline view, that allows me to stack an `ArrayField` of `ObjectField` with one `ObjectField` per line.

For example, with the schema

title: "Liste des Jours fériés",
type: "array",
items: {
type: "object",
properties: {
enabled: {title: "Actif", type: "boolean"},
name : {title: "Dénomination", required: true},
date : {title: "Date", type: "object", required: true
properties: {
dayOfMonth: {title: 'Jour', "enum": DAYS_OF_MONTH},
month: {title: 'Mois', "enum": MONTHS,}
}
},
computed: {title: "Computed", type: "string", default: false},
},
},

and the option

inline: true

I get something like :
![inlined-object](https://f.cloud.github.com/assets/429633/53770/e3fc9ad0-5a75-11e2-8c62-90c04ec2a29c.png)