First Pass at LeafDataQuery for Queue
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
<div class="container mt-5">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-lg-6 card card-body bg-light">
|
||||
@* ReSharper disable once UnknownCssClass *@
|
||||
@if (success || (!user?.IsApproved ?? false))
|
||||
{
|
||||
<h2 class="text-center"><span class="fa fa-check text-primary"></span> </h2>
|
||||
@@ -40,6 +41,20 @@ else
|
||||
new {id="register-member"}))
|
||||
{
|
||||
@Html.ValidationSummary(true)
|
||||
<ul class="d-none">
|
||||
@foreach (var ms in ViewData.ModelState)
|
||||
{
|
||||
<li>@ms.Key
|
||||
<ul>
|
||||
<li>@ms.Value.Value.AttemptedValue</li>
|
||||
@foreach (var valueError in ms.Value.Errors)
|
||||
{
|
||||
<li>@valueError.ErrorMessage</li>
|
||||
}
|
||||
</ul>
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
|
||||
@Html.EditorFor(m => registerModel.Name)
|
||||
@Html.EditorFor(m => registerModel.Email, new { type = "email"})
|
||||
|
||||
@@ -9,30 +9,71 @@
|
||||
var grid = new WebGrid(Model.Items, rowsPerPage: 45);
|
||||
}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-8">
|
||||
Service description: @Model.ServerDescription<br/>
|
||||
@*Est. processing time by LeafInput size -
|
||||
@using (Html.BeginUmbracoForm<QueueController>("Search", FormMethod.Post))
|
||||
{
|
||||
<div class="row">
|
||||
<div class="col-lg-8">
|
||||
Service description: @Model.ServerDescription<br/>
|
||||
@*Est. processing time by LeafInput size -
|
||||
<i class="fa fa-file-o"></i> 1: <strong>@Model.TimeInProgressEstimater.EstimateTimeInProgress(1).ToRoundedReadableString()</strong>
|
||||
<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-4">
|
||||
@using (Html.BeginUmbracoForm<QueueController>("Search", FormMethod.Post))
|
||||
{
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
<div class="input-group">
|
||||
<input name="query" type="text" class="form-control" placeholder="Search for..." value="@Model.Query">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-outline-secondary" type="button">Search</button>
|
||||
<input name="Query.Query" type="text" class="form-control" placeholder="Search for..." value="@Model.Query.Query">
|
||||
<span class="input-group-append">
|
||||
<button class="btn btn-outline-secondary" type="submit">Search</button>
|
||||
<button class="btn btn-outline-secondary dropdown-toggle dropdown-toggle-split" type="button"
|
||||
data-toggle="collapse" data-target="#additionalSearch" aria-haspopup="true" aria-expanded="false"
|
||||
title="Additional Search Options">
|
||||
</button>
|
||||
</span>
|
||||
</div><!-- /input-group -->
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row collapse ml-1 mr-1" id="additionalSearch">
|
||||
|
||||
<div class="col-lg-8 offset-lg-4 card card-body">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
@Html.EditorFor(m => m.Query.SiteId)
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
@Html.EditorFor(m => m.Query.SpeciesName)
|
||||
</div>
|
||||
</div>
|
||||
<hr/>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="row">
|
||||
<div class="col-sm-7">
|
||||
@Html.EditorFor(m => m.Query.Latitude, new {size = "small", append = "°"})
|
||||
</div>
|
||||
<div class="col-sm-5">
|
||||
@Html.EditorFor(m => m.Query.LatitudeRange, new {size = "small", prepend = "±", append = "°"})
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="row">
|
||||
<div class="col-sm-7">
|
||||
@Html.EditorFor(m => m.Query.Longitude, new {size = "small", append = "°"})
|
||||
</div>
|
||||
<div class="col-sm-5">
|
||||
@Html.EditorFor(m => m.Query.LongitudeRange, new {size = "small", prepend = "±", append = "°"})
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
|
||||
@if (Model.Items.Any())
|
||||
{
|
||||
<div id="queue" class="table-responsive">
|
||||
<div id="queue" class="table-responsive mt-3">
|
||||
@grid.Table(columns:
|
||||
grid.Columns(
|
||||
grid.Column("Identifier", "Identifier"),
|
||||
|
||||
@@ -28,6 +28,34 @@
|
||||
controlClass = string.Concat(controlClass, " ", "is-invalid");
|
||||
}
|
||||
htmlAttributes.Add("class", controlClass);
|
||||
|
||||
|
||||
var inputGroupClass = "";
|
||||
if (!string.IsNullOrEmpty(ViewBag.size))
|
||||
{
|
||||
if (ViewBag.size == "small")
|
||||
{
|
||||
inputGroupClass = "input-group-sm";
|
||||
}
|
||||
else if (ViewBag.size == "large")
|
||||
{
|
||||
inputGroupClass = "input-group-lg";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Html.TextBox("", ViewData.TemplateInfo.FormattedModelValue, htmlAttributes)
|
||||
<div class="input-group @inputGroupClass">
|
||||
@if (!string.IsNullOrEmpty(ViewBag.prepend))
|
||||
{
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text" id="basic-addon2">@Html.Raw(ViewBag.prepend)</span>
|
||||
</div>
|
||||
}
|
||||
@Html.TextBox("", ViewData.TemplateInfo.FormattedModelValue, htmlAttributes)
|
||||
@if (!string.IsNullOrEmpty(ViewBag.append))
|
||||
{
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text" id="basic-addon2">@Html.Raw(ViewBag.append)</span>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user