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

Autenticando con twitter (falta emprolijar el código, pero autentica!)
author Nelo@Kenia.neluz.int
date Fri, 03 Jun 2011 21:35:59 -0300
parents 08dbe42fdde1
children 1eb5a0e531bf
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 <h2>Create a New Account</h2>
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
3 <p>
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
4 Use the form below to create a new account.
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
5 </p>
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
6 <p>
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
7 Passwords are required to be a minimum of @ViewBag.PasswordLength characters in length.
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
8 </p>
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
9
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
10 <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
11 <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
12
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
13 @using (Html.BeginForm()) {
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
14 @Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.")
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
15 <div>
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
16 <fieldset>
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
17 <legend>Account Information</legend>
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
18
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
19 <div class="editor-label">
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
20 @Html.LabelFor(m => m.UserName)
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
21 </div>
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
22 <div class="editor-field">
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
23 @Html.TextBoxFor(m => m.UserName)
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
24 @Html.ValidationMessageFor(m => m.UserName)
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
25 </div>
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
26
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
27 <div class="editor-label">
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
28 @Html.LabelFor(m => m.Email)
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
29 </div>
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
30 <div class="editor-field">
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
31 @Html.TextBoxFor(m => m.Email)
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
32 @Html.ValidationMessageFor(m => m.Email)
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
33 </div>
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
34
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
35 <div class="editor-label">
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
36 @Html.LabelFor(m => m.Password)
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
37 </div>
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
38 <div class="editor-field">
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
39 @Html.PasswordFor(m => m.Password)
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
40 @Html.ValidationMessageFor(m => m.Password)
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
41 </div>
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
42
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
43 <div class="editor-label">
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
44 @Html.LabelFor(m => m.ConfirmPassword)
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
45 </div>
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
46 <div class="editor-field">
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
47 @Html.PasswordFor(m => m.ConfirmPassword)
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
48 @Html.ValidationMessageFor(m => m.ConfirmPassword)
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
49 </div>
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
50
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
51 <p>
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
52 <input type="submit" value="Register" />
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
53 </p>
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
54 </fieldset>
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
55 </div>
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
56 }