1 <h2>Edit $Form.TextHelper.PascalCaseToWord($model.Type.Name)</h2>
\r
5 #foreach($error in $flash.errors)
\r
12 $Form.FormTag("%{action='update${model.Type.Name}', useCurrentRouteParams='true', id='scaffoldingform'}")
\r
14 $Form.FormTag("%{action='update', useCurrentRouteParams='true', id='scaffoldingform'}")
\r
17 $Form.HiddenField("${prefix}.${keyprop.Name}")
\r
19 <div id="scaffoldmain">
\r
21 #foreach($model in $Form.GetModelHierarchy($model, $instance))
\r
23 #if($model.IsNestedType)
\r
24 $Form.FieldSet($Form.TextHelper.PascalCaseToWord($model.ParentNested.Property.Name))
\r
27 #foreach($field in $model.Fields)
\r
28 #if($Form.CanHandle($field))
\r
29 <div>$Form.CreateControl($model, $prefix, $field, $instance)</div>
\r
33 #foreach($prop in $model.Properties)
\r
34 #if($Form.CanHandle($prop))
\r
35 <div>$Form.CreateControl($model, $prefix, $prop, $instance)</div>
\r
39 #foreach($prop in $model.NotMappedProperties)
\r
40 #if($Form.CanHandle($prop))
\r
41 <div>$Form.CreateControl($model, $prefix, $prop, $instance)</div>
\r
45 #foreach($prop in $model.BelongsTo)
\r
46 #if($Form.CanHandle($prop))
\r
47 <div>$Form.CreateControl($model, $prefix, $prop, $instance)</div>
\r
51 #foreach($prop in $model.HasMany)
\r
52 #if($Form.CanHandle($prop))
\r
53 <div>$Form.CreateControl($model, $prefix, $prop, $instance)</div>
\r
57 #foreach($prop in $model.HasAndBelongsToMany)
\r
58 #if($Form.CanHandle($prop))
\r
59 <p valign="top">$Form.CreateControl($model, $prefix, $prop, $instance)</div>
\r
63 #if($model.IsNestedType)
\r
69 $Form.Submit("Save Changes")
\r
74 $PresentationHelper.LinkToBack("Back", null) | $PresentationHelper.LinkToList($model, $useModelName, "List", null)
\r