Changed to use Authenticate asp.net event instead of Authorize
[castle.git] / Samples / MonoRail / BinderSample / BinderSample.Web / Views / Approach1 / editpublisher.vm
blobf25d49f879b047c7ff22c3a16261804289cd9e35
1 \r
2 <h3>Using the DataBind attribute and SmartDispatcherController</h3>\r
3 \r
4 #if($Flash.message)\r
5 <div>$Flash.message</div>\r
6 #end\r
7 \r
8 $Form.FormTag("%{action='update'}")\r
9 \r
10 <h4>Publisher</h4>\r
12 $Form.HiddenField("publisher.id")\r
14 Name: $Form.TextField("publisher.name")\r
16 <h4>Books</h4>\r
18 <table>\r
19   <tr>\r
20         <td>&nbsp;</td>\r
21         <td>Name</td>\r
22         <td>Author</td>\r
23   </tr>\r
24 #foreach($book in $publisher.Books)\r
25   <tr>\r
26         <td>\r
27         $book.Id\r
28         </td>\r
29         <td>\r
30   $Form.HiddenField("bookids", $book.Id)\r
31   $Form.TextFieldValue("booknames", $book.name)\r
32         </td>\r
33         <td>\r
34   $Form.TextFieldValue("bookauthors", $book.author)\r
35         </td>\r
36   </tr>\r
37 #end\r
38 </table>\r
40 <br/>\r
42 $Form.Submit("Save")\r
44 $Form.EndFormTag()\r