comparison Agendas/trunk/src/Agendas.Web/Views/Account/Register.cshtml @ 10:c62b77fc33f4

website inicial
author nelo@MTEySS.neluz.int
date Sun, 13 Mar 2011 18:51:06 -0300
parents
children 475be11edf56
comparison
equal deleted inserted replaced
9:c90492faf268 10:c62b77fc33f4
1 @model Agendas.Web.Models.RegisterModel
2
3 @{
4 ViewBag.Title = "Register";
5 }
6
7 <h2>Create a New Account</h2>
8 <p>
9 Use the form below to create a new account.
10 </p>
11 <p>
12 Passwords are required to be a minimum of @ViewBag.PasswordLength characters in length.
13 </p>
14
15 <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
16 <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
17
18 @using (Html.BeginForm()) {
19 @Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.")
20 <div>
21 <fieldset>
22 <legend>Account Information</legend>
23
24 <div class="editor-label">
25 @Html.LabelFor(m => m.UserName)
26 </div>
27 <div class="editor-field">
28 @Html.TextBoxFor(m => m.UserName)
29 @Html.ValidationMessageFor(m => m.UserName)
30 </div>
31
32 <div class="editor-label">
33 @Html.LabelFor(m => m.Email)
34 </div>
35 <div class="editor-field">
36 @Html.TextBoxFor(m => m.Email)
37 @Html.ValidationMessageFor(m => m.Email)
38 </div>
39
40 <div class="editor-label">
41 @Html.LabelFor(m => m.Password)
42 </div>
43 <div class="editor-field">
44 @Html.PasswordFor(m => m.Password)
45 @Html.ValidationMessageFor(m => m.Password)
46 </div>
47
48 <div class="editor-label">
49 @Html.LabelFor(m => m.ConfirmPassword)
50 </div>
51 <div class="editor-field">
52 @Html.PasswordFor(m => m.ConfirmPassword)
53 @Html.ValidationMessageFor(m => m.ConfirmPassword)
54 </div>
55
56 <p>
57 <input type="submit" value="Register" />
58 </p>
59 </fieldset>
60 </div>
61 }