Add "show only completed" to query
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
|
||||
@using (Html.BeginUmbracoForm("Search", "Queue", null, new { @action = "/leaf-data/manage-queue/" }))
|
||||
{
|
||||
<div class="row">
|
||||
<div class="row align-items-start">
|
||||
<div class="col font-italic font-weight-light">
|
||||
@Model.Items.Count() results<br />
|
||||
Service description: @Model.ServerDescription
|
||||
@@ -24,10 +24,6 @@
|
||||
<i class="fa fa-file-o"></i> 10: <strong>@Model.TimeInProgressEstimater.EstimateTimeInProgress(10).ToRoundedReadableString()</strong>
|
||||
<i class="fa fa-file-o"></i> 100: <strong>@Model.TimeInProgressEstimater.EstimateTimeInProgress(100).ToRoundedReadableString()</strong>*@
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
@DownloadResultsInput()
|
||||
@DownloadResultsOutput_ToUser()
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="input-group">
|
||||
<input name="Q.q" type="text" class="form-control" placeholder="Search for..." value="@Model.Q.q">
|
||||
@@ -77,7 +73,7 @@
|
||||
</div>
|
||||
<hr />
|
||||
<div class="text-body font-weight-bold pb-3">Curve Variation range minimum</div>
|
||||
<div class="row">
|
||||
<div class="row align-items-end">
|
||||
<div class="col-md-6">
|
||||
@Html.EditorFor(m => m.Q.co2s, new { size = "small", append = "umol/m", prepend = ">" })
|
||||
</div>
|
||||
@@ -91,6 +87,12 @@
|
||||
@Html.EditorFor(m => m.Q.phips2, new { size = "small", prepend = ">" })
|
||||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
@Html.EditorFor(m => m.Q.completed)
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
@@ -109,8 +111,14 @@
|
||||
grid.Column("", format: item => Actions(item.Value), canSort: false)),
|
||||
htmlAttributes: new { @class = "table table-sm table-striped table-bordered table-hover" }
|
||||
)
|
||||
@grid.PagerList()
|
||||
</div>
|
||||
<div class="row justify-content-end">
|
||||
<div class="col-sm">@grid.PagerList()</div>
|
||||
<div class="col-sm col-lg-5 pl-4 pt-3 pt-sm-0" >
|
||||
<span class="pr-2">Download Results</span>
|
||||
@DownloadResults()
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -263,16 +271,15 @@ else
|
||||
}
|
||||
|
||||
|
||||
@helper DownloadResultsInput()
|
||||
@helper DownloadResults()
|
||||
{
|
||||
<a class="btn btn-outline-secondary" role="button" href="@Url.Action("DownloadResultsInputZip", "Queue", Model.Q.GetNameValueCollection().ToRouteValueDictionary())">
|
||||
<span class="fa fa-download"></span> Input
|
||||
</a>
|
||||
<div class="btn-group" role="group" aria-label="Download">
|
||||
<a class="btn btn-outline-secondary small" role="button" href="@Url.Action("DownloadResultsInputZip", "Queue", Model.Q.GetNameValueCollection().ToRouteValueDictionary())">
|
||||
<span class="fa fa-download"></span> Input
|
||||
</a>
|
||||
<a class="btn btn-outline-secondary small" role="button" href="@Url.Action("DownloadResultsOutputZip", "Queue", Model.Q.GetNameValueCollection().ToRouteValueDictionary())">
|
||||
<span class="fa fa-download"></span> Output
|
||||
</a>
|
||||
</div>
|
||||
}
|
||||
|
||||
@helper DownloadResultsOutput_ToUser()
|
||||
{
|
||||
<a class="btn btn-outline-secondary" role="button" href="@Url.Action("DownloadResultsOutputZip", "Queue", Model.Q.GetNameValueCollection().ToRouteValueDictionary())">
|
||||
<span class="fa fa-download"></span> Output
|
||||
</a>
|
||||
}
|
||||
Reference in New Issue
Block a user