Removed untyped contructor from ComponentRegistration and add a protected setter.
[castle.git] / Experiments / Generator / Generators / Scaffold / Templates / views / view.vm
blobbb88ba8a196774946f15fc4111719e50159fe7c8
1 #set ($title = "View <%= SingularHumanName %>")\r
2 \r
3 <div class="fields">\r
4 #foreach($prop in $ScaffoldHelper.GetProperties($<%= SingularVarName %>.GetType()))\r
5         <div class="field">\r
6                 <b>$ScaffoldHelper.ToHumanName($prop) : </b>\r
7                 $!ScaffoldHelper.GetPropertyValue($<%= SingularVarName %>, $prop)\r
8         </div>\r
9 #end\r
10 </div>\r
12 <div class="actions">\r
13         $HtmlHelper.LinkTo("Edit", "<%= ControllerLink %>", "edit", $<%= SingularVarName %>.Id)\r
14         $HtmlHelper.LinkTo("Back", "<%= ControllerLink %>", "list")\r
15 </div>\r