22 lines
847 B
Plaintext
22 lines
847 B
Plaintext
@model IEnumerable<LeafWeb.WebCms.Models.ResultStatusViewModel>
|
|
|
|
@{
|
|
var grid = new WebGrid(Model, rowsPerPage: 45);
|
|
}
|
|
|
|
@grid.Table(columns:
|
|
grid.Columns(
|
|
grid.Column("LeafInputIdentifier", "Identifier"),
|
|
grid.Column("LeafInputSiteId", "Site Id"),
|
|
//grid.Column("LeafInputName", "Submitted By"),
|
|
grid.Column("CurrentStatus", "Status", item => Html.Partial("DisplayTemplates/_LeafInputStatus", (string)item.CurrentStatus)),
|
|
grid.Column("", "", item => ChartLink(item))
|
|
),
|
|
htmlAttributes: new { @class = "table table-striped table-bordered table-hover table-condensed" }
|
|
)
|
|
@grid.BootstrapPager()
|
|
|
|
@helper ChartLink(dynamic item)
|
|
{
|
|
@Html.Partial("DisplayTemplates/_ChartButton", (int)item.LeafInputId, new ViewDataDictionary { { "Disabled", !item.HasLeafChart }, {"xs", true} })
|
|
} |