@model Disco.Web.Models.Device.ShowModel @using Disco.Services.Users.UserFlags; @{ Authorization.Require(Claims.Device.Show); Html.BundleDeferred("~/ClientScripts/Modules/Disco-PropertyChangeHelpers"); }
@{
var assignedUser = Model.Device.AssignedUser;
}
@if (Authorization.Has(Claims.Device.Actions.GenerateDocuments))
{
@Html.Partial(MVC.Shared.Views._GenerateDocumentControl, Model.GenerateDocumentControlModel)
}
|
@if (Authorization.Has(Claims.Config.DeviceProfile.Show)) { @Html.ActionLink(Model.Device.DeviceProfile.Name, MVC.Config.DeviceProfile.Index(Model.Device.DeviceProfileId)) } else { @Model.Device.DeviceProfile.Name }
@using (Html.BeginForm(MVC.API.Device.UpdateDeviceProfileId(Model.Device.SerialNumber, redirect: true)))
{
}
@Html.AntiForgeryToken()
@if (Model.Device.DeviceBatchId.HasValue)
{
@if (Authorization.Has(Claims.Config.DeviceBatch.Show)) { @Html.ActionLink(Model.Device.DeviceBatch.Name, MVC.Config.DeviceBatch.Index(Model.Device.DeviceBatchId.Value)) } else { @Model.Device.DeviceBatch.Name }
Batch: Not Associated} @if (Model.Device.CanUpdateDeviceBatch()) { @Html.ActionLinkSmallButton("Update Batch", MVC.API.Device.UpdateDeviceBatchId(Model.Device.SerialNumber, null, true), "Device_Show_Policies_Batch_Actions_Update_Button")
|
@if (Authorization.Has(Claims.Config.DeviceModel.Show)) { @Html.ActionLink(Model.Device.DeviceModel.ToString(), MVC.Config.DeviceModel.Index(Model.Device.DeviceModelId)) } else { @Model.Device.DeviceModel.ToString() } |
||||||||||||||||||||||||||||||||||||||
@if (Model.Device.CanCreateJob())
{
Html.BundleDeferred("~/ClientScripts/Modules/Disco-CreateJob");
@Html.ActionLinkSmallButton("Create Job", MVC.Job.Create(Model.Device.SerialNumber, Model.Device.AssignedUserId), "buttonCreateJob")
}
@if (Model.Device.CanUpdateAssignment())
{
Update Assignment
Assign to User:@using (Html.BeginForm(MVC.API.Device.UpdateAssignedUserId(Model.Device.SerialNumber, redirect: true))) { }
@using (Html.BeginForm(MVC.API.DeviceFlagAssignment.AddDevice()))
{
}
@if (Model.Device.CanUpdateTrustEnrol())
{
@Html.ActionLinkSmallButton("Trust Enrol", MVC.API.Device.UpdateAllowUnauthenticatedEnrol(Model.Device.SerialNumber, true.ToString(), true), "Device_Show_Device_Actions_TrustEnrol_Button")
@foreach (var flag in Model.AvailableDeviceFlags.OrderBy(jq => jq.Name))
{
@flag.Name
}
CommentsDevices flagged as 'trusted' are allowed a single-use device enrolment without providing authentication (for example: Active Directory Computer Account). Once a device enrols, its trust setting is reset and additional enrolments need to be authenticated (domain joined) or manually trusted again. This action will allow a device claiming to have the Serial Number '@(Model.Device.SerialNumber)' to be enrolled without authentication.
Are you sure you want to allow an unauthenticated enrolment?
This action will require the device to enrol with authentication (for example: domain joined).
Are you sure you want to require an authenticated enrolment?
Why is this device to be decommissioned?
Are you sure?
This item will be permanently deleted and cannot be recovered. |