Changed to use Authenticate asp.net event instead of Authorize
[castle.git] / MonoRail / TestSiteARSupport / Views / Account / new.vm
blob881dbb862a6f7d15c0e6c1dab67139663313295a
1 $Form.FormTag("%{action='Insert'}")\r
2 \r
3   <div style="padding: 10px;">\r
4   Name: \r
5   $FormHelper.TextField("account.name") \r
6   </div>\r
7   <div style="padding: 10px;">\r
8   Email:\r
9   $FormHelper.TextField("account.email")\r
10   </div>\r
11   <div style="padding: 10px;">\r
12   Password:\r
13   $FormHelper.PasswordField("account.password")\r
14   </div>\r
15   <div style="padding: 10px;">\r
16   Confirm password:\r
17   $FormHelper.PasswordField("account.confirmationpassword")\r
18   </div>\r
19   <div style="padding: 10px;">\r
20   Licenses:\r
21   $FormHelper.Select("account.ProductLicense.id", $licenses, "%{value='Id', firstoption='Please Select', firstoptionvalue=''}")\r
22   </div>\r
23   <div style="padding: 10px;">\r
24   Permissions:\r
25 #set($list = $FormHelper.CreateCheckboxList("account.Permissions", $permissions, "%{value='Id', id='account_permissions'}"))\r
26 #foreach($it in $list)\r
27   $list.Item() $it.Name\r
28 #end\r
29   </div>\r
30   <div style="padding: 10px;">\r
31   User:\r
32 #set($list = $FormHelper.CreateCheckboxList("account.Users", $users, "%{value='Id', id='account_users'}"))\r
33 #foreach($it in $list)\r
34   $list.Item() $it.Name\r
35 #end\r
36   </div>\r
38         <a href="javascript:validator.validate();void(0)">Validate it</a>\r
40   <input type="submit" id="insertbutton" value="Insert"  />\r
42 $Form.EndFormTag()\r