69 lines
2.1 KiB
Plaintext
69 lines
2.1 KiB
Plaintext
@model Fab2ApprovalSystem.Models.LoginModel
|
|
|
|
@{
|
|
ViewBag.Title = "Add User";
|
|
}
|
|
|
|
|
|
|
|
@using (Html.BeginForm())
|
|
{
|
|
@Html.AntiForgeryToken()
|
|
|
|
<div class="form-horizontal">
|
|
<h4>Add User</h4>
|
|
<hr />
|
|
@Html.ValidationSummary(true)
|
|
|
|
@*<div class="form-group">
|
|
@Html.LabelFor(model => model.UserID, new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.EditorFor(model => model.UserID)
|
|
@Html.ValidationMessageFor(model => model.UserID)
|
|
</div>
|
|
</div>*@
|
|
|
|
<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="Create" class="btn btn-default" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
|
|
<div>
|
|
@Html.ActionLink("Back to List", "Index")
|
|
</div>
|