Files
Disco/Disco.Web/Areas/Config/Views/DeviceBatch/Create.cshtml
T
2013-02-01 12:35:28 +11:00

40 lines
1.2 KiB
Plaintext

@model Disco.Models.Repository.DeviceBatch
@{
ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "Device Batches", MVC.Config.DeviceBatch.Index(null), "Create");
}
@using (Html.BeginForm())
{
<div class="form" style="width: 450px">
<table>
<tr>
<th>
Name:
</th>
<td>
@Html.EditorFor(model => model.Name)<br />@Html.ValidationMessageFor(model => model.Name)
</td>
</tr>
<tr>
<th>
Purchase Date:
</th>
<td>@Html.EditorFor(model => model.PurchaseDate)<br />@Html.ValidationMessageFor(model => model.PurchaseDate)
</td>
</tr>
</table>
<p class="actions">
<input type="submit" class="button" value="Create" />
</p>
</div>
<script type="text/javascript">
$(function () {
$('#Name').focus().select();
$('#PurchaseDate').datepicker({
changeYear: true,
changeMonth: true,
dateFormat: 'yy/mm/dd'
})
});
</script>
}