Initial commit
[wsti_pai.git] / Projects / Views / Manage / Index.cshtml
1 @model Projects.Models.IndexViewModel
2 @{
3     ViewBag.Title = "Manage";
4 }
5
6 <h2>@ViewBag.Title.</h2>
7
8 <p class="text-success">@ViewBag.StatusMessage</p>
9 <div>
10     <h4>Change your account settings</h4>
11     <hr />
12     <dl class="dl-horizontal">
13         <dt>Password:</dt>
14         <dd>
15             [
16             @if (Model.HasPassword)
17             {
18                 @Html.ActionLink("Change your password", "ChangePassword")
19             }
20             else
21             {
22                 @Html.ActionLink("Create", "SetPassword")
23             }
24             ]
25         </dd>
26         <dt>External Logins:</dt>
27         <dd>
28             @Model.Logins.Count [
29             @Html.ActionLink("Manage", "ManageLogins") ]
30         </dd>
31         @*
32             Phone Numbers can used as a second factor of verification in a two-factor authentication system.
33              
34              See <a href="http://go.microsoft.com/fwlink/?LinkId=403804">this article</a>
35                 for details on setting up this ASP.NET application to support two-factor authentication using SMS.
36              
37              Uncomment the following block after you have set up two-factor authentication
38         *@
39         @*  
40             <dt>Phone Number:</dt>
41             <dd>
42                 @(Model.PhoneNumber ?? "None") [
43                 @if (Model.PhoneNumber != null)
44                 {
45                     @Html.ActionLink("Change", "AddPhoneNumber")
46                     @: &nbsp;|&nbsp;
47                     @Html.ActionLink("Remove", "RemovePhoneNumber")
48                 }
49                 else
50                 {
51                     @Html.ActionLink("Add", "AddPhoneNumber")
52                 }
53                 ]
54             </dd>
55         *@
56         <dt>Two-Factor Authentication:</dt>
57         <dd>
58             <p>
59                 There are no two-factor authentication providers configured. See <a href="http://go.microsoft.com/fwlink/?LinkId=403804">this article</a>
60                 for details on setting up this ASP.NET application to support two-factor authentication.
61             </p>
62             @*@if (Model.TwoFactor)
63                 {
64                     using (Html.BeginForm("DisableTwoFactorAuthentication", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
65                     {
66                         @Html.AntiForgeryToken()
67                         <text>Enabled
68                         <input type="submit" value="Disable" class="btn btn-link" />
69                         </text>
70                     }
71                 }
72                 else
73                 {
74                     using (Html.BeginForm("EnableTwoFactorAuthentication", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
75                     {
76                         @Html.AntiForgeryToken()
77                         <text>Disabled
78                         <input type="submit" value="Enable" class="btn btn-link" />
79                         </text>
80                     }
81                 }*@
82         </dd>
83     </dl>
84 </div>