Bug Fix #75: Display errors creating device batch
Thanks Patrick Connell
This commit is contained in:
@@ -5,21 +5,19 @@
|
|||||||
}
|
}
|
||||||
@using (Html.BeginForm())
|
@using (Html.BeginForm())
|
||||||
{
|
{
|
||||||
|
@Html.ValidationSummary(false)
|
||||||
<div class="form" style="width: 450px">
|
<div class="form" style="width: 450px">
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>Name:</th>
|
||||||
Name:
|
|
||||||
</th>
|
|
||||||
<td>
|
<td>
|
||||||
@Html.EditorFor(model => model.DeviceBatch.Name)<br />@Html.ValidationMessageFor(model => model.DeviceBatch.Name)
|
@Html.EditorFor(model => model.DeviceBatch.Name)<br />@Html.ValidationMessageFor(model => model.DeviceBatch.Name)
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>Purchase Date:</th>
|
||||||
Purchase Date:
|
<td>
|
||||||
</th>
|
@Html.EditorFor(model => model.DeviceBatch.PurchaseDate)<br />@Html.ValidationMessageFor(model => model.DeviceBatch.PurchaseDate)
|
||||||
<td>@Html.EditorFor(model => model.DeviceBatch.PurchaseDate)<br />@Html.ValidationMessageFor(model => model.DeviceBatch.PurchaseDate)
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -61,6 +61,20 @@ WriteLiteral("\r\n");
|
|||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
#line 8 "..\..\Areas\Config\Views\DeviceBatch\Create.cshtml"
|
||||||
|
Write(Html.ValidationSummary(false));
|
||||||
|
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
#line 8 "..\..\Areas\Config\Views\DeviceBatch\Create.cshtml"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
WriteLiteral(" <div");
|
WriteLiteral(" <div");
|
||||||
@@ -69,13 +83,13 @@ WriteLiteral(" class=\"form\"");
|
|||||||
|
|
||||||
WriteLiteral(" style=\"width: 450px\"");
|
WriteLiteral(" style=\"width: 450px\"");
|
||||||
|
|
||||||
WriteLiteral(">\r\n <table>\r\n <tr>\r\n <th>\r\n N" +
|
WriteLiteral(">\r\n <table>\r\n <tr>\r\n <th>Name:</th>\r\n " +
|
||||||
"ame:\r\n </th>\r\n <td>\r\n");
|
" <td>\r\n");
|
||||||
|
|
||||||
WriteLiteral(" ");
|
WriteLiteral(" ");
|
||||||
|
|
||||||
|
|
||||||
#line 15 "..\..\Areas\Config\Views\DeviceBatch\Create.cshtml"
|
#line 14 "..\..\Areas\Config\Views\DeviceBatch\Create.cshtml"
|
||||||
Write(Html.EditorFor(model => model.DeviceBatch.Name));
|
Write(Html.EditorFor(model => model.DeviceBatch.Name));
|
||||||
|
|
||||||
|
|
||||||
@@ -84,18 +98,19 @@ WriteLiteral(" ");
|
|||||||
WriteLiteral("<br />");
|
WriteLiteral("<br />");
|
||||||
|
|
||||||
|
|
||||||
#line 15 "..\..\Areas\Config\Views\DeviceBatch\Create.cshtml"
|
#line 14 "..\..\Areas\Config\Views\DeviceBatch\Create.cshtml"
|
||||||
Write(Html.ValidationMessageFor(model => model.DeviceBatch.Name));
|
Write(Html.ValidationMessageFor(model => model.DeviceBatch.Name));
|
||||||
|
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th" +
|
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th" +
|
||||||
">\r\n Purchase Date:\r\n </th>\r\n <t" +
|
">Purchase Date:</th>\r\n <td>\r\n");
|
||||||
"d>");
|
|
||||||
|
WriteLiteral(" ");
|
||||||
|
|
||||||
|
|
||||||
#line 22 "..\..\Areas\Config\Views\DeviceBatch\Create.cshtml"
|
#line 20 "..\..\Areas\Config\Views\DeviceBatch\Create.cshtml"
|
||||||
Write(Html.EditorFor(model => model.DeviceBatch.PurchaseDate));
|
Write(Html.EditorFor(model => model.DeviceBatch.PurchaseDate));
|
||||||
|
|
||||||
|
|
||||||
@@ -104,7 +119,7 @@ WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>
|
|||||||
WriteLiteral("<br />");
|
WriteLiteral("<br />");
|
||||||
|
|
||||||
|
|
||||||
#line 22 "..\..\Areas\Config\Views\DeviceBatch\Create.cshtml"
|
#line 20 "..\..\Areas\Config\Views\DeviceBatch\Create.cshtml"
|
||||||
Write(Html.ValidationMessageFor(model => model.DeviceBatch.PurchaseDate));
|
Write(Html.ValidationMessageFor(model => model.DeviceBatch.PurchaseDate));
|
||||||
|
|
||||||
|
|
||||||
@@ -141,7 +156,7 @@ WriteLiteral(@">
|
|||||||
");
|
");
|
||||||
|
|
||||||
|
|
||||||
#line 40 "..\..\Areas\Config\Views\DeviceBatch\Create.cshtml"
|
#line 38 "..\..\Areas\Config\Views\DeviceBatch\Create.cshtml"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user