Files
LeafWeb/WebCms/Views/Shared/DisplayTemplates/_CancelForm.cshtml
T
poprhythm 2b5de1c4cd Replace WebGridBootstrapPager
Improve Leaf details page
2020-06-28 17:37:06 -04:00

15 lines
615 B
Plaintext

@using LeafWeb.WebCms.Controllers
@using LeafWeb.WebCms.Utility
@model Tuple<int, string>
@{
var leafInputId = Model.Item1;
var identifier = Model.Item2;
}
@using (Html.BeginUmbracoForm<QueueController>("Cancel", null,
new { @class = "confirm clearfix", confirm_msg = "Cancelling cannot be undone! Confirm cancelling '" + identifier + "'." }))
{
<input type="hidden" name="id" value="@leafInputId"/>
<button type="submit" @Html.Partial("DisplayTemplates/_ViewDataCssClass") @if(ViewData.IsCssDisabled()) {<text>disabled</text>}>
<span class="fa fa-ban"></span> Cancel
</button>
}