@model Disco.Web.Areas.Config.Models.DeviceBatch.ShowModel @{ ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "Device Batches", MVC.Config.DeviceBatch.Index(null), Model.DeviceBatch.ToString()); Html.BundleDeferred("~/ClientScripts/Modules/Disco-PropertyChangeHelpers"); Html.BundleDeferred("~/ClientScripts/Modules/Disco-AjaxHelperIcons"); Html.BundleDeferred("~/ClientScripts/Modules/tinymce"); }
| Id: | @Html.DisplayFor(model => model.DeviceBatch.Id) | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Name: | @Html.EditorFor(model => model.DeviceBatch.Name) @AjaxHelpers.AjaxSave() @AjaxHelpers.AjaxLoader() | |||||||||
| Default Device Model: |
@Html.DropDownListFor(model => model.DeviceBatch.DefaultDeviceModelId, Model.DeviceModels.ToSelectListItems())
@AjaxHelpers.AjaxSave()
@AjaxHelpers.AjaxLoader()
Devices added offline will default to this Device Model. Once a device enrols the Device Model will be accurately represented. |
|||||||||
| Devices |
@if (Model.DeviceModelMembers.Count > 0)
{
No device models are referenced in this batch.
}
@if (Model.DeviceBatch.UnitQuantity.HasValue && Model.DeviceBatch.UnitQuantity.Value > Model.DeviceCount)
{
var missingCount = Model.DeviceBatch.UnitQuantity.Value - Model.DeviceCount;
@Model.DeviceCount.ToString("n0") of @(Model.DeviceBatch.UnitQuantity.Value.ToString("n0")) purchased devices are managed by Disco. @missingCount.ToString("n0") @(missingCount == 1 ? "is" : "are") not managed.
}
|
|||||||||
| Purchase: |
Details @AjaxHelpers.AjaxLoader("ajaxPurchaseDetails")
@Html.EditorFor(model => model.DeviceBatch.PurchaseDetails)
|
|||||||||
| Warranty: |
Details @AjaxHelpers.AjaxLoader("ajaxWarrantyDetails")
@Html.EditorFor(model => model.DeviceBatch.WarrantyDetails)
|
|||||||||
| Insurance: |
Details @AjaxHelpers.AjaxLoader("ajaxInsuranceDetails")
@Html.EditorFor(model => model.DeviceBatch.InsuranceDetails)
|
|||||||||
| Comments: @AjaxHelpers.AjaxLoader("ajaxComments") |
@Html.EditorFor(model => model.DeviceBatch.Comments) |