1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
@model Project_Unite.Models.ApplicationUser
@{
ViewBag.Title = "My profile";
}
<div class="row">
<h3><img src="@Model.AvatarUrl" width="64" height="64" /> @if (string.IsNullOrWhiteSpace(Model.FullName))
{ <strong> @Model.DisplayName </strong>}
else {
<strong>@Model.FullName</strong> <em>(@Model.DisplayName)</em>
}</h3>
</div>
<p class="text-success">@ViewBag.StatusMessage</p>
<div class="row">
<ul id="tabs" data-tabs="tabs" class="nav nav-tabs" role="tablist">
<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>
<div class="tab-content">
<div class="tab-pane active" id="t_profile">
<table class="table">
<tr>
<td style="width:35%;"><strong>Full name:</strong></td>
<td>
@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" />
}
</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>
<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>
<tr>
<td><strong>Website</strong><br/>If you have a website, post its URL here!</td>
<td>
@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" />
}
</td>
<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>
</tr>
</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">
<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>
</div>
</div>
</div>
|