annotate Agendas/trunk/src/Agendas.Web/Views/Account/Register.cshtml @ 37:90f0cab1febc

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