Bug Fix #75: Display errors creating device batch

Thanks Patrick Connell
This commit is contained in:
Gary Sharp
2014-09-15 13:24:28 +10:00
parent b1575fa321
commit f2ac35a7fa
2 changed files with 29 additions and 16 deletions
@@ -5,21 +5,19 @@
}
@using (Html.BeginForm())
{
@Html.ValidationSummary(false)
<div class="form" style="width: 450px">
<table>
<tr>
<th>
Name:
</th>
<th>Name:</th>
<td>
@Html.EditorFor(model => model.DeviceBatch.Name)<br />@Html.ValidationMessageFor(model => model.DeviceBatch.Name)
</td>
</tr>
<tr>
<th>
Purchase Date:
</th>
<td>@Html.EditorFor(model => model.DeviceBatch.PurchaseDate)<br />@Html.ValidationMessageFor(model => model.DeviceBatch.PurchaseDate)
<th>Purchase Date:</th>
<td>
@Html.EditorFor(model => model.DeviceBatch.PurchaseDate)<br />@Html.ValidationMessageFor(model => model.DeviceBatch.PurchaseDate)
</td>
</tr>
</table>