Responsive queue page
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
@using LeafWeb.Core.Entities
|
||||
@using ClientDependency.Core.Mvc
|
||||
@using LeafWeb.Core.Entities
|
||||
@using LeafWeb.WebCms.Controllers
|
||||
@model QueueViewModel
|
||||
|
||||
@{
|
||||
Html.RequiresJs("~/scripts/Queue.js");
|
||||
|
||||
var grid = new WebGrid(Model.Items, rowsPerPage: 45);
|
||||
}
|
||||
|
||||
@@ -29,15 +32,15 @@
|
||||
|
||||
@if (Model.Items.Any())
|
||||
{
|
||||
<div class="table-responsive">
|
||||
<div id="queue" class="table-responsive">
|
||||
@grid.Table(columns:
|
||||
grid.Columns(
|
||||
grid.Column("Identifier", "Identifier"),
|
||||
grid.Column("SiteId", "Site Id"),
|
||||
grid.Column("Name", "Submitted By"),
|
||||
grid.Column("TimeInProgress", "Statistics", item => Statistics(item.Value)),
|
||||
grid.Column("CurrentStatus", "Status", item => Status(item.Value)),
|
||||
grid.Column("Total Results: " + Model.Items.Count(), format: item => Actions(item.Value))),
|
||||
grid.Column("Name", "Submitted By" ),
|
||||
grid.Column("TimeInProgress", "Statistics", item => Statistics(item.Value), canSort: false),
|
||||
grid.Column("CurrentStatus", "Status", item => Status(item.Value), canSort: false),
|
||||
grid.Column("Total Results: " + Model.Items.Count(), format: item => Actions(item.Value), canSort: false)),
|
||||
htmlAttributes: new {@class = "table table-sm table-striped table-bordered table-hover"}
|
||||
)
|
||||
@grid.BootstrapPager()
|
||||
@@ -58,8 +61,8 @@ else
|
||||
<div class="btn-group text-nowrap" role="group">
|
||||
<div class="btn-group" role="group">
|
||||
<button id="actions(@item.Id)" type="button" class="btn btn-outline-secondary btn-sm dropdown-toggle"
|
||||
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
Actions
|
||||
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" title="Actions">
|
||||
<span class="d-none d-sm-inline">Actions</span>
|
||||
</button>
|
||||
<div class="dropdown-menu" aria-labelledby="actions(@item.Id)">
|
||||
<button class="dropdown-item">@DetailsLink(item)</button>
|
||||
@@ -123,7 +126,7 @@ else
|
||||
}
|
||||
var summaryText = string.Join(Environment.NewLine, summary);
|
||||
<span class="text-nowrap" title="@summaryText">
|
||||
<i class="fa fa-file-o"></i> @leafInput.InputFiles.Count @if(leafInput.InputFiles.Count > 1) {<text>LeafInputs</text>} else { <text>LeafInput</text>}
|
||||
<i class="fa fa-file-o"></i> @leafInput.InputFiles.Count @if(leafInput.InputFiles.Count > 1) {<text>inputs</text>} else { <text>input</text>}
|
||||
<br />
|
||||
@if (leafInput.TimeInProgress > TimeSpan.Zero)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user