Files
LeafWeb/WebCms/Views/Shared/DisplayTemplates/_DeleteForm.cshtml
T
2017-01-27 14:07:36 -05:00

15 lines
615 B
Plaintext

@using LeafWeb.WebCms.Controllers
@model Tuple<int, string, bool>
@{
var leafInputId = Model.Item1;
var identifier = Model.Item2;
var isDeletable = Model.Item3;
}
@using (Html.BeginUmbracoForm<QueueController>("Delete", null,
new { @class = "confirm clearfix", confirm_msg = "Deletion cannot be undone! Confirm deleting '" + identifier + "'." }))
{
<input type="hidden" name="id" value="@leafInputId"/>
<button type="submit" class="btn btn-link" @{if (!isDeletable) { <text> disabled="disabled" </text> }}>
<span class="glyphicon glyphicon-remove"></span> Delete
</button>
}