41 lines
1.3 KiB
Plaintext
41 lines
1.3 KiB
Plaintext
@model Disco.Web.Areas.Config.Models.DeviceBatch.CreateModel
|
|
@{
|
|
Authorization.Require(Claims.Config.DeviceBatch.Create);
|
|
ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "Device Batches", MVC.Config.DeviceBatch.Index(null), "Create");
|
|
}
|
|
@using (Html.BeginForm())
|
|
{
|
|
@Html.AntiForgeryToken()
|
|
@Html.ValidationSummary(false)
|
|
<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({
|
|
minDate: new Date(1900, 1-1, 1),
|
|
changeYear: true,
|
|
changeMonth: true,
|
|
dateFormat: 'yy/mm/dd'
|
|
})
|
|
});
|
|
</script>
|
|
}
|