37 lines
1.5 KiB
Plaintext
37 lines
1.5 KiB
Plaintext
@model EnVisage.Models.StrategicGoalModel
|
|
|
|
<script>
|
|
function onFailureStrategicGoalDelete(xhr) {
|
|
showErrorModal();
|
|
}
|
|
function onSuccessStrategicGoalDelete(result) {
|
|
handleAjaxResponse(result, function () {
|
|
reloadPage();
|
|
}, null, null, $('#strategicGoalDeleteForm'));
|
|
}
|
|
</script>
|
|
@using (Ajax.BeginForm("Delete", "StrategicGoal", new AjaxOptions() { OnBegin = "blockUI", OnSuccess = "onSuccessStrategicGoalDelete", OnFailure = "onFailureStrategicGoalDelete", OnComplete = "unblockUI" }, new { @id = "strategicGoalDeleteForm" }))
|
|
{
|
|
@Html.AntiForgeryToken()
|
|
@Html.HiddenFor(x => x.Id)
|
|
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
|
|
<h4 class="modal-title">Delete Strategic Goal</h4>
|
|
</div>
|
|
<div class="modal-title"></div>
|
|
<div class="modal-body">
|
|
<div class="row">
|
|
<strong>
|
|
Do you want to delete "@Model.Name" stgrategic goal?
|
|
</strong>
|
|
</div>
|
|
@Html.ValidationSummary(false, "Strategic goal cannot be deleted due to the following errors:")
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="submit" class="btn btn-danger">OK</button>
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
|
</div>
|
|
</div>
|
|
} |