Project-Unite/Project-Unite/Views/Manage/Index.cshtml

132 lines
5.5 KiB
Text
Raw Normal View History

2017-03-20 16:45:17 -04:00
@model Project_Unite.Models.ApplicationUser
@{
ViewBag.Title = "My profile";
}
2017-05-17 19:12:58 -04:00
<p class="text-success">@ViewBag.StatusMessage</p>
2017-03-20 16:45:17 -04:00
<div class="row">
2017-05-17 19:12:58 -04:00
<div class="col-xs-4">
<h3><img src="@Model.AvatarUrl" width="64" height="64" /> @if (string.IsNullOrWhiteSpace(Model.FullName))
2017-03-20 16:45:17 -04:00
{ <strong> @Model.DisplayName </strong>}
else {
<strong>@Model.FullName</strong> <em>(@Model.DisplayName)</em>
}</h3>
2017-05-17 19:12:58 -04:00
<ul id="tabs" data-tabs="tabs" class="nav nav-pills nav-stacked" role="tablist">
2017-03-20 16:45:17 -04:00
<li class="active"><a data-toggle="tab" href="#t_profile">Profile</a></li>
<li><a data-toggle="tab" href="#t_badges">Badges</a></li>
<li><a data-toggle="tab" href="#t_posts">Posts</a></li>
<li><a data-toggle="tab" href="#t_messages">Messages</a></li>
<li><a data-toggle="tab" href="#t_preferences">Preferences</a></li>
</ul>
2017-05-17 19:12:58 -04:00
</div>
<div class="col-xs-8">
2017-03-20 16:45:17 -04:00
<div class="tab-content">
<div class="tab-pane active" id="t_profile">
<table class="table">
2017-03-25 17:14:45 -04:00
<tr>
<td><strong>Avatar</strong></td>
<td><img src="@Model.AvatarUrl" width="128" height="128" /> @Html.ActionLink("Change", "ListAvatars")</td>
</tr>
2017-03-20 16:45:17 -04:00
<tr>
2017-03-25 15:59:50 -04:00
<td style="width:35%;"><strong>Full name:</strong></td>
2017-03-20 16:45:17 -04:00
<td>
2017-03-25 15:14:27 -04:00
@using(Html.BeginForm("ChangeFullName", "Manage"))
{
@Html.AntiForgeryToken()
@Html.TextBoxFor(Model=>Model.FullName, new { @class="form-control"})
<input type="submit" value="Set" class="btn btn-default" />
}
2017-03-20 16:45:17 -04:00
</td>
</tr>
<tr>
<td><strong>Display name:</strong></td>
<td><p>@Model.DisplayName</p></td>
</tr>
<tr>
<td><strong>Codepoints:</strong><p>If you have your in-game system linked with your account, your Codepoints will be shown here.</p></td>
<td><p>@Model.Codepoints</p></td>
</tr>
2017-03-25 15:14:27 -04:00
<tr>
<td><strong>Hobbies</strong><br />What do you like to do? <em>Separate each hobby with a comma.</em></td>
<td>
@using (Html.BeginForm("ChangeHobbies", "Manage"))
{
@Html.AntiForgeryToken()
@Html.TextBoxFor(Model => Model.Hobbies, new { @class = "form-control" })
<input type="submit" value="Set" class="btn btn-default" />
}
</td>
</tr>
<tr>
<td><strong>Interests</strong><br />What are you interested in? <em>Separate each interest with a comma.</em></td>
<td>
@using (Html.BeginForm("ChangeInterests", "Manage"))
{
@Html.AntiForgeryToken()
@Html.TextBoxFor(Model => Model.Interests, new { @class = "form-control" })
<input type="submit" value="Set" class="btn btn-default" />
}
</td>
</tr>
<tr>
<td><strong>About you</strong><br />Introduce yourself! <em>Markdown formatting is supported.</em></td>
<td>
@using (Html.BeginForm("ChangeBio", "Manage"))
{
@Html.AntiForgeryToken()
@Html.TextAreaFor(Model => Model.Bio, new { rows="5", @class = "form-control" })
<input type="submit" value="Set" class="btn btn-default" />
}
</td>
</tr>
2017-03-20 16:45:17 -04:00
<tr>
2017-03-25 15:14:27 -04:00
<td><strong>Website</strong><br/>If you have a website, post its URL here!</td>
2017-03-20 16:45:17 -04:00
<td>
2017-03-25 15:14:27 -04:00
@using (Html.BeginForm("ChangeWebsite", "Manage"))
{
@Html.AntiForgeryToken()
@Html.TextBoxFor(Model => Model.Website, new { @class = "form-control" })
<input type="submit" value="Set" class="btn btn-default" />
}
2017-03-20 16:45:17 -04:00
</td>
2017-03-25 15:14:27 -04:00
<tr/>
<tr>
<td><strong>YouTube</strong><br />If you have a YouTube channel, post its URL here!</td>
<td>
@using (Html.BeginForm("ChangeYouTube", "Manage"))
{
@Html.AntiForgeryToken()
@Html.TextBoxFor(Model => Model.YoutubeUrl, new { @class = "form-control" })
<input type="submit" value="Set" class="btn btn-default" />
}
</td>
2017-03-20 16:45:17 -04:00
</tr>
2017-03-25 15:14:27 -04:00
2017-03-20 16:45:17 -04:00
</table>
</div>
<div class="tab-pane" id="t_badges">
<h4>Not yet implemented.</h4>
<p>This feature has not been implemented just yet.</p>
</div>
<div class="tab-pane" id="t_posts">
<h4>Not yet implemented.</h4>
<p>This feature has not been implemented just yet.</p>
</div>
<div class="tab-pane" id="t_messages">
<h4>Not yet implemented.</h4>
<p>This feature has not been implemented just yet.</p>
</div>
<div class="tab-pane" id="t_preferences">
2017-03-23 10:08:20 -04:00
<table class="table">
<tr>
<td style="width:25%"><strong>Password:</strong></td>
<td>@Html.ActionLink("Change", "ChangePassword", "Manage", null, new { @class = "btn btn-default" })</td>
</tr>
</table>
2017-03-20 16:45:17 -04:00
</div>
</div>
2017-05-17 19:12:58 -04:00
</div>
2017-03-20 16:45:17 -04:00
</div>