92 lines
2.4 KiB
Plaintext
92 lines
2.4 KiB
Plaintext
@model EnVisage.AspNetUser
|
|
|
|
@{
|
|
ViewBag.Title = "Delete " + Model.UserName;
|
|
}
|
|
|
|
@section Scripts
|
|
{
|
|
<script type="text/javascript">
|
|
emulateNavUrl = "/User";
|
|
init.push(function() {
|
|
StartEdit('User', '@Model.Id', "#btnDelete", "", "erorMsgPlaceholder");
|
|
$('#btnDelete').click(function () {
|
|
if ($('#frmDelete').valid())
|
|
blockUI();
|
|
});
|
|
});
|
|
</script>
|
|
}
|
|
|
|
<div id="erorMsgPlaceholder"></div>
|
|
|
|
<div class="panel panel-warning panel-dark">
|
|
<div class="panel-heading">
|
|
<span class="panel-title">Warning</span>
|
|
<div class="panel-heading-controls">
|
|
<div class="panel-heading-icon"><i class="fa fa-warning"></i></div>
|
|
</div>
|
|
</div>
|
|
<div class="panel-body">
|
|
<p>You are about to delete the @Model.UserName. Are you sure you want to delete it?</p>
|
|
@using (Html.BeginForm("Delete", "User", FormMethod.Post, new { id = "frmDelete" }))
|
|
{
|
|
@Html.AntiForgeryToken()
|
|
|
|
<a class="btn btn-primary" href="@Url.Action("Index", "User")"><i class="fa fa-backward"></i> Back to list</a>
|
|
<button type="submit" class="btn btn-danger" id="btnDelete"><i class="fa fa-trash-o"></i> Delete</button>
|
|
}
|
|
</div>
|
|
</div>
|
|
|
|
@*<h2>Delete</h2>
|
|
|
|
<h3>Are you sure you want to delete this?</h3>
|
|
<div>
|
|
<h4>AspNetUser</h4>
|
|
<hr />
|
|
<dl class="dl-horizontal">
|
|
<dt>
|
|
@Html.DisplayNameFor(model => model.UserName)
|
|
</dt>
|
|
|
|
<dd>
|
|
@Html.DisplayFor(model => model.UserName)
|
|
</dd>
|
|
|
|
<dt>
|
|
@Html.DisplayNameFor(model => model.PasswordHash)
|
|
</dt>
|
|
|
|
<dd>
|
|
@Html.DisplayFor(model => model.PasswordHash)
|
|
</dd>
|
|
|
|
<dt>
|
|
@Html.DisplayNameFor(model => model.SecurityStamp)
|
|
</dt>
|
|
|
|
<dd>
|
|
@Html.DisplayFor(model => model.SecurityStamp)
|
|
</dd>
|
|
|
|
<dt>
|
|
@Html.DisplayNameFor(model => model.Discriminator)
|
|
</dt>
|
|
|
|
<dd>
|
|
@Html.DisplayFor(model => model.Discriminator)
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
@using (Html.BeginForm()) {
|
|
@Html.AntiForgeryToken()
|
|
|
|
<div class="form-actions no-color">
|
|
<input type="submit" value="Delete" class="btn btn-default" /> |
|
|
@Html.ActionLink("Back to List", "Index")
|
|
</div>
|
|
}
|
|
</div>*@
|