13 lines
536 B
Plaintext
13 lines
536 B
Plaintext
@using LeafWeb.WebCms.Controllers
|
|
@model Tuple<int, bool>
|
|
@{
|
|
var leafInputId = Model.Item1;
|
|
var isDeletable = Model.Item2;
|
|
}
|
|
@using (Html.BeginUmbracoForm<QueueController>("Delete", null, new { @class = "confirm", confirm_msg = "Deletion cannot be undone!" }))
|
|
{
|
|
<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>
|
|
} |