Removed untyped contructor from ComponentRegistration and add a protected setter.
[castle.git] / Experiments / Generator / Generators / Scaffold / Templates / views / _form.vm
blob829701a331fc597c5daefde674b51de8962787c7
1 #if ($ScaffoldHelper.HasError($<%= SingularVarName %>))\r
2 <div id="errors">\r
3         $ScaffoldHelper.ErrorsFor($<%= SingularVarName %>)\r
4 </div>\r
5 $Effects2Helper.Shake("errors")\r
6 #end\r
7 \r
8 <div class="fields">\r
9 #foreach($prop in $ScaffoldHelper.GetProperties($<%= SingularVarName %>.GetType()))\r
10         <div class="field">\r
11                 <label for="<%= SingularVarName %>.$prop.Property.Name">$ScaffoldHelper.ToHumanName($prop)</label><br />\r
12                 $ScaffoldHelper.InputFor("<%= SingularVarName %>", $<%= SingularVarName %>, $prop)\r
13         </div>\r
14 #end\r
15 </div>\r