ASP.NET Razor website for https://wotdn.nightmare.haus
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
102 lines
4.7 KiB
102 lines
4.7 KiB
@page |
|
@model NightmareCoreWeb2.Pages.AccountModel |
|
@{ |
|
} |
|
<div class="container"> |
|
@if (string.IsNullOrEmpty(Model.AuthToken)) |
|
{ |
|
<div id="LoginForm"> |
|
<form action="?handler=Login" method="post" enctype="multipart/form-data"> |
|
<div class="form-group"> |
|
<label for="UserEmail">E-mail:</label> |
|
<input asp-for="UserEmail" type="text" id="UserEmail" /> |
|
</div> |
|
<div class="form-group"> |
|
<label for="UserPassword">Password:</label> |
|
<input asp-for="UserPassword" type="password" id="UserPassword"> |
|
</div> |
|
</form> |
|
</div> |
|
} |
|
else |
|
{ |
|
<!-- Page Content --> |
|
<div id="page-content-wrapper"> |
|
<div class="row"> |
|
<div class="col-md-5"> |
|
<div class="card"> |
|
<div class="card-header"> |
|
<h6>Account Info</h6> |
|
</div> |
|
<div class="card-body"> |
|
<p class="card-text">Username: @Model.UserAccount.Username</p> |
|
<p class="card-text">Email: @Model.UserAccount.Email</p> |
|
<p class="card-text">Last IP: @Model.UserAccount.LastIP</p> |
|
<p class="card-text">Last Login: @Model.UserAccount.LastLogin.ToLocalTime()</p> |
|
|
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
<br /> |
|
<div class="container" style="display: flex; flex-wrap: wrap;"> |
|
@if (Model.IsGM) |
|
{ |
|
@foreach (var ticket in Model.Tickets) |
|
{ |
|
@if (ticket.ClosedBy == null) |
|
{ |
|
<div class="col-md-4"> |
|
<div class="card"> |
|
<div class="card-header"> |
|
<a href="/?handler=Account&name=@ticket.OpenedBy.Username">@ticket.CharacterName</a> |
|
</div> |
|
<div class="card-body"> |
|
<p class="card-text">@ticket.Description</p> |
|
<br> |
|
|
|
<a class="btn active" href="/Account?handler=CharacterAction&guid=@ticket.Id&action=1">Rename Character</a> |
|
<a class="btn active" href="/Account?handler=CharacterAction&guid=@ticket.Id&action=8">Recustomize Character</a> |
|
<a class="btn active" href="/Account?handler=CharacterAction&guid=@ticket.Id&action=64">Change Faction</a> |
|
<a class="btn active" href="/Account?handler=CharacterAction&guid=@ticket.Id&action=128">Change Race</a> |
|
</div> |
|
<div class="card-footer text-muted"> |
|
<p>Opened @ticket.CreateTime.ToLocalTime()</p> |
|
</div> |
|
</div> |
|
</div> |
|
} |
|
} |
|
|
|
} |
|
else |
|
{ |
|
@foreach (var character in Model.OnlineCharacters) |
|
{ |
|
<div class="col-md-4"> |
|
<div class="card"> |
|
<div class="card-header"> |
|
<h6>@character.Name</h6> |
|
</div> |
|
<div class="card-body"> |
|
<a class="btn active" href="/Account?handler=CharacterAction&guid=@character.guid&action=1">Rename Character</a> |
|
<a class="btn active" href="/Account?handler=CharacterAction&guid=@character.guid&action=8">Recustomize Character</a> |
|
<a class="btn active" href="/Account?handler=CharacterAction&guid=@character.guid&action=64">Change Faction</a> |
|
<a class="btn active" href="/Account?handler=CharacterAction&guid=@character.guid&action=128">Change Race</a> |
|
</div> |
|
<div class="card-footer text-muted"> |
|
<p>Level @character.Level @character.GetRace() @character.GetClass()</p> |
|
</div> |
|
</div> |
|
</div> |
|
} |
|
} |
|
|
|
|
|
</div> |
|
</div> |
|
<br /> |
|
<!-- /#page-content-wrapper --> |
|
} |
|
|
|
</div> |