31 lines
950 B
Plaintext
31 lines
950 B
Plaintext
@using LeafWeb.Core.Entities
|
|
@model IQueryable<LeafInput>
|
|
|
|
@{
|
|
var grid = new WebGrid(Model, rowsPerPage: 45);
|
|
}
|
|
|
|
<div class="table-responsive">
|
|
@grid.Table(columns:
|
|
grid.Columns(
|
|
grid.Column("Identifier", "Identifier"),
|
|
grid.Column("SiteId", "Site Id"),
|
|
//grid.Column("Name", "Submitted By"),
|
|
grid.Column("CurrentStatus", "Status", item => Status(item.Value)),
|
|
grid.Column("", "", item => ChartLink(item.Value))
|
|
),
|
|
htmlAttributes: new { @class = "table table-striped table-bordered table-hover table-condensed" }
|
|
)
|
|
</div>
|
|
@grid.BootstrapPager()
|
|
|
|
@helper ChartLink(LeafInput leafInput)
|
|
{
|
|
@Html.Partial("DisplayTemplates/_ChartButton", leafInput.Id, new ViewDataDictionary { { "Disabled", !leafInput.HasLeafChart }, {"xs", true} })
|
|
}
|
|
|
|
@helper Status(LeafInput leafInput)
|
|
{
|
|
@Html.Partial("DisplayTemplates/_LeafInputStatus", leafInput)
|
|
}
|