56 lines
1.9 KiB
Plaintext
56 lines
1.9 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 class="form-horizontal">
|
|
<h4>user</h4>
|
|
<hr />
|
|
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
|
|
@Html.HiddenFor(model => model.ID)
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.usename, htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.EditorFor(model => model.usename, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
|
|
@Html.ValidationMessageFor(model => model.usename, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.password, htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
<input type="password" name="password" class="form-control"/>
|
|
@Html.ValidationMessageFor(model => model.password, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.displayname, htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.EditorFor(model => model.displayname, new { htmlAttributes = new { @class = "form-control" } })
|
|
@Html.ValidationMessageFor(model => model.displayname, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
<br />
|
|
|
|
<div class="form-group">
|
|
<div class="col-md-offset-2 col-md-10">
|
|
|
|
@Html.ActionLink("back to account managment", "index", null, new { @class = "btn btn-outline-dark" })
|
|
|
|
<input type="submit" value="Save" class="btn btn-outline-dark" />
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
|