61 lines
1.3 KiB
Plaintext
61 lines
1.3 KiB
Plaintext
@model WebApplication1.Models.user
|
|
|
|
@{
|
|
ViewBag.Title = "Account managment";
|
|
}
|
|
<h2>Account managment</h2>
|
|
<h4>View and Edit account details</h4>
|
|
|
|
@using (Html.BeginForm())
|
|
{
|
|
@Html.AntiForgeryToken()
|
|
|
|
<div>
|
|
<h4>user</h4>
|
|
<hr />
|
|
<dl class="dl-horizontal">
|
|
<dt>
|
|
@Html.DisplayNameFor(model => model.usename)
|
|
</dt>
|
|
|
|
<dd>
|
|
@Html.DisplayFor(model => model.usename)
|
|
</dd>
|
|
|
|
<dt>
|
|
@Html.DisplayNameFor(model => model.password)
|
|
</dt>
|
|
|
|
<dd>
|
|
@Html.DisplayFor(model => model.password)
|
|
</dd>
|
|
|
|
<dt>
|
|
@Html.DisplayNameFor(model => model.displayname)
|
|
</dt>
|
|
|
|
<dd>
|
|
@Html.DisplayFor(model => model.displayname)
|
|
</dd>
|
|
<dt>
|
|
@Html.DisplayNameFor(model => model.role)
|
|
</dt>
|
|
|
|
<dd>
|
|
@ViewBag.role
|
|
</dd>
|
|
|
|
</dl>
|
|
<div class="col-md-offset-2 col-md-10">
|
|
@Html.ActionLink("edit account details", "Edit", null, new { @class = "btn btn-outline-dark" })
|
|
|
|
@Html.ActionLink("Logout", "LogOut", null, new { @class = "btn btn-outline-dark" })
|
|
</div>
|
|
<br />
|
|
<div class="col-md-offset-2 col-md-10">
|
|
@Html.ActionLink("Delete Account", "Delete", null, new { @class = "btn btn-outline-dark" })
|
|
</div>
|
|
</div>
|
|
}
|
|
|