39 lines
1.8 KiB
Plaintext
39 lines
1.8 KiB
Plaintext
@model IEnumerable<LeafWeb.Web.ViewModels.Results.ResultStatusViewModel>
|
|
|
|
@{
|
|
ViewBag.Title = "Results Administration";
|
|
var grid = new WebGrid(Model, rowsPerPage: 45);
|
|
}
|
|
|
|
<h1>@ViewBag.Title</h1>
|
|
|
|
@grid.GetHtml(columns:
|
|
grid.Columns(
|
|
grid.Column("LeafInputIdentifier", "Identifier"),
|
|
grid.Column("LeafInputSiteId", "Site Id"),
|
|
grid.Column("LeafInputName", "Submitted By"),
|
|
grid.Column("CurrentStatus", "Status"),
|
|
grid.Column("Chart", "Chart", item =>
|
|
item.HasLeafChart
|
|
? Html.ActionLink("Chart", "Index", "Chart", new { leafInputId = item.LeafInputId }, new { })
|
|
: Html.Raw("")),
|
|
grid.Column("Total Results: " + Model.Count(), format:
|
|
@<div class="btn-group" role="group">
|
|
@Html.ActionLink("Details", "Details", new { id = item.LeafInputId }, new { @class = "btn btn-default btn-xs", role = "button" })
|
|
<div class="btn-group" role="group">
|
|
<button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
Download
|
|
<span class="caret"></span>
|
|
</button>
|
|
<ul class="dropdown-menu">
|
|
<li>@Html.ActionLink("ToUser", "DownloadOutputToUser", new {id = item.LeafInputId})</li>
|
|
<li>@Html.ActionLink("Input", "DownloadInput", new {id = item.LeafInputId})</li>
|
|
</ul>
|
|
</div>
|
|
|
|
@Html.ActionLink("Delete", "Delete", new { id = item.LeafInputId }, new { @class = "btn btn-default btn-xs", role="button" })
|
|
</div>)
|
|
),
|
|
htmlAttributes: new { @class = "table table-striped table-bordered table-hover table-condensed" }
|
|
)
|