65 lines
1.8 KiB
Plaintext
65 lines
1.8 KiB
Plaintext
@model Fab2ApprovalSystem.Models.LoginModel
|
|
|
|
@{
|
|
ViewBag.Title = "Edit";
|
|
}
|
|
|
|
<h2>Edit</h2>
|
|
|
|
@using (Html.BeginForm())
|
|
{
|
|
@Html.AntiForgeryToken()
|
|
|
|
<div class="form-horizontal">
|
|
<h4>LoginModel</h4>
|
|
<hr />
|
|
@Html.ValidationSummary(true)
|
|
@Html.HiddenFor(model => model.UserID)
|
|
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.LoginID, new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.EditorFor(model => model.LoginID)
|
|
@Html.ValidationMessageFor(model => model.LoginID)
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.FirstName, new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.EditorFor(model => model.FirstName)
|
|
@Html.ValidationMessageFor(model => model.FirstName)
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.LastName, new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.EditorFor(model => model.LastName)
|
|
@Html.ValidationMessageFor(model => model.LastName)
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.IsAdmin, new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.EditorFor(model => model.IsAdmin)
|
|
@Html.ValidationMessageFor(model => model.IsAdmin)
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<div class="col-md-offset-2 col-md-10">
|
|
<input type="submit" value="Save" class="btn btn-default" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
|
|
<div>
|
|
@Html.ActionLink("Back to List", "Index")
|
|
</div>
|