cf21f17bc1
Update jquery validate for IE Simplify scripting Update home page logo
32 lines
998 B
Plaintext
32 lines
998 B
Plaintext
@model IEnumerable<LeafWeb.WebCms.Models.ResultStatusViewModel>
|
|
|
|
@{
|
|
var grid = new WebGrid(Model, rowsPerPage: 45);
|
|
}
|
|
|
|
@grid.GetHtml(columns:
|
|
grid.Columns(
|
|
grid.Column("LeafInputIdentifier", "Identifier"),
|
|
grid.Column("LeafInputSiteId", "Site Id"),
|
|
grid.Column("LeafInputName", "Submitted By"),
|
|
grid.Column("CurrentStatus", "Status", item => statusFormat(item)),
|
|
grid.Column("Chart", "Chart", item => chartLink(item))
|
|
),
|
|
htmlAttributes: new { @class = "table table-striped table-bordered table-hover table-condensed" }
|
|
)
|
|
|
|
@helper chartLink(dynamic item)
|
|
{
|
|
if (item.HasLeafChart)
|
|
{
|
|
<a href="@UmbracoContext.Current.UrlProvider.GetUrl(1100)?leafInputId=@item.LeafInputId" class="btn btn-default btn-xs" role="button">
|
|
<span class="glyphicon glyphicon-stats"></span>
|
|
Chart
|
|
</a>
|
|
}
|
|
}
|
|
|
|
@helper statusFormat(dynamic item)
|
|
{
|
|
<span class="status status-@item.CurrentStatus.ToLower()">@item.CurrentStatus</span>
|
|
} |