Added Fluxnet Site

This commit is contained in:
2016-01-18 13:45:43 -05:00
parent 048327666f
commit 2c73fb6883
12 changed files with 43 additions and 102 deletions
+18 -16
View File
@@ -4,19 +4,21 @@
<p>
There is no limit on the number of files you may submit for analysis. Keep selecting files and hitting the Add button until all of the files you need to upload are shown in the list. Then enter an identifier for this set of data and click the Upload button.
</p>
@using (Html.BeginForm("Index", "LeafInput", FormMethod.Post, new { @class = "form-horizontal well" }))
{
@Html.Partial("_ValidationSummary")
<fieldset>
<legend></legend>
@Html.EditorFor(m=> m.Name)
@Html.EditorFor(m=> m.Email)
@Html.EditorFor(m=> m.EmailConfirm)
@Html.EditorFor(m=> m.LeafInputId)
@Html.EditorFor(m=> m.SiteID)
@Html.EditorFor(m=> m.Files)
<div class="form-actions">
<input type="submit" value="Create" class="btn btn-primary" />
</div>
</fieldset>
}
<div class="row">
<div class="col-md-5">
@using (Html.BeginForm("Index", "LeafInput", FormMethod.Post, new {@class = "form-horizontal well", enctype= "multipart/form-data" }))
{
@Html.Partial("_ValidationSummary")
<fieldset>
@Html.EditorFor(m => m.Name)
@Html.EditorFor(m => m.Email)
@Html.EditorFor(m => m.EmailConfirm)
@Html.EditorFor(m => m.LeafInputId)
@Html.EditorFor(m => m.SiteID)
@Html.EditorFor(m => m.Files)
<div class="form-actions">
<input type="submit" value="Create" class="btn btn-primary"/>
</div>
</fieldset>
}</div>
</div>
@@ -27,7 +27,4 @@
}
}
@Html.TextBox(
"",
ViewData.TemplateInfo.FormattedModelValue,
htmlAttributes)
@Html.TextBox("", ViewData.TemplateInfo.FormattedModelValue, htmlAttributes)
@@ -2,16 +2,6 @@
@model int?
@{
int i;
if (!Model.HasValue)
{
i = 0;
}
else
{
i = Model.Value;
}
var htmlAttributes = new RouteValueDictionary();
if (ViewBag.@class != null)
{
@@ -3,14 +3,7 @@
@{
float f;
if (!Model.HasValue)
{
f = 0.0f;
}
else
{
f = Model.Value;
}
f = !Model.HasValue ? 0.0f : Model.Value;
}
<div class="form-group@(Html.ValidationErrorFor(m => m, " has-error"))">
@@ -22,5 +22,4 @@
}
}
@Html.TextBox("", ViewData.TemplateInfo.FormattedModelValue, htmlAttributes)
@Html.TextBox("", ViewData.TemplateInfo.FormattedModelValue, htmlAttributes)
@@ -11,10 +11,8 @@
}
<div class="form-group @lowerPropertyName">
@Html.LabelForModel(new { @class = "control-label" })
<div class="controls">
@RenderBody()
@Html.ValidationMessage("", new { @class = "help-block"})
</div>
@RenderBody()
@Html.ValidationMessage("", new { @class = "help-block"})
</div>