Add cancel

This commit is contained in:
2017-01-26 08:36:54 -05:00
parent 295b40bed8
commit 4338b4fee5
30 changed files with 333 additions and 62 deletions
@@ -0,0 +1,14 @@
@using LeafWeb.WebCms.Controllers
@model Tuple<int, string>
@{
var leafInputId = Model.Item1;
var identifier = Model.Item2;
}
@using (Html.BeginUmbracoForm<QueueController>("Cancel", null,
new { @class = "confirm", confirm_msg = "Cancelling cannot be undone! Confirm cancelling '" + identifier + "'." }))
{
<input type="hidden" name="id" value="@leafInputId"/>
<button type="submit" class="btn btn-link">
<span class="glyphicon glyphicon-ban-circle"></span> Cancel
</button>
}
@@ -1,2 +1,3 @@
@model string
<span class="status status-@Model.ToLower()">@Model</span>
@using LeafWeb.Core.Utility
@model string
<span class="status status-@Model.ToLower()">@Model.SplitCamelCase()</span>