From cdc61eb4ea5309769ad4db84d92594e4dc3dff67 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 20 Mar 2017 16:45:17 -0400 Subject: Initial commit (azure deploy test) --- Project-Unite/Views/Manage/AddPhoneNumber.cshtml | 29 ++++++++ Project-Unite/Views/Manage/ChangePassword.cshtml | 40 +++++++++++ Project-Unite/Views/Manage/Index.cshtml | 81 ++++++++++++++++++++++ Project-Unite/Views/Manage/ManageLogins.cshtml | 70 +++++++++++++++++++ Project-Unite/Views/Manage/SetPassword.cshtml | 39 +++++++++++ .../Views/Manage/VerifyPhoneNumber.cshtml | 31 +++++++++ 6 files changed, 290 insertions(+) create mode 100644 Project-Unite/Views/Manage/AddPhoneNumber.cshtml create mode 100644 Project-Unite/Views/Manage/ChangePassword.cshtml create mode 100644 Project-Unite/Views/Manage/Index.cshtml create mode 100644 Project-Unite/Views/Manage/ManageLogins.cshtml create mode 100644 Project-Unite/Views/Manage/SetPassword.cshtml create mode 100644 Project-Unite/Views/Manage/VerifyPhoneNumber.cshtml (limited to 'Project-Unite/Views/Manage') diff --git a/Project-Unite/Views/Manage/AddPhoneNumber.cshtml b/Project-Unite/Views/Manage/AddPhoneNumber.cshtml new file mode 100644 index 0000000..07f35b0 --- /dev/null +++ b/Project-Unite/Views/Manage/AddPhoneNumber.cshtml @@ -0,0 +1,29 @@ +@model Project_Unite.Models.AddPhoneNumberViewModel +@{ + ViewBag.Title = "Phone Number"; +} + +

@ViewBag.Title.

+ +@using (Html.BeginForm("AddPhoneNumber", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) +{ + @Html.AntiForgeryToken() +

Add a phone number

+
+ @Html.ValidationSummary("", new { @class = "text-danger" }) +
+ @Html.LabelFor(m => m.Number, new { @class = "col-md-2 control-label" }) +
+ @Html.TextBoxFor(m => m.Number, new { @class = "form-control" }) +
+
+
+
+ +
+
+} + +@section Scripts { + @Scripts.Render("~/bundles/jqueryval") +} diff --git a/Project-Unite/Views/Manage/ChangePassword.cshtml b/Project-Unite/Views/Manage/ChangePassword.cshtml new file mode 100644 index 0000000..f008697 --- /dev/null +++ b/Project-Unite/Views/Manage/ChangePassword.cshtml @@ -0,0 +1,40 @@ +@model Project_Unite.Models.ChangePasswordViewModel +@{ + ViewBag.Title = "Change Password"; +} + +

@ViewBag.Title.

+ +@using (Html.BeginForm("ChangePassword", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) +{ + @Html.AntiForgeryToken() +

Change Password Form

+
+ @Html.ValidationSummary("", new { @class = "text-danger" }) +
+ @Html.LabelFor(m => m.OldPassword, new { @class = "col-md-2 control-label" }) +
+ @Html.PasswordFor(m => m.OldPassword, new { @class = "form-control" }) +
+
+
+ @Html.LabelFor(m => m.NewPassword, new { @class = "col-md-2 control-label" }) +
+ @Html.PasswordFor(m => m.NewPassword, new { @class = "form-control" }) +
+
+
+ @Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-md-2 control-label" }) +
+ @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control" }) +
+
+
+
+ +
+
+} +@section Scripts { + @Scripts.Render("~/bundles/jqueryval") +} \ No newline at end of file diff --git a/Project-Unite/Views/Manage/Index.cshtml b/Project-Unite/Views/Manage/Index.cshtml new file mode 100644 index 0000000..8b18401 --- /dev/null +++ b/Project-Unite/Views/Manage/Index.cshtml @@ -0,0 +1,81 @@ +@model Project_Unite.Models.ApplicationUser +@{ + ViewBag.Title = "My profile"; +} + +
+

@if (string.IsNullOrWhiteSpace(Model.FullName)) + { @Model.DisplayName } + else { + @Model.FullName (@Model.DisplayName) + }

+
+ + +

@ViewBag.StatusMessage

+ +
+ + +
+
+ + + + + + + + + + + + + + + + + +
Full name: + @if (string.IsNullOrWhiteSpace(Model.FullName)) + { +

Not provided.

+ } + else + { +

@Model.FullName

+ } +
Display name:

@Model.DisplayName

Codepoints:

If you have your in-game system linked with your account, your Codepoints will be shown here.

@Model.Codepoints

Links + @if (!string.IsNullOrWhiteSpace(Model.YoutubeUrl)) { + + } +    + @if (!string.IsNullOrWhiteSpace(Model.Website)) { + Website + } +
+
+
+

Not yet implemented.

+

This feature has not been implemented just yet.

+
+
+

Not yet implemented.

+

This feature has not been implemented just yet.

+
+
+

Not yet implemented.

+

This feature has not been implemented just yet.

+
+
+

Not yet implemented.

+

This feature has not been implemented just yet.

+
+
+
\ No newline at end of file diff --git a/Project-Unite/Views/Manage/ManageLogins.cshtml b/Project-Unite/Views/Manage/ManageLogins.cshtml new file mode 100644 index 0000000..709cedc --- /dev/null +++ b/Project-Unite/Views/Manage/ManageLogins.cshtml @@ -0,0 +1,70 @@ +@model Project_Unite.Models.ManageLoginsViewModel +@using Microsoft.Owin.Security +@{ + ViewBag.Title = "Manage your external logins"; +} + +

@ViewBag.Title.

+ +

@ViewBag.StatusMessage

+@{ + var loginProviders = Context.GetOwinContext().Authentication.GetExternalAuthenticationTypes(); + if (loginProviders.Count() == 0) { +
+

+ There are no external authentication services configured. See this article + for details on setting up this ASP.NET application to support logging in via external services. +

+
+ } + else + { + if (Model.CurrentLogins.Count > 0) + { +

Registered Logins

+ + + @foreach (var account in Model.CurrentLogins) + { + + + + + } + +
@account.LoginProvider + @if (ViewBag.ShowRemoveButton) + { + using (Html.BeginForm("RemoveLogin", "Manage")) + { + @Html.AntiForgeryToken() +
+ @Html.Hidden("loginProvider", account.LoginProvider) + @Html.Hidden("providerKey", account.ProviderKey) + +
+ } + } + else + { + @:   + } +
+ } + if (Model.OtherLogins.Count > 0) + { + using (Html.BeginForm("LinkLogin", "Manage")) + { + @Html.AntiForgeryToken() +
+

+ @foreach (AuthenticationDescription p in Model.OtherLogins) + { + + } +

+
+ } + } + } +} diff --git a/Project-Unite/Views/Manage/SetPassword.cshtml b/Project-Unite/Views/Manage/SetPassword.cshtml new file mode 100644 index 0000000..e8711e9 --- /dev/null +++ b/Project-Unite/Views/Manage/SetPassword.cshtml @@ -0,0 +1,39 @@ +@model Project_Unite.Models.SetPasswordViewModel +@{ + ViewBag.Title = "Create Password"; +} + +

@ViewBag.Title.

+

+ You do not have a local username/password for this site. Add a local + account so you can log in without an external login. +

+ +@using (Html.BeginForm("SetPassword", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) +{ + @Html.AntiForgeryToken() + +

Create Local Login

+
+ @Html.ValidationSummary("", new { @class = "text-danger" }) +
+ @Html.LabelFor(m => m.NewPassword, new { @class = "col-md-2 control-label" }) +
+ @Html.PasswordFor(m => m.NewPassword, new { @class = "form-control" }) +
+
+
+ @Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-md-2 control-label" }) +
+ @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control" }) +
+
+
+
+ +
+
+} +@section Scripts { + @Scripts.Render("~/bundles/jqueryval") +} \ No newline at end of file diff --git a/Project-Unite/Views/Manage/VerifyPhoneNumber.cshtml b/Project-Unite/Views/Manage/VerifyPhoneNumber.cshtml new file mode 100644 index 0000000..8d3098d --- /dev/null +++ b/Project-Unite/Views/Manage/VerifyPhoneNumber.cshtml @@ -0,0 +1,31 @@ +@model Project_Unite.Models.VerifyPhoneNumberViewModel +@{ + ViewBag.Title = "Verify Phone Number"; +} + +

@ViewBag.Title.

+ +@using (Html.BeginForm("VerifyPhoneNumber", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) +{ + @Html.AntiForgeryToken() + @Html.Hidden("phoneNumber", @Model.PhoneNumber) +

Enter verification code

+
@ViewBag.Status
+
+ @Html.ValidationSummary("", new { @class = "text-danger" }) +
+ @Html.LabelFor(m => m.Code, new { @class = "col-md-2 control-label" }) +
+ @Html.TextBoxFor(m => m.Code, new { @class = "form-control" }) +
+
+
+
+ +
+
+} + +@section Scripts { + @Scripts.Render("~/bundles/jqueryval") +} -- cgit v1.2.3