@model Disco.Models.Repository.Device
@if (Model.CanDecommission()) { @Html.ActionLinkButton("Decommission", MVC.API.Device.Decommission(Model.SerialNumber, true), "buttonDeviceDecommission")

Are you sure?

} @if (Model.CanRecommission()) { @Html.ActionLinkButton("Recommission", MVC.API.Device.Recommission(Model.SerialNumber, true), "buttonDeviceRecommission")

Are you sure?

} @if (Model.CanDelete()) { @Html.ActionLinkButton("Delete Device", MVC.API.Device.Delete(Model.SerialNumber, true), "buttonDeviceDelete")

This item will be permanently deleted and cannot be recovered.
Jobs linked to this Device (but not to a User) will be deleted also.
Are you sure?

} @if (Model.CanCreateJob()) { Html.BundleDeferred("~/ClientScripts/Modules/Disco-CreateJob"); @Html.ActionLinkButton("Create Job", MVC.Job.Create(Model.SerialNumber, Model.AssignedUserId), "buttonCreateJob") }