2703 lines
90 KiB
C#
2703 lines
90 KiB
C#
#pragma warning disable 1591
|
|
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// 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.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
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<Disco.Web.Areas.Config.Models.DeviceProfile.ShowModel>
|
|
{
|
|
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<div");
|
|
|
|
WriteLiteral(" id=\"configurationDeviceProfileShow\"");
|
|
|
|
WriteAttribute("class", Tuple.Create(" class=\"", 1194), Tuple.Create("\"", 1253)
|
|
, Tuple.Create(Tuple.Create("", 1202), Tuple.Create("form", 1202), true)
|
|
|
|
#line 25 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 1206), Tuple.Create<System.Object, System.Int32>(hideAdvanced ? " Config_HideAdvanced" : null
|
|
|
|
#line default
|
|
#line hidden
|
|
, 1206), false)
|
|
);
|
|
|
|
WriteLiteral(" style=\"width: 640px\"");
|
|
|
|
WriteLiteral(">\r\n <table>\r\n <tr>\r\n <th");
|
|
|
|
WriteLiteral(" style=\"width: 170px;\"");
|
|
|
|
WriteLiteral(">\r\n Id:\r\n </th>\r\n <td>\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 </td>\r\n </tr>\r\n <tr>\r\n <th>\r\n " +
|
|
" Name:\r\n </th>\r\n <td>\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(" <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
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 </script>\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(" </td>\r\n </tr>\r\n <tr>\r\n <th>\r\n " +
|
|
" Short Name:\r\n </th>\r\n <td>\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(" <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
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 </script>\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(" </td>\r\n </tr>\r\n <tr>\r\n <th>\r\n " +
|
|
" Description:\r\n </th>\r\n <td>\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(" <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
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 </script>\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(" </td>\r\n </tr>\r\n <tr>\r\n <th>Members</th>\r\n " +
|
|
" <td>\r\n <div><strong>");
|
|
|
|
|
|
#line 119 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(Model.DeviceCount.ToString("n0"));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</strong> ");
|
|
|
|
|
|
#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.</div>\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(" <div");
|
|
|
|
WriteLiteral(" class=\"smallMessage\"");
|
|
|
|
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.</div>\r\n");
|
|
|
|
|
|
#line 123 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </td>\r\n </tr>\r\n <tr>\r\n <th>\r\n " +
|
|
" Distribution Type:\r\n </th>\r\n <td>\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(" <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
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 </script>\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(" <div");
|
|
|
|
WriteLiteral(" class=\"info-box\"");
|
|
|
|
WriteLiteral(">\r\n <p");
|
|
|
|
WriteLiteral(" class=\"fa-p\"");
|
|
|
|
WriteLiteral(">\r\n <i");
|
|
|
|
WriteLiteral(" class=\"fa fa-info-circle\"");
|
|
|
|
WriteLiteral(@"></i>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.
|
|
</p>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
Address:
|
|
</th>
|
|
<td>
|
|
");
|
|
|
|
|
|
#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(" <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
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 </script>\r\n");
|
|
|
|
|
|
#line 178 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
}
|
|
else
|
|
{
|
|
if (Model.DefaultOrganisationAddress == null)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <span");
|
|
|
|
WriteLiteral(" class=\"smallMessage\"");
|
|
|
|
WriteLiteral("><None Specified></span>\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(" <div");
|
|
|
|
WriteLiteral(" class=\"info-box\"");
|
|
|
|
WriteLiteral(">\r\n <p");
|
|
|
|
WriteLiteral(" class=\"fa-p\"");
|
|
|
|
WriteLiteral(">\r\n <i");
|
|
|
|
WriteLiteral(" class=\"fa fa-info-circle\"");
|
|
|
|
WriteLiteral("></i>The profile address is used to separate jobs for <a");
|
|
|
|
WriteAttribute("href", Tuple.Create(" href=\"", 8096), Tuple.Create("\"", 8147)
|
|
|
|
#line 192 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 8103), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.Config.Organisation.Index())
|
|
|
|
#line default
|
|
#line hidden
|
|
, 8103), false)
|
|
);
|
|
|
|
WriteLiteral(@">multi-site mode</a>.
|
|
It is also suggested as the default address for warranty/repair actions.
|
|
</p>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Policies</th>
|
|
<td>
|
|
<div>
|
|
");
|
|
|
|
|
|
#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(" <input");
|
|
|
|
WriteLiteral(" id=\"DeviceProfile_ProvisionADAccount\"");
|
|
|
|
WriteLiteral(" type=\"checkbox\"");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 204 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(Model.DeviceProfile.ProvisionADAccount ? new MvcHtmlString("checked=\"checked\" ") : new MvcHtmlString(string.Empty));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" />\r\n");
|
|
|
|
WriteLiteral(" <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
WriteLiteral(@">
|
|
$(function () {
|
|
document.DiscoFunctions.PropertyChangeHelper(
|
|
$('#DeviceProfile_ProvisionADAccount'),
|
|
null,
|
|
'");
|
|
|
|
|
|
#line 210 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(Url.Action(MVC.API.DeviceProfile.UpdateProvisionADAccount(Model.DeviceProfile.Id)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\',\r\n \'ProvisionADAccount\'\r\n " +
|
|
" );\r\n });\r\n </scri" +
|
|
"pt>\r\n");
|
|
|
|
|
|
#line 215 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <input");
|
|
|
|
WriteLiteral(" id=\"DeviceProfile_ProvisionADAccount\"");
|
|
|
|
WriteLiteral(" type=\"checkbox\"");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 218 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(Model.DeviceProfile.ProvisionADAccount ? new MvcHtmlString("checked=\"checked\" ") : new MvcHtmlString(string.Empty));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" disabled=\"disabled\" />\r\n");
|
|
|
|
|
|
#line 219 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <label");
|
|
|
|
WriteLiteral(" for=\"DeviceProfile_ProvisionADAccount\"");
|
|
|
|
WriteLiteral(">\r\n Provision Active Directory Account\r\n " +
|
|
" </label>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 223 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(AjaxHelpers.AjaxLoader());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n <div");
|
|
|
|
WriteLiteral(" class=\"info-box\"");
|
|
|
|
WriteLiteral(">\r\n <p");
|
|
|
|
WriteLiteral(" class=\"fa-p\"");
|
|
|
|
WriteLiteral(">\r\n <i");
|
|
|
|
WriteLiteral(" class=\"fa fa-info-circle\"");
|
|
|
|
WriteLiteral(@"></i>When enabled an Active Directory account will be provisioned for the device when enrolment occurs
|
|
and the device will be joined to the domain (refer to the <code>Computer Name Template Expression</code> and the
|
|
<code>Organisational Unit</code> configuration options below).
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div");
|
|
|
|
WriteLiteral(" style=\"margin-top: 8px;\"");
|
|
|
|
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(" <input");
|
|
|
|
WriteLiteral(" id=\"DeviceProfile_AssignedUserLocalAdmin\"");
|
|
|
|
WriteLiteral(" type=\"checkbox\"");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 235 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(Model.DeviceProfile.AssignedUserLocalAdmin ? new MvcHtmlString("checked=\"checked\" ") : new MvcHtmlString(string.Empty));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" />\r\n");
|
|
|
|
WriteLiteral(" <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
WriteLiteral(@">
|
|
$(function () {
|
|
document.DiscoFunctions.PropertyChangeHelper(
|
|
$('#DeviceProfile_AssignedUserLocalAdmin'),
|
|
null,
|
|
'");
|
|
|
|
|
|
#line 241 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(Url.Action(MVC.API.DeviceProfile.UpdateAssignedUserLocalAdmin(Model.DeviceProfile.Id)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\',\r\n \'AssignedUserLocalAdmin\'\r\n " +
|
|
" );\r\n });\r\n </" +
|
|
"script>\r\n");
|
|
|
|
|
|
#line 246 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <input");
|
|
|
|
WriteLiteral(" id=\"DeviceProfile_AssignedUserLocalAdmin\"");
|
|
|
|
WriteLiteral(" type=\"checkbox\"");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 249 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(Model.DeviceProfile.AssignedUserLocalAdmin ? new MvcHtmlString("checked=\"checked\" ") : new MvcHtmlString(string.Empty));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" disabled=\"disabled\" />\r\n");
|
|
|
|
|
|
#line 250 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <label");
|
|
|
|
WriteLiteral(" for=\"DeviceProfile_AssignedUserLocalAdmin\"");
|
|
|
|
WriteLiteral(">\r\n Assigned User is Local Administrator\r\n " +
|
|
" </label>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 254 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(AjaxHelpers.AjaxLoader());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n <div");
|
|
|
|
WriteLiteral(" class=\"info-box\"");
|
|
|
|
WriteLiteral(">\r\n <p");
|
|
|
|
WriteLiteral(" class=\"fa-p\"");
|
|
|
|
WriteLiteral(">\r\n <i");
|
|
|
|
WriteLiteral(" class=\"fa fa-info-circle\"");
|
|
|
|
WriteLiteral("></i>When enabled the user assigned to the device will be added to the <code>Loca" +
|
|
"l Administrators</code> group during device enrolment.\r\n " +
|
|
" </p>\r\n </div>\r\n </div>\r\n <" +
|
|
"div");
|
|
|
|
WriteLiteral(" style=\"margin-top: 8px;\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
|
|
#line 262 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 262 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
if (canConfig)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <input");
|
|
|
|
WriteLiteral(" id=\"DeviceProfile_AllowUntrustedReimageJobEnrolment\"");
|
|
|
|
WriteLiteral(" type=\"checkbox\"");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 264 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(Model.DeviceProfile.AllowUntrustedReimageJobEnrolment ? new MvcHtmlString("checked=\"checked\" ") : null);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" />\r\n");
|
|
|
|
WriteLiteral(" <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
WriteLiteral(@">
|
|
$(function () {
|
|
document.DiscoFunctions.PropertyChangeHelper(
|
|
$('#DeviceProfile_AllowUntrustedReimageJobEnrolment'),
|
|
null,
|
|
'");
|
|
|
|
|
|
#line 270 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(Url.Action(MVC.API.DeviceProfile.UpdateAllowUntrustedReimageJobEnrolment(Model.DeviceProfile.Id)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\',\r\n \'AllowUntrustedReimageJobEnrolment\'\r\n " +
|
|
" );\r\n });\r\n " +
|
|
" </script>\r\n");
|
|
|
|
|
|
#line 275 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <input");
|
|
|
|
WriteLiteral(" id=\"DeviceProfile_AllowUntrustedReimageJobEnrolment\"");
|
|
|
|
WriteLiteral(" type=\"checkbox\"");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 278 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(Model.DeviceProfile.AllowUntrustedReimageJobEnrolment ? new MvcHtmlString("checked=\"checked\" ") : new MvcHtmlString(string.Empty));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" disabled=\"disabled\" />\r\n");
|
|
|
|
|
|
#line 279 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <label");
|
|
|
|
WriteLiteral(" for=\"DeviceProfile_AllowUntrustedReimageJobEnrolment\"");
|
|
|
|
WriteLiteral(">\r\n Allow Untrusted Enrolment Where a <span");
|
|
|
|
WriteLiteral(" class=\"code\"");
|
|
|
|
WriteLiteral(">\'Software - Reimage\'</span> Job is Open\r\n </label>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 283 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(AjaxHelpers.AjaxLoader());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n <div");
|
|
|
|
WriteLiteral(" class=\"info-box\"");
|
|
|
|
WriteLiteral(">\r\n <p");
|
|
|
|
WriteLiteral(" class=\"fa-p\"");
|
|
|
|
WriteLiteral(">\r\n <i");
|
|
|
|
WriteLiteral(" class=\"fa fa-info-circle\"");
|
|
|
|
WriteLiteral(@"></i>When enabled an untrusted device enrolment will be allowed if a <code>Software - Reimage</code> job is open for the device.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
Computer Name<br />
|
|
Template Expression:
|
|
</th>
|
|
<td>
|
|
");
|
|
|
|
|
|
#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(" <a");
|
|
|
|
WriteLiteral(" id=\"expressionBrowserAnchor\"");
|
|
|
|
WriteAttribute("href", Tuple.Create(" href=\"", 14671), Tuple.Create("\"", 14740)
|
|
|
|
#line 303 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 14678), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.Config.DocumentTemplate.ExpressionBrowser())
|
|
|
|
#line default
|
|
#line hidden
|
|
, 14678), false)
|
|
);
|
|
|
|
WriteLiteral("> </a>\r\n");
|
|
|
|
WriteLiteral(" <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
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');
|
|
});
|
|
</script>
|
|
");
|
|
|
|
|
|
#line 325 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" id=\"displayComputerNameTemplate\"");
|
|
|
|
WriteLiteral(" class=\"code\"");
|
|
|
|
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(" <span");
|
|
|
|
WriteLiteral(" class=\"smallMessage\"");
|
|
|
|
WriteLiteral("><None Specified></span>\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(" </div>\r\n");
|
|
|
|
|
|
#line 338 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" style=\"margin-top: 8px;\"");
|
|
|
|
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(" <input");
|
|
|
|
WriteLiteral(" id=\"DeviceProfile_EnforceComputerNameConvention\"");
|
|
|
|
WriteLiteral(" type=\"checkbox\"");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 342 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(Model.DeviceProfile.EnforceComputerNameConvention ? new MvcHtmlString("checked=\"checked\" ") : new MvcHtmlString(string.Empty));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" />\r\n");
|
|
|
|
WriteLiteral(" <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
WriteLiteral(@">
|
|
$(function () {
|
|
document.DiscoFunctions.PropertyChangeHelper(
|
|
$('#DeviceProfile_EnforceComputerNameConvention'),
|
|
null,
|
|
'");
|
|
|
|
|
|
#line 348 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(Url.Action(MVC.API.DeviceProfile.UpdateEnforceComputerNameConvention(Model.DeviceProfile.Id)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\',\r\n \'EnforceComputerNameConvention\'\r\n " +
|
|
" );\r\n });\r\n " +
|
|
" </script>\r\n");
|
|
|
|
|
|
#line 353 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <input");
|
|
|
|
WriteLiteral(" id=\"DeviceProfile_EnforceComputerNameConvention\"");
|
|
|
|
WriteLiteral(" type=\"checkbox\"");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 356 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(Model.DeviceProfile.EnforceComputerNameConvention ? new MvcHtmlString("checked=\"checked\" ") : new MvcHtmlString(string.Empty));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" disabled=\"disabled\" />\r\n");
|
|
|
|
|
|
#line 357 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <label");
|
|
|
|
WriteLiteral(" for=\"DeviceProfile_EnforceComputerNameConvention\"");
|
|
|
|
WriteLiteral(">\r\n Enforce Naming Convention\r\n </label" +
|
|
">\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 361 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(AjaxHelpers.AjaxLoader());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </div>\r\n <div");
|
|
|
|
WriteLiteral(" class=\"info-box\"");
|
|
|
|
WriteLiteral(">\r\n <p");
|
|
|
|
WriteLiteral(" class=\"fa-p\"");
|
|
|
|
WriteLiteral(">\r\n <i");
|
|
|
|
WriteLiteral(" class=\"fa fa-info-circle\"");
|
|
|
|
WriteLiteral(@"></i>Computer names are only changed when Active Directory accounts are provisioned.
|
|
If the device has already joined the domain when enrolment occurs the name will remain the same unless Enforce Naming Convention is enabled.
|
|
</p>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
Organisational Unit:
|
|
</th>
|
|
<td>
|
|
");
|
|
|
|
|
|
#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(" <div");
|
|
|
|
WriteLiteral(" id=\"DeviceProfile_OrganisationalUnit\"");
|
|
|
|
WriteLiteral(" class=\"code\"");
|
|
|
|
WriteLiteral(" data-value=\"");
|
|
|
|
|
|
#line 378 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(Model.DeviceProfile.OrganisationalUnit);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\"");
|
|
|
|
WriteLiteral(">\r\n <span>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 380 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(Model.FriendlyOrganisationalUnitName);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </span>\r\n </div>\r\n");
|
|
|
|
WriteLiteral(" <a");
|
|
|
|
WriteLiteral(" id=\"changeOrganisationalUnit\"");
|
|
|
|
WriteLiteral(" href=\"#\"");
|
|
|
|
WriteLiteral(" class=\"button small\"");
|
|
|
|
WriteLiteral(">Change</a>");
|
|
|
|
|
|
#line 383 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 383 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(AjaxHelpers.AjaxLoader());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 383 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" id=\"dialogOrganisationalUnit\"");
|
|
|
|
WriteLiteral(" title=\"Organisational Unit\"");
|
|
|
|
WriteLiteral(" class=\"dialog\"");
|
|
|
|
WriteLiteral(">\r\n <div");
|
|
|
|
WriteLiteral(" id=\"dialogOrganisationalUnit_Loading\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 386 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(AjaxHelpers.AjaxLoader());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" Loading Organisational Units\r\n </div>\r\n " +
|
|
" <div");
|
|
|
|
WriteLiteral(" id=\"treeOrganisationalUnit\"");
|
|
|
|
WriteLiteral(" class=\"organisationalUnitTree\"");
|
|
|
|
WriteLiteral(">\r\n </div>\r\n </div>\r\n");
|
|
|
|
WriteLiteral(" <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
WriteLiteral(">\r\n $(function () {\r\n var ouSet" +
|
|
"Url = \'");
|
|
|
|
|
|
#line 393 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(Url.Action(MVC.API.DeviceProfile.UpdateOrganisationalUnit(Model.DeviceProfile.Id, null, true)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\';\r\n var ouValue = $(\'#DeviceProfile_OrganisationalUni" +
|
|
"t\').attr(\'data-value\');\r\n var $ouTree = null;\r\n " +
|
|
" var ouTree = null;\r\n var $dialo" +
|
|
"g = null;\r\n var ouSet = function (ou) {\r\n " +
|
|
" var url = ouSetUrl + \'&\' + $.param({ OrganisationalUnit: ou " +
|
|
"})\r\n window.location.href = url;\r\n " +
|
|
" }\r\n var expandNodeTree = function (node)" +
|
|
" {\r\n var parent = node.parent;\r\n " +
|
|
" if (parent) {\r\n expandNodeTree" +
|
|
"(parent);\r\n parent.setExpanded(true, { noAnim" +
|
|
"ation: true, noEvents: false });\r\n }\r\n " +
|
|
" }\r\n var expandAndFocusNode = functio" +
|
|
"n (nodeKey) {\r\n if (ouTree) {\r\n " +
|
|
" var ouNode = ouTree.getNodeByKey(ouValue);\r\n " +
|
|
" if (ouNode) {\r\n expandN" +
|
|
"odeTree(ouNode);\r\n ouNode.setFocus(true);" +
|
|
"\r\n ouNode.setActive(true);\r\n\r\n " +
|
|
" var li = ouNode.li;\r\n " +
|
|
" var liOffset = li.offsetParent;\r\n " +
|
|
" if (li.offsetTop + li.offsetHeight > liOffset.offsetHeight)\r\n " +
|
|
" $(liOffset).animate({ \'scrollTop\': li.offsetTop - li" +
|
|
"Offset.offsetHeight + li.offsetHeight + 4 }, \'fast\');\r\n " +
|
|
" }\r\n }\r\n }\r\n" +
|
|
" var ouChange = function () {\r\n " +
|
|
" if (!$dialog) {\r\n\r\n $dialog = $(\'#d" +
|
|
"ialogOrganisationalUnit\').dialog({\r\n auto" +
|
|
"Open: false,\r\n buttons: null,\r\n " +
|
|
" draggable: false,\r\n " +
|
|
" modal: true,\r\n resizable: false," +
|
|
"\r\n width: 500,\r\n " +
|
|
" height: 500\r\n });\r\n " +
|
|
" $loading = $(\'#dialogOrganisationalUnit_Loading\');\r\n " +
|
|
" $loading.find(\'i.ajaxLoading\').show();\r\n\r\n " +
|
|
" $ouTree = $(\'#treeOrganisationalUnit\');\r\n " +
|
|
" $dialog.css(\'overflow\', \'visible\');\r\n " +
|
|
" $ouTree.css(\'height\', \'100%\');\r\n\r\n " +
|
|
" $.getJSON(\'");
|
|
|
|
|
|
#line 443 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(Url.Action(MVC.API.System.DomainOrganisationalUnits()));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\', null, function (data) {\r\n $loading.hide" +
|
|
"();\r\n\r\n // Make \'Domains\' unselectable\r\n " +
|
|
" $.each(data, function (i, node) {\r\n " +
|
|
" node.unselectable = true;\r\n " +
|
|
" });\r\n\r\n ouTree =" +
|
|
" $ouTree.fancytree({\r\n source: data,\r" +
|
|
"\n checkbox: false,\r\n " +
|
|
" selectMode: 1,\r\n " +
|
|
" keyboard: false,\r\n fx: null\r\n " +
|
|
" }).fancytree(\'getTree\');\r\n\r\n " +
|
|
" ouTree.$container.css(\'position\', \'relative\');\r\n\r\n " +
|
|
" // Set Buttons\r\n " +
|
|
" $dialog.dialog(\'option\', \'buttons\', {\r\n " +
|
|
" \'Use Default Container\': function () {\r\n " +
|
|
" var $this = $(this);\r\n " +
|
|
" $this.css(\'overflow\', \'hidden\');\r\n " +
|
|
" $this.dialog(\"disable\");\r\n " +
|
|
" $this.dialog(\"option\", \"buttons\", null);\r\n " +
|
|
" ouSet(\'\');\r\n },\r\n" +
|
|
" \'Save\': function () {\r\n " +
|
|
" var node = ouTree.getActiveNode();\r\n " +
|
|
" if (node && node.key.substr(0, 3).toLower" +
|
|
"Case() == \'ou=\') {\r\n var $thi" +
|
|
"s = $(this);\r\n $this.css(\'ove" +
|
|
"rflow\', \'hidden\');\r\n $this.di" +
|
|
"alog(\"disable\");\r\n $this.dial" +
|
|
"og(\"option\", \"buttons\", null);\r\n " +
|
|
" ouSet(node.key);\r\n } else {\r\n" +
|
|
" alert(\'Select an Organisatio" +
|
|
"nal Unit to Save\')\r\n }\r\n " +
|
|
" }\r\n })" +
|
|
";\r\n\r\n // Expand\r\n " +
|
|
" expandAndFocusNode(ouValue);\r\n\r\n " +
|
|
" ouTree.options.fx = { height: \"toggle\", duration: 200 };\r\n " +
|
|
" });\r\n }\r\n " +
|
|
" $dialog.dialog(\'open\');\r\n\r\n if (ouT" +
|
|
"ree) {\r\n // Expand\r\n " +
|
|
" expandAndFocusNode(ouValue);\r\n }\r\n\r\n " +
|
|
" return false;\r\n };\r\n\r\n " +
|
|
" $(\'#changeOrganisationalUnit\').click(ouChange);\r\n " +
|
|
" });\r\n </script>\r\n");
|
|
|
|
|
|
#line 503 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" id=\"displayOrganisationalUnit\"");
|
|
|
|
WriteLiteral(" class=\"code\"");
|
|
|
|
WriteLiteral(">\r\n <span>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 508 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(Model.FriendlyOrganisationalUnitName);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </span>\r\n </div>\r\n");
|
|
|
|
|
|
#line 511 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" style=\"margin-top: 8px;\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
|
|
#line 513 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 513 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
if (canConfig)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <input");
|
|
|
|
WriteLiteral(" id=\"DeviceProfile_EnforceOrganisationalUnit\"");
|
|
|
|
WriteLiteral(" type=\"checkbox\"");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 515 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(Model.DeviceProfile.EnforceOrganisationalUnit ? new MvcHtmlString("checked=\"checked\" ") : new MvcHtmlString(string.Empty));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" />\r\n");
|
|
|
|
WriteLiteral(" <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
WriteLiteral(@">
|
|
$(function () {
|
|
document.DiscoFunctions.PropertyChangeHelper(
|
|
$('#DeviceProfile_EnforceOrganisationalUnit'),
|
|
null,
|
|
'");
|
|
|
|
|
|
#line 521 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(Url.Action(MVC.API.DeviceProfile.UpdateEnforceOrganisationalUnit(Model.DeviceProfile.Id)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\',\r\n \'EnforceOrganisationalUnit\'\r\n " +
|
|
" );\r\n });\r\n " +
|
|
" </script>\r\n");
|
|
|
|
|
|
#line 526 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <input");
|
|
|
|
WriteLiteral(" id=\"DeviceProfile_EnforceOrganisationalUnit\"");
|
|
|
|
WriteLiteral(" type=\"checkbox\"");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 529 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(Model.DeviceProfile.EnforceOrganisationalUnit ? new MvcHtmlString("checked=\"checked\" ") : new MvcHtmlString(string.Empty));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" disabled=\"disabled\" />\r\n");
|
|
|
|
|
|
#line 530 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <label");
|
|
|
|
WriteLiteral(" for=\"DeviceProfile_EnforceOrganisationalUnit\"");
|
|
|
|
WriteLiteral(">\r\n Enforce Organisational Unit\r\n </lab" +
|
|
"el>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 534 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(AjaxHelpers.AjaxLoader());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </div>\r\n <div");
|
|
|
|
WriteLiteral(" class=\"info-box\"");
|
|
|
|
WriteLiteral(">\r\n <p");
|
|
|
|
WriteLiteral(" class=\"fa-p\"");
|
|
|
|
WriteLiteral(">\r\n <i");
|
|
|
|
WriteLiteral(" class=\"fa fa-info-circle\"");
|
|
|
|
WriteLiteral(@"></i>When an Active Directory account is provisioned it will be placed in this container. This typically occurs
|
|
at device enrolment. If the device has already joined the domain and the <code>Enforce Organisational Unit</code> option is enabled
|
|
the Active Directory account will be moved into this organisational unit during enrolment.
|
|
</p>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
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(" <br />\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(" <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
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');
|
|
}
|
|
})
|
|
})
|
|
});
|
|
</script>
|
|
");
|
|
|
|
|
|
#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(" <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
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');
|
|
}
|
|
})
|
|
})
|
|
});
|
|
</script>
|
|
");
|
|
|
|
|
|
#line 600 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </th>\r\n <td>\r\n <h4>Device/Machine Certifica" +
|
|
"tes</h4>\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(" <span");
|
|
|
|
WriteLiteral(" class=\"smallMessage\"");
|
|
|
|
WriteLiteral("><None Allocated></span>\r\n");
|
|
|
|
|
|
#line 615 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <ul>\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(" <li>");
|
|
|
|
|
|
#line 621 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(certificateProvider.Name);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</li>\r\n");
|
|
|
|
|
|
#line 622 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </ul>\r\n");
|
|
|
|
|
|
#line 624 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
}
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <h4");
|
|
|
|
WriteLiteral(" style=\"margin-top: 4px;\"");
|
|
|
|
WriteLiteral(">Authority Certificates</h4>\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(" <span");
|
|
|
|
WriteLiteral(" class=\"smallMessage\"");
|
|
|
|
WriteLiteral("><None Allocated></span>\r\n");
|
|
|
|
|
|
#line 638 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <ul>\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(" <li>");
|
|
|
|
|
|
#line 644 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(certificateProvider.Name);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</li>\r\n");
|
|
|
|
|
|
#line 645 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </ul>\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(" <div");
|
|
|
|
WriteLiteral(" class=\"info-box\"");
|
|
|
|
WriteLiteral(">\r\n <p");
|
|
|
|
WriteLiteral(" class=\"fa-p\"");
|
|
|
|
WriteLiteral(">\r\n <i");
|
|
|
|
WriteLiteral(" class=\"fa fa-info-circle\"");
|
|
|
|
WriteLiteral("></i>View the <a");
|
|
|
|
WriteAttribute("href", Tuple.Create(" href=\"", 34318), Tuple.Create("\"", 34368)
|
|
|
|
#line 653 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 34325), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.Config.Plugins.Install())
|
|
|
|
#line default
|
|
#line hidden
|
|
, 34325), false)
|
|
);
|
|
|
|
WriteLiteral(">Plugin Catalogue</a> to discover and install certificate provider plugins.\r\n " +
|
|
" </p>\r\n </div>\r\n");
|
|
|
|
|
|
#line 656 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </td>\r\n </tr>\r\n <tr>\r\n <th>\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(" <br />\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(" <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
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');
|
|
}
|
|
})
|
|
})
|
|
});
|
|
</script>
|
|
");
|
|
|
|
|
|
#line 687 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </th>\r\n <td>\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(" <span");
|
|
|
|
WriteLiteral(" class=\"smallMessage\"");
|
|
|
|
WriteLiteral("><None Allocated></span>\r\n");
|
|
|
|
|
|
#line 701 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <ul>\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(" <li>");
|
|
|
|
|
|
#line 707 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(wirelessProfileProvider.Name);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</li>\r\n");
|
|
|
|
|
|
#line 708 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </ul>\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(" <div");
|
|
|
|
WriteLiteral(" class=\"info-box\"");
|
|
|
|
WriteLiteral(">\r\n <p");
|
|
|
|
WriteLiteral(" class=\"fa-p\"");
|
|
|
|
WriteLiteral(">\r\n <i");
|
|
|
|
WriteLiteral(" class=\"fa fa-info-circle\"");
|
|
|
|
WriteLiteral("></i>View the <a");
|
|
|
|
WriteAttribute("href", Tuple.Create(" href=\"", 37572), Tuple.Create("\"", 37622)
|
|
|
|
#line 716 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 37579), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.Config.Plugins.Install())
|
|
|
|
#line default
|
|
#line hidden
|
|
, 37579), false)
|
|
);
|
|
|
|
WriteLiteral(">Plugin Catalogue</a> to discover and install wireless profile provider plugins.\r" +
|
|
"\n </p>\r\n </div>\r\n");
|
|
|
|
|
|
#line 719 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </td>\r\n </tr>\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(" <tr>\r\n <td");
|
|
|
|
WriteLiteral(" colspan=\"2\"");
|
|
|
|
WriteLiteral(" style=\"text-align: right;\"");
|
|
|
|
WriteLiteral(">\r\n <button");
|
|
|
|
WriteLiteral(" id=\"Config_HideAdvanced_Show\"");
|
|
|
|
WriteLiteral(" class=\"button small\"");
|
|
|
|
WriteLiteral(@">Show Advanced Options</button>
|
|
<script>
|
|
$(function () {
|
|
$('#Config_HideAdvanced_Show').click(function () {
|
|
var $this = $(this);
|
|
$this.closest('.Config_HideAdvanced').removeClass('Config_HideAdvanced');
|
|
$this.closest('tr').remove();
|
|
});
|
|
});
|
|
</script>
|
|
</td>
|
|
</tr>
|
|
");
|
|
|
|
|
|
#line 738 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <tr");
|
|
|
|
WriteLiteral(" class=\"Config_HideAdvanced_Item\"");
|
|
|
|
WriteLiteral(">\r\n <th>\r\n Linked Groups:\r\n </th>\r\n " +
|
|
" <td>\r\n <div>\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(" </div>\r\n </td>\r\n </tr>\r\n </table>\r\n</div>\r\n");
|
|
|
|
|
|
#line 770 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
if (canDelete)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" id=\"dialogConfirmDelete\"");
|
|
|
|
WriteLiteral(" title=\"Delete this Device Profile?\"");
|
|
|
|
WriteLiteral(">\r\n <p>\r\n <i");
|
|
|
|
WriteLiteral(" class=\"fa fa-exclamation-triangle fa-lg warning\"");
|
|
|
|
WriteLiteral("></i>\r\n This item will be permanently deleted and cannot be recovered." +
|
|
" Are you sure?\r\n </p>\r\n </div>\r\n");
|
|
|
|
WriteLiteral(" <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
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"");
|
|
}
|
|
}
|
|
});
|
|
|
|
});
|
|
</script>
|
|
");
|
|
|
|
|
|
#line 806 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 807 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(Html.Partial(MVC.Config.Shared.Views._DeviceGroupDocumentBulkGenerate, Model));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(";\r\n<div");
|
|
|
|
WriteLiteral(" class=\"actionBar\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
|
|
#line 809 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 809 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
if (canDelete)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 811 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
Write(Html.ActionLinkButton("Delete", MVC.API.DeviceProfile.Delete(Model.DeviceProfile.Id, true), "buttonDelete"));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 811 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 813 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
if (Authorization.Has(Claims.Device.Actions.Export))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 815 "..\..\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 815 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 817 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
if (Authorization.Has(Claims.Device.Search) && Model.DeviceCount > 0)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 819 "..\..\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 819 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
|
|
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</div>\r\n");
|
|
|
|
}
|
|
}
|
|
}
|
|
#pragma warning restore 1591
|