Details improvements
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
|
||||
@grid.GetHtml(columns:
|
||||
grid.Columns(
|
||||
grid.Column("DateTime", "Time"),
|
||||
grid.Column("Status", format: item => Html.Partial("DisplayTemplates/_LeafInputStatus", (string)item.Status)),
|
||||
grid.Column("DateTime", "Time"),
|
||||
grid.Column("Description"),
|
||||
grid.Column("Details")
|
||||
),
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
@model int
|
||||
@using LeafWeb.WebCms.Controllers
|
||||
@model int
|
||||
@{
|
||||
var url = UmbracoContext.Current.UrlProvider.GetUrl(1100);
|
||||
var url = UmbracoContext.Current.UrlProvider.GetUrl(LeafWebPageIds.Chart);
|
||||
var disabled = ViewData.ContainsKey("Disabled") && (bool) ViewData["Disabled"];
|
||||
var xs = ViewData.ContainsKey("xs") && (bool) ViewData["xs"];
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
@model int
|
||||
@using LeafWeb.WebCms.Controllers
|
||||
@model int
|
||||
@{
|
||||
var url = UmbracoContext.Current.UrlProvider.GetUrl(1100);
|
||||
var url = UmbracoContext.Current.UrlProvider.GetUrl(LeafWebPageIds.Chart);
|
||||
}
|
||||
<a href="@url?leafInputId=@Model">
|
||||
<span class="glyphicon glyphicon-stats"></span>
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
@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>
|
||||
}
|
||||
Reference in New Issue
Block a user