+ @* ReSharper disable once UnknownCssClass *@
@if (success || (!user?.IsApproved ?? false))
{
@@ -40,6 +41,20 @@ else
new {id="register-member"}))
{
@Html.ValidationSummary(true)
+
+ @foreach (var ms in ViewData.ModelState)
+ {
+ - @ms.Key
+
+ - @ms.Value.Value.AttemptedValue
+ @foreach (var valueError in ms.Value.Errors)
+ {
+ - @valueError.ErrorMessage
+ }
+
+
+ }
+
@Html.EditorFor(m => registerModel.Name)
@Html.EditorFor(m => registerModel.Email, new { type = "email"})
diff --git a/WebCms/Views/Queue/Index.cshtml b/WebCms/Views/Queue/Index.cshtml
index 3ce608f..b77ec93 100644
--- a/WebCms/Views/Queue/Index.cshtml
+++ b/WebCms/Views/Queue/Index.cshtml
@@ -9,30 +9,71 @@
var grid = new WebGrid(Model.Items, rowsPerPage: 45);
}
-
-
- Service description: @Model.ServerDescription
- @*Est. processing time by LeafInput size -
+@using (Html.BeginUmbracoForm
("Search", FormMethod.Post))
+{
+
+
+ Service description: @Model.ServerDescription
+ @*Est. processing time by LeafInput size -
1: @Model.TimeInProgressEstimater.EstimateTimeInProgress(1).ToRoundedReadableString()
10: @Model.TimeInProgressEstimater.EstimateTimeInProgress(10).ToRoundedReadableString()
100: @Model.TimeInProgressEstimater.EstimateTimeInProgress(100).ToRoundedReadableString()*@
-
-
- @using (Html.BeginUmbracoForm("Search", FormMethod.Post))
- {
+
+
-
+
+
+
+
+
+ @Html.EditorFor(m => m.Query.SiteId)
+
+
+ @Html.EditorFor(m => m.Query.SpeciesName)
+
+
+
+
+
+
+
+ @Html.EditorFor(m => m.Query.Latitude, new {size = "small", append = "°"})
+
+
+ @Html.EditorFor(m => m.Query.LatitudeRange, new {size = "small", prepend = "±", append = "°"})
+
+
+
+
+
+
+ @Html.EditorFor(m => m.Query.Longitude, new {size = "small", append = "°"})
+
+
+ @Html.EditorFor(m => m.Query.LongitudeRange, new {size = "small", prepend = "±", append = "°"})
+
+
+
+
+
+
+}
+
@if (Model.Items.Any())
{
-
+
@grid.Table(columns:
grid.Columns(
grid.Column("Identifier", "Identifier"),
diff --git a/WebCms/Views/Shared/EditorTemplates/String.cshtml b/WebCms/Views/Shared/EditorTemplates/String.cshtml
index be50dd5..45d1e0c 100644
--- a/WebCms/Views/Shared/EditorTemplates/String.cshtml
+++ b/WebCms/Views/Shared/EditorTemplates/String.cshtml
@@ -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)
\ No newline at end of file
+
diff --git a/WebCms/WebCms.csproj b/WebCms/WebCms.csproj
index 90befbb..e86e2b0 100644
--- a/WebCms/WebCms.csproj
+++ b/WebCms/WebCms.csproj
@@ -1108,6 +1108,7 @@
+
diff --git a/WebCms/scripts/Queue.js b/WebCms/scripts/Queue.js
index 08f0baf..8abfb7e 100644
--- a/WebCms/scripts/Queue.js
+++ b/WebCms/scripts/Queue.js
@@ -1,7 +1,7 @@
-$(function () {
+$(function() {
+ // responsive column hide for results
$("#queue th:nth-child(4)").addClass("d-none d-md-table-cell");
$("#queue td:nth-child(4)").addClass("d-none d-md-table-cell");
$("#queue th:nth-child(3)").addClass("d-none d-sm-table-cell");
$("#queue td:nth-child(3)").addClass("d-none d-sm-table-cell");
-
});
\ No newline at end of file