From 84285d2ffb84f470ab7b09708075427ae31541f0 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 25 Mar 2017 15:14:27 -0400 Subject: Minimal profile editing. --- Project-Unite/Views/Manage/Index.cshtml | 75 ++++++++++++++++++++++++++------- 1 file changed, 59 insertions(+), 16 deletions(-) (limited to 'Project-Unite/Views') diff --git a/Project-Unite/Views/Manage/Index.cshtml b/Project-Unite/Views/Manage/Index.cshtml index ac7d8bc..45d097a 100644 --- a/Project-Unite/Views/Manage/Index.cshtml +++ b/Project-Unite/Views/Manage/Index.cshtml @@ -29,14 +29,12 @@ Full name: - @if (string.IsNullOrWhiteSpace(Model.FullName)) - { -

Not provided.

- } - else - { -

@Model.FullName

- } + @using(Html.BeginForm("ChangeFullName", "Manage")) + { + @Html.AntiForgeryToken() + @Html.TextBoxFor(Model=>Model.FullName, new { @class="form-control"}) + + } @@ -47,18 +45,63 @@ Codepoints:

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

@Model.Codepoints

+ + Hobbies
What do you like to do? Separate each hobby with a comma. + + @using (Html.BeginForm("ChangeHobbies", "Manage")) + { + @Html.AntiForgeryToken() + @Html.TextBoxFor(Model => Model.Hobbies, new { @class = "form-control" }) + + } + + + + Interests
What are you interested in? Separate each interest with a comma. + + @using (Html.BeginForm("ChangeInterests", "Manage")) + { + @Html.AntiForgeryToken() + @Html.TextBoxFor(Model => Model.Interests, new { @class = "form-control" }) + + } + + + + About you
Introduce yourself! Markdown formatting is supported. + + @using (Html.BeginForm("ChangeBio", "Manage")) + { + @Html.AntiForgeryToken() + @Html.TextAreaFor(Model => Model.Bio, new { rows="5", @class = "form-control" }) + + } + + - Links + Website
If you have a website, post its URL here! - @if (!string.IsNullOrWhiteSpace(Model.YoutubeUrl)) { - - } -    - @if (!string.IsNullOrWhiteSpace(Model.Website)) { - Website - } + @using (Html.BeginForm("ChangeWebsite", "Manage")) + { + @Html.AntiForgeryToken() + @Html.TextBoxFor(Model => Model.Website, new { @class = "form-control" }) + + } + + + YouTube
If you have a YouTube channel, post its URL here! + + @using (Html.BeginForm("ChangeYouTube", "Manage")) + { + @Html.AntiForgeryToken() + @Html.TextBoxFor(Model => Model.YoutubeUrl, new { @class = "form-control" }) + + } + + +
-- cgit v1.2.3