#pragma warning disable 1591 //------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ namespace Disco.Web.Areas.Config.Views.DeviceProfile { using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Web; using System.Web.Helpers; using System.Web.Mvc; using System.Web.Mvc.Ajax; using System.Web.Mvc.Html; using System.Web.Routing; using System.Web.Security; using System.Web.UI; using System.Web.WebPages; using Disco; using Disco.Models.Repository; using Disco.Services; using Disco.Services.Authorization; #line 2 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" using Disco.Services.Devices.ManagedGroups; #line default #line hidden using Disco.Services.Web; using Disco.Web; #line 3 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" using Disco.Web.Areas.Config.Models.Shared; #line default #line hidden using Disco.Web.Extensions; [System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")] [System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Config/Views/DeviceProfile/Show.cshtml")] public partial class Show : Disco.Services.Web.WebViewPage { public Show() { } public override void Execute() { #line 4 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Authorization.Require(Claims.Config.DeviceProfile.Show); ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "Device Profiles", MVC.Config.DeviceProfile.Index(null), Model.DeviceProfile.ToString()); var canConfig = Authorization.Has(Claims.Config.DeviceProfile.Configure); var canConfigExpression = Authorization.Has(Claims.Config.DeviceProfile.ConfigureComputerNameTemplate); var canDelete = (Authorization.Has(Claims.Config.DeviceProfile.Delete) && Model.CanDelete); var canViewPlugins = Authorization.Has(Claims.Config.Plugin.Install); var hideAdvanced = Model.DeviceProfile.AssignedUsersLinkedGroup == null && Model.DeviceProfile.DevicesLinkedGroup == null; if (canConfig) { Html.BundleDeferred("~/Style/Fancytree"); Html.BundleDeferred("~/ClientScripts/Modules/jQuery-Fancytree"); Html.BundleDeferred("~/ClientScripts/Modules/Disco-PropertyChangeHelpers"); } #line default #line hidden WriteLiteral("\r\n(hideAdvanced ? " Config_HideAdvanced" : null #line default #line hidden , 1206), false) ); WriteLiteral(" style=\"width: 640px\""); WriteLiteral(">\r\n \r\n \r\n \r\n Id:\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n " + " \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n"); #line 722 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 722 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (hideAdvanced) { #line default #line hidden WriteLiteral(" \r\n \r\n Show Advanced Options "); #line 738 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral(" \r\n \r\n " + " \r\n \r\n
\r\n"); WriteLiteral(" "); #line 32 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Html.DisplayFor(model => model.DeviceProfile.Id)); #line default #line hidden WriteLiteral("\r\n
\r\n " + " Name:\r\n \r\n"); #line 40 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 40 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canConfig) { #line default #line hidden #line 42 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Html.TextBoxFor(model => model.DeviceProfile.Name)); #line default #line hidden #line 42 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 43 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(AjaxHelpers.AjaxSave()); #line default #line hidden #line 43 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 44 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(AjaxHelpers.AjaxLoader()); #line default #line hidden #line 44 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden WriteLiteral(" \r\n $(function () {\r\n document." + "DiscoFunctions.PropertyChangeHelper(\r\n $(\'#Device" + "Profile_Name\'),\r\n \'Name\',\r\n " + " \'"); #line 50 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Url.Action(MVC.API.DeviceProfile.UpdateName(Model.DeviceProfile.Id))); #line default #line hidden WriteLiteral("\',\r\n \'ProfileName\'\r\n );" + "\r\n });\r\n \r\n"); #line 55 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } else { #line default #line hidden #line 58 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Model.DeviceProfile.Name); #line default #line hidden #line 58 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral("
\r\n " + " Short Name:\r\n \r\n"); #line 67 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 67 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canConfig) { #line default #line hidden #line 69 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Html.TextBoxFor(model => model.DeviceProfile.ShortName)); #line default #line hidden #line 69 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 70 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(AjaxHelpers.AjaxSave()); #line default #line hidden #line 70 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 71 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(AjaxHelpers.AjaxLoader()); #line default #line hidden #line 71 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden WriteLiteral(" $(function () { document.DiscoFunctions.PropertyChangeHelper( $('#DeviceProfile_ShortName'), 'Short Name', '"); #line 77 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Url.Action(MVC.API.DeviceProfile.UpdateShortName(Model.DeviceProfile.Id))); #line default #line hidden WriteLiteral("\',\r\n \'ShortName\'\r\n );\r\n" + " });\r\n \r\n"); #line 82 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } else { #line default #line hidden #line 85 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Model.DeviceProfile.ShortName); #line default #line hidden #line 85 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral("
\r\n " + " Description:\r\n \r\n"); #line 94 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 94 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canConfig) { #line default #line hidden #line 96 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Html.EditorFor(model => model.DeviceProfile.Description)); #line default #line hidden #line 96 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 97 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(AjaxHelpers.AjaxSave()); #line default #line hidden #line 97 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 98 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(AjaxHelpers.AjaxLoader()); #line default #line hidden #line 98 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden WriteLiteral(" $(function () { document.DiscoFunctions.PropertyChangeHelper( $('#DeviceProfile_Description'), 'Description', '"); #line 104 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Url.Action(MVC.API.DeviceProfile.UpdateDescription(Model.DeviceProfile.Id))); #line default #line hidden WriteLiteral("\',\r\n \'Description\'\r\n );" + "\r\n });\r\n \r\n"); #line 109 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } else { #line default #line hidden #line 112 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Model.DeviceProfile.Description); #line default #line hidden #line 112 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral("
Members\r\n
"); #line 119 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Model.DeviceCount.ToString("n0")); #line default #line hidden WriteLiteral(" "); #line 119 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Model.DeviceCount == 1 ? "devices is a member" : "devices are members"); #line default #line hidden WriteLiteral(" of this profile.
\r\n"); #line 120 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 120 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (Model.DeviceDecommissionedCount > 0) { #line default #line hidden WriteLiteral(" "); #line 122 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Model.DeviceDecommissionedCount.ToString("n0")); #line default #line hidden WriteLiteral(" "); #line 122 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Model.DeviceDecommissionedCount == 1 ? "device is" : "devices are"); #line default #line hidden WriteLiteral(" decommissioned.\r\n"); #line 123 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral("
\r\n " + " Distribution Type:\r\n \r\n"); #line 131 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 131 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canConfig) { #line default #line hidden #line 133 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Html.DropDownList("DeviceProfile_DistributionType", Model.DeviceProfileDistributionTypes)); #line default #line hidden #line 133 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 134 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(AjaxHelpers.AjaxLoader()); #line default #line hidden #line 134 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden WriteLiteral(" $(function () { document.DiscoFunctions.PropertyChangeHelper( $('#DeviceProfile_DistributionType'), null, '"); #line 140 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Url.Action(MVC.API.DeviceProfile.UpdateDistributionType(Model.DeviceProfile.Id))); #line default #line hidden WriteLiteral("\',\r\n \'DistributionType\'\r\n " + " );\r\n });\r\n \r\n"); #line 145 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } else { #line default #line hidden #line 148 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Model.DeviceProfile.DistributionType.ToString()); #line default #line hidden #line 148 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral(" \r\n \r\n One-to-many devices are typically shared. One-to-one devices are typically assigned to a user; enrolment with a one-to-one device isn't considered complete until it is assigned.

Address: "); #line 164 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 164 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canConfig) { #line default #line hidden #line 166 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Html.DropDownListFor(m => m.DeviceProfile.DefaultOrganisationAddress, Model.OrganisationAddresses.ToSelectListItems(Model.DeviceProfile.DefaultOrganisationAddress, true, "None"))); #line default #line hidden #line 166 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 167 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(AjaxHelpers.AjaxLoader()); #line default #line hidden #line 167 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden WriteLiteral(" $(function () { document.DiscoFunctions.PropertyChangeHelper( $('#DeviceProfile_DefaultOrganisationAddress'), null, '"); #line 173 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Url.Action(MVC.API.DeviceProfile.UpdateDefaultOrganisationAddress(Model.DeviceProfile.Id))); #line default #line hidden WriteLiteral("\',\r\n \'DefaultOrganisationAddress\'\r\n " + " );\r\n });\r\n \r\n"); #line 178 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } else { if (Model.DefaultOrganisationAddress == null) { #line default #line hidden WriteLiteral(" <None Specified>\r\n"); #line 184 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } else { #line default #line hidden #line 187 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Model.DefaultOrganisationAddress.ToString()); #line default #line hidden #line 187 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } } #line default #line hidden WriteLiteral(" \r\n \r\n The profile address is used to separate jobs for (Url.Action(MVC.Config.Organisation.Index()) #line default #line hidden , 8099), false) ); WriteLiteral(@">multi-site mode. It is also suggested as the default address for warranty/repair actions.

Policies
"); #line 202 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 202 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canConfig) { #line default #line hidden WriteLiteral("
\r\n"); #line 233 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 233 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canConfig) { #line default #line hidden WriteLiteral("
Computer Name
Template Expression:
"); #line 298 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 298 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canConfig && canConfigExpression) { #line default #line hidden #line 300 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Html.EditorFor(model => model.DeviceProfile.ComputerNameTemplate)); #line default #line hidden #line 300 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 301 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(AjaxHelpers.AjaxSave()); #line default #line hidden #line 301 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 302 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(AjaxHelpers.AjaxLoader()); #line default #line hidden #line 302 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden WriteLiteral(" (Url.Action(MVC.Config.DocumentTemplate.ExpressionBrowser()) #line default #line hidden , 14674), false) ); WriteLiteral("> \r\n"); WriteLiteral(" $(function () { var field = $('#DeviceProfile_ComputerNameTemplate'); var fieldOriginalWidth, fieldOriginalHeight; document.DiscoFunctions.PropertyChangeHelper( field, 'None', '"); #line 312 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Url.Action(MVC.API.DeviceProfile.UpdateComputerNameTemplate(Model.DeviceProfile.Id))); #line default #line hidden WriteLiteral(@"', 'ComputerNameTemplate' ); field.focus(function () { fieldOriginalWidth = field.width(); fieldOriginalHeight = field.height(); field.css('overflow', 'visible').animate({ width: field.parent().width() - 52, height: 75 }, 200); }).blur(function () { field.css('overflow', 'hidden').animate({ width: fieldOriginalWidth, height: fieldOriginalHeight }, 200); }).attr('placeholder', 'None').attr('spellcheck', 'false'); }); "); #line 325 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } else { #line default #line hidden WriteLiteral(" \r\n"); #line 329 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 329 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (string.IsNullOrWhiteSpace(Model.DeviceProfile.ComputerNameTemplate)) { #line default #line hidden WriteLiteral(" <None Specified>\r\n"); #line 332 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } else { #line default #line hidden #line 335 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Model.DeviceProfile.ComputerNameTemplate); #line default #line hidden #line 335 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral(" \r\n"); #line 338 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral(" \r\n"); #line 340 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 340 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canConfig) { #line default #line hidden WriteLiteral("
Organisational Unit: "); #line 376 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 376 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canConfig) { #line default #line hidden WriteLiteral("
Provision Certificates: "); #line 548 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 548 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canConfig && (Model.CertificateProviders.Count > 0 || Model.CertificateAuthorityProviders.Count > 0)) { #line default #line hidden WriteLiteral("
\r\n"); #line 551 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 551 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(AjaxHelpers.AjaxLoader("DeviceProfile_CertificateProviders")); #line default #line hidden #line 551 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral(" "); #line 553 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canConfig && Model.CertificateProviders.Count > 0) { #line default #line hidden WriteLiteral(" $(function () { var $container = $('#DeviceProfile_CertificateProviders'); $container.on('change', 'input', function () { var $ajaxLoading = $('#DeviceProfile_CertificateProviders_loading').show(); var data = { CertificateProviders: $('input:checked', $container).map(function () { return $(this).val() }).get().join(',') }; $.getJSON('"); #line 565 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Url.Action(MVC.API.DeviceProfile.UpdateCertificateProviders(Model.DeviceProfile.Id))); #line default #line hidden WriteLiteral(@"', data, function (response, result) { if (result != 'success' || response != 'OK') { alert('Unable to change property ""CertificateProviders"":\n' + response); $ajaxLoading.hide(); } else { $ajaxLoading.hide().next('.ajaxOk').show().delay('fast').fadeOut('slow'); } }) }) }); "); #line 576 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral(" "); #line 577 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canConfig && Model.CertificateProviders.Count > 0) { #line default #line hidden WriteLiteral(" $(function () { var $container = $('#DeviceProfile_CertificateAuthorityProviders'); $container.on('change', 'input', function () { var $ajaxLoading = $('#DeviceProfile_CertificateProviders_loading').show(); var data = { CertificateAuthorityProviders: $('input:checked', $container).map(function () { return $(this).val() }).get().join(',') }; $.getJSON('"); #line 589 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Url.Action(MVC.API.DeviceProfile.UpdateCertificateAuthorityProviders(Model.DeviceProfile.Id))); #line default #line hidden WriteLiteral(@"', data, function (response, result) { if (result != 'success' || response != 'OK') { alert('Unable to change property ""CertificateAuthorityProviders"":\n' + response); $ajaxLoading.hide(); } else { $ajaxLoading.hide().next('.ajaxOk').show().delay('fast').fadeOut('slow'); } }) }) }); "); #line 600 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral("
\r\n

Device/Machine Certifica" + "tes

\r\n"); #line 604 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 604 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canConfig && Model.CertificateProviders.Count > 0) { #line default #line hidden #line 606 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(CommonHelpers.CheckBoxList("DeviceProfile_CertificateProviders", "DeviceProfile_CertificateProviders", Model.CertificateProviders.ToSelectListItems(Model.DeviceProfile.GetCertificateProviders()))); #line default #line hidden #line 606 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } else { var certificateProviders = Model.DeviceProfile.GetCertificateProviders().ToList(); if (certificateProviders.Count == 0) { #line default #line hidden WriteLiteral(" <None Allocated>\r\n"); #line 615 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } else { #line default #line hidden WriteLiteral("
    \r\n"); #line 619 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 619 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" foreach (var certificateProvider in certificateProviders) { #line default #line hidden WriteLiteral("
  • "); #line 621 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(certificateProvider.Name); #line default #line hidden WriteLiteral("
  • \r\n"); #line 622 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral("
\r\n"); #line 624 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } } #line default #line hidden WriteLiteral(" Authority Certificates\r\n"); #line 627 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 627 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canConfig && Model.CertificateAuthorityProviders.Count > 0) { #line default #line hidden #line 629 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(CommonHelpers.CheckBoxList("DeviceProfile_CertificateAuthorityProviders", "DeviceProfile_CertificateAuthorityProviders", Model.CertificateAuthorityProviders.ToSelectListItems(Model.DeviceProfile.GetCertificateAuthorityProviders()))); #line default #line hidden #line 629 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } else { var certificateProviders = Model.DeviceProfile.GetCertificateAuthorityProviders().ToList(); if (certificateProviders.Count == 0) { #line default #line hidden WriteLiteral(" <None Allocated>\r\n"); #line 638 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } else { #line default #line hidden WriteLiteral("
    \r\n"); #line 642 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 642 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" foreach (var certificateProvider in certificateProviders) { #line default #line hidden WriteLiteral("
  • "); #line 644 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(certificateProvider.Name); #line default #line hidden WriteLiteral("
  • \r\n"); #line 645 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral("
\r\n"); #line 647 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } } #line default #line hidden WriteLiteral(" "); #line 649 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canViewPlugins) { #line default #line hidden WriteLiteral(" \r\n \r\n View the (Url.Action(MVC.Config.Plugins.Install()) #line default #line hidden , 34303), false) ); WriteLiteral(">Plugin Catalogue to discover and install certificate provider plugins.\r\n " + "

\r\n \r\n"); #line 656 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral("
\r\n " + " Provision Wireless Profiles:\r\n"); #line 662 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 662 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canConfig && Model.WirelessProfileProviders.Count > 0) { #line default #line hidden WriteLiteral("
\r\n"); #line 665 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 665 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(AjaxHelpers.AjaxLoader("DeviceProfile_WirelessProfileProviders")); #line default #line hidden #line 665 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden WriteLiteral(" $(function () { var $container = $('#DeviceProfile_WirelessProfileProviders'); $container.on('change', 'input', function () { var $ajaxLoading = $('#DeviceProfile_WirelessProfileProviders_loading').show(); var data = { WirelessProfileProviders: $('input:checked', $container).map(function () { return $(this).val() }).get().join(',') }; $.getJSON('"); #line 676 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Url.Action(MVC.API.DeviceProfile.UpdateWirelessProfileProviders(Model.DeviceProfile.Id))); #line default #line hidden WriteLiteral(@"', data, function (response, result) { if (result != 'success' || response != 'OK') { alert('Unable to change property ""WirelessProfileProviders"":\n' + response); $ajaxLoading.hide(); } else { $ajaxLoading.hide().next('.ajaxOk').show().delay('fast').fadeOut('slow'); } }) }) }); "); #line 687 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral("
\r\n"); #line 690 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 690 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canConfig && Model.WirelessProfileProviders.Count > 0) { #line default #line hidden #line 692 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(CommonHelpers.CheckBoxList("DeviceProfile_WirelessProfileProviders", "DeviceProfile_WirelessProfileProviders", Model.WirelessProfileProviders.ToSelectListItems(Model.DeviceProfile.GetWirelessProfileProviders()))); #line default #line hidden #line 692 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } else { var wirelessProfileProviders = Model.DeviceProfile.GetWirelessProfileProviders().ToList(); if (wirelessProfileProviders.Count == 0) { #line default #line hidden WriteLiteral(" <None Allocated>\r\n"); #line 701 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } else { #line default #line hidden WriteLiteral("
    \r\n"); #line 705 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 705 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" foreach (var wirelessProfileProvider in wirelessProfileProviders) { #line default #line hidden WriteLiteral("
  • "); #line 707 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(wirelessProfileProvider.Name); #line default #line hidden WriteLiteral("
  • \r\n"); #line 708 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral("
\r\n"); #line 710 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } } #line default #line hidden WriteLiteral(" "); #line 712 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canViewPlugins) { #line default #line hidden WriteLiteral(" \r\n \r\n View the (Url.Action(MVC.Config.Plugins.Install()) #line default #line hidden , 37549), false) ); WriteLiteral(">Plugin Catalogue to discover and install wireless profile provider plugins.\r" + "\n

\r\n \r\n"); #line 719 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral("
\r\n Linked Groups:\r\n \r\n
\r\n"); WriteLiteral(" "); #line 745 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Html.Partial(MVC.Config.Shared.Views.LinkedGroupInstance, new LinkedGroupModel() { CanConfigure = canConfig, CategoryDescription = DeviceProfileDevicesManagedGroup.GetCategoryDescription(Model.DeviceProfile), Description = DeviceProfileDevicesManagedGroup.GetDescription(Model.DeviceProfile), ManagedGroup = Model.DevicesLinkedGroup, UpdateUrl = Url.Action(MVC.API.DeviceProfile.UpdateDevicesLinkedGroup(Model.DeviceProfile.Id, redirect: true)) })); #line default #line hidden WriteLiteral("\r\n"); WriteLiteral(" "); #line 753 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Html.Partial(MVC.Config.Shared.Views.LinkedGroupInstance, new LinkedGroupModel() { CanConfigure = canConfig, CategoryDescription = DeviceProfileAssignedUsersManagedGroup.GetCategoryDescription(Model.DeviceProfile), Description = DeviceProfileAssignedUsersManagedGroup.GetDescription(Model.DeviceProfile), ManagedGroup = Model.AssignedUsersLinkedGroup, UpdateUrl = Url.Action(MVC.API.DeviceProfile.UpdateAssignedUsersLinkedGroup(Model.DeviceProfile.Id, redirect: true)) })); #line default #line hidden WriteLiteral("\r\n"); #line 761 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 761 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canConfig) { #line default #line hidden #line 763 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Html.Partial(MVC.Config.Shared.Views.LinkedGroupShared)); #line default #line hidden #line 763 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral("
\r\n
\r\n\r\n"); #line 770 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canDelete) { #line default #line hidden WriteLiteral(" \r\n

\r\n \r\n This item will be permanently deleted and cannot be recovered." + " Are you sure?\r\n

\r\n \r\n"); WriteLiteral(" $(function () { var button = $('#buttonDelete'); var buttonLink = button.attr('href'); button.attr('href', '#'); button.click(function () { $(""#dialogConfirmDelete"").dialog('open'); }); $(""#dialogConfirmDelete"").dialog({ resizable: false, height: 140, modal: true, autoOpen: false, buttons: { ""Delete"": function () { $(this).dialog('disable'); window.location.href = buttonLink; }, Cancel: function () { $(this).dialog(""close""); } } }); }); "); #line 806 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral("\r\n"); #line 808 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 808 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canDelete) { #line default #line hidden #line 810 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Html.ActionLinkButton("Delete", MVC.API.DeviceProfile.Delete(Model.DeviceProfile.Id, true), "buttonDelete")); #line default #line hidden #line 810 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral(" "); #line 812 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (Authorization.Has(Claims.Device.Actions.Export)) { #line default #line hidden #line 814 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Html.ActionLinkButton("Export Devices", MVC.Device.Export(null, Disco.Models.Services.Devices.Exporting.DeviceExportTypes.Profile, Model.DeviceProfile.Id))); #line default #line hidden #line 814 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral(" "); #line 816 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (Authorization.Has(Claims.Device.Search) && Model.DeviceCount > 0) { #line default #line hidden #line 818 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Html.ActionLinkButton(string.Format("View {0} Device{1}", Model.DeviceCount, (Model.DeviceCount != 1 ? "s" : null)), MVC.Search.Query(Model.DeviceProfile.Id.ToString(), "DeviceProfile"))); #line default #line hidden #line 818 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral("\r\n"); } } } #pragma warning restore 1591