1 <h2>New ${model.Type.Name}</h2>
5 #foreach($error in $flash.errors)
12 $Form.FormTag("%{action='create${model.Type.Name}', id='scaffoldingform'}")
14 $Form.FormTag("%{action='create', id='scaffoldingform'}")
17 <div id="scaffoldmain">
19 #foreach($curmodel in $Form.GetModelHierarchy($model, $instance))
21 #if($curmodel.IsNestedType)
22 $Form.FieldSet("${curmodel.Type.Name}:")
25 #foreach($field in $curmodel.Fields)
26 #if($Form.CanHandle($field))
27 <div>$Form.CreateControl($curmodel, $prefix, $field, $instance)</div>
31 #foreach($prop in $curmodel.Properties)
32 #if($Form.CanHandle($prop))
33 <div>$Form.CreateControl($curmodel, $prefix, $prop, $instance)</div>
37 #foreach($prop in $curmodel.NotMappedProperties)
38 #if($Form.CanHandle($prop))
39 <div>$Form.CreateControl($curmodel, $prefix, $prop, $instance)</div>
43 #foreach($prop in $curmodel.BelongsTo)
44 #if($Form.CanHandle($prop))
45 <div>$Form.CreateControl($curmodel, $prefix, $prop, $instance)</div>
49 #foreach($prop in $curmodel.HasMany)
50 #if($Form.CanHandle($prop))
51 <div>$Form.CreateControl($curmodel, $prefix, $prop, $instance)</div>
55 #foreach($prop in $curmodel.HasAndBelongsToMany)
56 #if($Form.CanHandle($prop))
57 <div valign="top">$Form.CreateControl($curmodel, $prefix, $prop, $instance)</div>
61 #if($curmodel.IsNestedType)
67 <input type="submit" value="Create" />
72 $PresentationHelper.LinkToBack("Back", null) | $PresentationHelper.LinkToList($model, $useModelName, "List", null)