#pragma warning disable 1591 //------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:4.0.30319.34014 // // 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.BI.Extensions; 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 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 \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 537 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 537 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (hideAdvanced) { #line default #line hidden WriteLiteral(" \r\n \r\n Show Advanced Options "); #line 553 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral(" \r\n \r\n \r\n \r\n
\r\n"); WriteLiteral(" "); #line 31 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Html.DisplayFor(model => model.DeviceProfile.Id)); #line default #line hidden WriteLiteral("\r\n
Name:\r\n " + " "); #line 37 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canConfig) { #line default #line hidden #line 39 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Html.TextBoxFor(model => model.DeviceProfile.Name)); #line default #line hidden #line 39 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 40 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(AjaxHelpers.AjaxSave()); #line default #line hidden #line 40 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 41 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(AjaxHelpers.AjaxLoader()); #line default #line hidden #line 41 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden WriteLiteral(" \r\n $(function () {\r\n document.DiscoFun" + "ctions.PropertyChangeHelper(\r\n $(\'#DeviceProfile_Name" + "\'),\r\n \'Name\',\r\n \'"); #line 47 "..\..\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 52 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } else { #line default #line hidden #line 55 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Model.DeviceProfile.Name); #line default #line hidden #line 55 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral("
Short Name:\r\n " + " "); #line 62 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canConfig) { #line default #line hidden #line 64 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Html.TextBoxFor(model => model.DeviceProfile.ShortName)); #line default #line hidden #line 64 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 65 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(AjaxHelpers.AjaxSave()); #line default #line hidden #line 65 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 66 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(AjaxHelpers.AjaxLoader()); #line default #line hidden #line 66 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden WriteLiteral(" \r\n $(function () {\r\n document.DiscoFun" + "ctions.PropertyChangeHelper(\r\n $(\'#DeviceProfile_Shor" + "tName\'),\r\n \'Short Name\',\r\n " + " \'"); #line 72 "..\..\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 77 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } else { #line default #line hidden #line 80 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Model.DeviceProfile.ShortName); #line default #line hidden #line 80 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral("
Description:\r\n " + " "); #line 87 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canConfig) { #line default #line hidden #line 89 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Html.EditorFor(model => model.DeviceProfile.Description)); #line default #line hidden #line 89 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 90 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(AjaxHelpers.AjaxSave()); #line default #line hidden #line 90 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 91 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(AjaxHelpers.AjaxLoader()); #line default #line hidden #line 91 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden WriteLiteral(" \r\n $(function () {\r\n document.DiscoFun" + "ctions.PropertyChangeHelper(\r\n $(\'#DeviceProfile_Desc" + "ription\'),\r\n \'Description\',\r\n " + " \'"); #line 97 "..\..\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 102 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } else { #line default #line hidden #line 105 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Model.DeviceProfile.Description); #line default #line hidden #line 105 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral("
Members\r\n
"); #line 112 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Model.DeviceCount.ToString("n0")); #line default #line hidden WriteLiteral(" "); #line 112 "..\..\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 113 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 113 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (Model.DeviceDecommissionedCount > 0) { #line default #line hidden WriteLiteral(" "); #line 115 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Model.DeviceDecommissionedCount.ToString("n0")); #line default #line hidden WriteLiteral(" "); #line 115 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Model.DeviceDecommissionedCount == 1 ? "device is" : "devices are"); #line default #line hidden WriteLiteral(" decommissioned.\r\n"); #line 116 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral("
Distribution Type" + ":\r\n "); #line 122 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canConfig) { #line default #line hidden #line 124 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Html.DropDownList("DeviceProfile_DistributionType", Model.DeviceProfileDistributionTypes)); #line default #line hidden #line 124 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 125 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(AjaxHelpers.AjaxLoader()); #line default #line hidden #line 125 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden WriteLiteral(" \r\n $(function () {\r\n document.DiscoFun" + "ctions.PropertyChangeHelper(\r\n $(\'#DeviceProfile_Dist" + "ributionType\'),\r\n null,\r\n " + "\'"); #line 131 "..\..\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 136 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } else { #line default #line hidden #line 139 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Model.DeviceProfile.DistributionType.ToString()); #line default #line hidden #line 139 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral("
Address:\r\n " + " "); #line 146 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canConfig) { #line default #line hidden #line 148 "..\..\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 148 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 149 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(AjaxHelpers.AjaxLoader()); #line default #line hidden #line 149 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden WriteLiteral(" \r\n $(function () {\r\n document.DiscoFun" + "ctions.PropertyChangeHelper(\r\n $(\'#DeviceProfile_Defa" + "ultOrganisationAddress\'),\r\n null,\r\n " + " \'"); #line 155 "..\..\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 160 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } else { if (Model.DefaultOrganisationAddress == null) { #line default #line hidden WriteLiteral(" <None Specified>\r\n"); #line 166 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } else { #line default #line hidden #line 169 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Model.DefaultOrganisationAddress.ToString()); #line default #line hidden #line 169 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } } #line default #line hidden WriteLiteral("
Allocate Certific" + "ates:\r\n "); #line 177 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canConfig && Model.CertificateProviders.Count > 0) { #line default #line hidden #line 179 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Html.DropDownListFor(model => model.DeviceProfile.CertificateProviderId, Model.CertificateProviders.ToSelectListItems(null, true, "Not Allocated"))); #line default #line hidden #line 179 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 180 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(AjaxHelpers.AjaxLoader()); #line default #line hidden #line 180 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden WriteLiteral(" \r\n $(function () {\r\n document.DiscoFun" + "ctions.PropertyChangeHelper(\r\n $(\'#DeviceProfile_Cert" + "ificateProviderId\'),\r\n null,\r\n " + " \'"); #line 186 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Url.Action(MVC.API.DeviceProfile.UpdateCertificateProviderId(Model.DeviceProfile.Id))); #line default #line hidden WriteLiteral("\',\r\n \'CertificateProviderId\'\r\n " + ");\r\n });\r\n \r\n"); #line 191 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } else { if (string.IsNullOrEmpty(Model.DeviceProfile.CertificateProviderId)) { #line default #line hidden WriteLiteral(" <None Allocated>\r\n"); #line 197 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } else { var cp = Model.CertificateProviders.FirstOrDefault(p => p.Id == Model.DeviceProfile.CertificateProviderId); if (cp == null) { #line default #line hidden WriteLiteral(" <None Allocated>\r\n"); #line 204 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } else { #line default #line hidden #line 207 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(cp.Name); #line default #line hidden #line 207 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } } } #line default #line hidden WriteLiteral(" "); #line 211 "..\..\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 , 8933), false) ); WriteLiteral(">Plugin Catalogue to discover and install certificate provider plugins.\r\n " + "

\r\n \r\n"); #line 218 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral("
Computer Name
\r\n Template Expression:\r\n
"); #line 225 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canConfig && canConfigExpression) { #line default #line hidden #line 227 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Html.EditorFor(model => model.DeviceProfile.ComputerNameTemplate)); #line default #line hidden #line 227 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 228 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(AjaxHelpers.AjaxSave()); #line default #line hidden #line 228 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 229 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(AjaxHelpers.AjaxLoader()); #line default #line hidden #line 229 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden WriteLiteral(" (Url.Action(MVC.Config.DocumentTemplate.ExpressionBrowser()) #line default #line hidden , 9570), false) ); WriteLiteral("> \r\n"); WriteLiteral(" $(function () { var field = $('#DeviceProfile_ComputerNameTemplate'); var fieldOriginalWidth, fieldOriginalHeight; document.DiscoFunctions.PropertyChangeHelper( field, 'None', '"); #line 239 "..\..\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 252 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } else { #line default #line hidden WriteLiteral(" \r\n"); #line 256 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 256 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (string.IsNullOrWhiteSpace(Model.DeviceProfile.ComputerNameTemplate)) { #line default #line hidden WriteLiteral(" <None Specified>\r\n"); #line 259 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } else { #line default #line hidden #line 262 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Model.DeviceProfile.ComputerNameTemplate); #line default #line hidden #line 262 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral(" \r\n"); #line 265 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral(" \r\n"); #line 267 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 267 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canConfig) { #line default #line hidden WriteLiteral("
Policies\r\n " + "
\r\n"); #line 299 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 299 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canConfig) { #line default #line hidden WriteLiteral("
\r\n \r\n"); #line 323 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 323 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canConfig) { #line default #line hidden WriteLiteral("
Organisational Unit:\r\n "); #line 375 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canConfig) { #line default #line hidden WriteLiteral("
Linked Groups:\r\n \r\n " + "
\r\n"); WriteLiteral(" "); #line 559 "..\..\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 567 "..\..\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 575 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 575 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canConfig) { #line default #line hidden #line 577 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Html.Partial(MVC.Config.Shared.Views.LinkedGroupShared)); #line default #line hidden #line 577 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral("
\r\n
\r\n\r\n"); #line 584 "..\..\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 620 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral("\r\n"); #line 622 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" #line default #line hidden #line 622 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (canDelete) { #line default #line hidden #line 624 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" Write(Html.ActionLinkButton("Delete", MVC.API.DeviceProfile.Delete(Model.DeviceProfile.Id, true), "buttonDelete")); #line default #line hidden #line 624 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral(" "); #line 626 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (Authorization.Has(Claims.Device.Actions.Export)) { #line default #line hidden #line 628 "..\..\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 628 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral(" "); #line 630 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" if (Authorization.Has(Claims.Device.Search) && Model.DeviceCount > 0) { #line default #line hidden #line 632 "..\..\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 632 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml" } #line default #line hidden WriteLiteral("\r\n"); } } } #pragma warning restore 1591