annotate Agendas/trunk/src/Agendas.Web/Views/Account/ChangePassword.cshtml @ 10:c62b77fc33f4

website inicial
author nelo@MTEySS.neluz.int
date Sun, 13 Mar 2011 18:51:06 -0300
parents
children 475be11edf56
rev   line source
10
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
1 @model Agendas.Web.Models.ChangePasswordModel
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 = "Change Password";
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>Change Password</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 change your password.
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 New 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, "Password change 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.OldPassword)
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.PasswordFor(m => m.OldPassword)
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
29 @Html.ValidationMessageFor(m => m.OldPassword)
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.NewPassword)
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.PasswordFor(m => m.NewPassword)
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
37 @Html.ValidationMessageFor(m => m.NewPassword)
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.ConfirmPassword)
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.ConfirmPassword)
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
45 @Html.ValidationMessageFor(m => m.ConfirmPassword)
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 <p>
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
49 <input type="submit" value="Change Password" />
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
50 </p>
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
51 </fieldset>
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
52 </div>
c62b77fc33f4 website inicial
nelo@MTEySS.neluz.int
parents:
diff changeset
53 }