Fixing an issue with output parameters that are of type IntPtr
[castle.git] / MonoRail / Castle.MonoRail.ActiveRecordSupport / Scaffold / Templates / edit.vm
blob02ca41883e8dbaf6e899419ea545107e2a72e9e6
1 <h2>Edit $Form.TextHelper.PascalCaseToWord($model.Type.Name)</h2>\r
2 \r
3 #if($flash.errors)\r
4 <ul id="errors">\r
5 #foreach($error in $flash.errors)\r
6   <li>$error</li>\r
7 #end\r
8 </ul>\r
9 #end\r
11 #if($useModelName)\r
12 $Form.FormTag("%{action='update${model.Type.Name}', useCurrentRouteParams='true', id='scaffoldingform'}")\r
13 #else\r
14 $Form.FormTag("%{action='update', useCurrentRouteParams='true', id='scaffoldingform'}")\r
15 #end\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
25 #end\r
27 #foreach($field in $model.Fields)\r
28 #if($Form.CanHandle($field))\r
29 <div>$Form.CreateControl($model, $prefix, $field, $instance)</div>\r
30 #end\r
31 #end\r
33 #foreach($prop in $model.Properties)\r
34 #if($Form.CanHandle($prop))\r
35 <div>$Form.CreateControl($model, $prefix, $prop, $instance)</div>\r
36 #end\r
37 #end\r
39 #foreach($prop in $model.NotMappedProperties)\r
40 #if($Form.CanHandle($prop))\r
41 <div>$Form.CreateControl($model, $prefix, $prop, $instance)</div>\r
42 #end\r
43 #end\r
45 #foreach($prop in $model.BelongsTo)\r
46 #if($Form.CanHandle($prop))\r
47 <div>$Form.CreateControl($model, $prefix, $prop, $instance)</div>\r
48 #end\r
49 #end\r
51 #foreach($prop in $model.HasMany)\r
52 #if($Form.CanHandle($prop))\r
53 <div>$Form.CreateControl($model, $prefix, $prop, $instance)</div>\r
54 #end\r
55 #end\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
60 #end\r
61 #end\r
63 #if($model.IsNestedType)\r
64   $Form.EndFieldSet()\r
65 #end\r
67 #end\r
69 $Form.Submit("Save Changes")\r
71 </div>\r
73 <p>\r
74 $PresentationHelper.LinkToBack("Back", null) | $PresentationHelper.LinkToList($model, $useModelName, "List", null)\r
75 </p>\r
77 $Form.EndFormTag()