492 lines
16 KiB
C#
492 lines
16 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.Shared
|
|
{
|
|
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\Shared\LinkedGroupInstance.cshtml"
|
|
using Disco.Services.Interop.ActiveDirectory;
|
|
|
|
#line default
|
|
#line hidden
|
|
using Disco.Services.Web;
|
|
using Disco.Web;
|
|
using Disco.Web.Extensions;
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
|
|
[System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Config/Views/Shared/LinkedGroupInstance.cshtml")]
|
|
public partial class LinkedGroupInstance : Disco.Services.Web.WebViewPage<Disco.Web.Areas.Config.Models.Shared.LinkedGroupModel>
|
|
{
|
|
public LinkedGroupInstance()
|
|
{
|
|
}
|
|
public override void Execute()
|
|
{
|
|
WriteLiteral("<h5>");
|
|
|
|
|
|
#line 3 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
|
Write(Model.CategoryDescription);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</h5>\r\n<div");
|
|
|
|
WriteLiteral(" class=\"Config_LinkedGroup_Instance\"");
|
|
|
|
WriteLiteral(">\r\n <div");
|
|
|
|
WriteLiteral(" class=\"info-box\"");
|
|
|
|
WriteLiteral(">\r\n <p");
|
|
|
|
WriteLiteral(" class=\"fa-p\"");
|
|
|
|
WriteLiteral(">\r\n <i");
|
|
|
|
WriteLiteral(" class=\"fa fa-fw fa-info-circle\"");
|
|
|
|
WriteLiteral("></i>");
|
|
|
|
|
|
#line 7 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
|
Write(Model.Description);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </p>\r\n </div>\r\n");
|
|
|
|
|
|
#line 10 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 10 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
|
|
|
ADGroup group = null;
|
|
if (Model.ManagedGroup != null)
|
|
{
|
|
group = Model.ManagedGroup.GetGroup();
|
|
}
|
|
if (Model.CanConfigure)
|
|
{
|
|
if (Model.ManagedGroup != null)
|
|
{
|
|
if (group != null)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"code\"");
|
|
|
|
WriteAttribute("title", Tuple.Create(" title=\"", 693), Tuple.Create("\"", 710)
|
|
|
|
#line 22 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 701), Tuple.Create<System.Object, System.Int32>(group.Id
|
|
|
|
#line default
|
|
#line hidden
|
|
, 701), false)
|
|
);
|
|
|
|
WriteLiteral(">\r\n <i");
|
|
|
|
WriteLiteral(" class=\"fa fa-fw fa-lg fa-link success\"");
|
|
|
|
WriteLiteral("></i>");
|
|
|
|
|
|
#line 23 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
|
Write(group.Domain.FriendlyDistinguishedNamePath(group.DistinguishedName));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </div>\r\n");
|
|
|
|
WriteLiteral(" <button");
|
|
|
|
WriteLiteral(" type=\"button\"");
|
|
|
|
WriteLiteral(" class=\"button small Config_LinkedGroup_LinkButton\"");
|
|
|
|
WriteLiteral(" data-linkedgroupid=\"");
|
|
|
|
|
|
#line 25 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
|
Write(Model.ManagedGroup.Configuration.GroupId);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\"");
|
|
|
|
WriteLiteral(" data-linkedgroupfilterdateoption=\"");
|
|
|
|
|
|
#line 25 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
|
Write(Model.ManagedGroup.IncludeFilterBeginDate);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\"");
|
|
|
|
WriteLiteral(" data-linkedgroupfilterdate=\"");
|
|
|
|
|
|
#line 25 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
|
Write(Model.ManagedGroup.Configuration.FilterBeginDate);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\"");
|
|
|
|
WriteLiteral(" data-linkedroupdescription=\"");
|
|
|
|
|
|
#line 25 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
|
Write(Model.CategoryDescription);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\"");
|
|
|
|
WriteLiteral(" data-linkedroupupdateurl=\"");
|
|
|
|
|
|
#line 25 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
|
Write(Model.UpdateUrl);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\"");
|
|
|
|
WriteLiteral(">Change Link</button>\r\n");
|
|
|
|
|
|
#line 26 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
|
using (Html.BeginForm(MVC.API.System.SyncActiveDirectoryManagedGroup(Model.ManagedGroup.Key, Context.Request.Path)))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 28 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
|
Write(Html.AntiForgeryToken());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 28 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
|
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <button");
|
|
|
|
WriteLiteral(" type=\"submit\"");
|
|
|
|
WriteLiteral(" class=\"button small\"");
|
|
|
|
WriteLiteral(">Synchronize Now</button>\r\n");
|
|
|
|
|
|
#line 30 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
|
}
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"code error\"");
|
|
|
|
WriteLiteral(">\r\n <i");
|
|
|
|
WriteLiteral(" class=\"fa fa-fw fa-lg fa-unlink error\"");
|
|
|
|
WriteLiteral("></i>Group Not Found: <strong");
|
|
|
|
WriteLiteral(" class=\"code\"");
|
|
|
|
WriteLiteral(">");
|
|
|
|
|
|
#line 35 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
|
Write(Model.ManagedGroup.Configuration.GroupId);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</strong>\r\n </div>\r\n");
|
|
|
|
WriteLiteral(" <button");
|
|
|
|
WriteLiteral(" type=\"button\"");
|
|
|
|
WriteLiteral(" class=\"button small Config_LinkedGroup_LinkButton\"");
|
|
|
|
WriteLiteral(" data-linkedgroupid=\"");
|
|
|
|
|
|
#line 37 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
|
Write(Model.ManagedGroup.Configuration.GroupId);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\"");
|
|
|
|
WriteLiteral(" data-linkedgroupfilterdateoption=\"");
|
|
|
|
|
|
#line 37 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
|
Write(Model.ManagedGroup.IncludeFilterBeginDate);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\"");
|
|
|
|
WriteLiteral(" data-linkedgroupfilterdate=\"");
|
|
|
|
|
|
#line 37 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
|
Write(Model.ManagedGroup.Configuration.FilterBeginDate);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\"");
|
|
|
|
WriteLiteral(" data-linkedroupdescription=\"");
|
|
|
|
|
|
#line 37 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
|
Write(Model.CategoryDescription);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\"");
|
|
|
|
WriteLiteral(" data-linkedroupupdateurl=\"");
|
|
|
|
|
|
#line 37 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
|
Write(Model.UpdateUrl);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\"");
|
|
|
|
WriteLiteral(">Change Link</button>\r\n");
|
|
|
|
|
|
#line 38 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
|
}
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <button");
|
|
|
|
WriteLiteral(" type=\"button\"");
|
|
|
|
WriteLiteral(" class=\"button small Config_LinkedGroup_LinkButton\"");
|
|
|
|
WriteLiteral(" data-linkedgroupid=\"\"");
|
|
|
|
WriteLiteral(" data-linkedgroupfilterdateoption=\"");
|
|
|
|
|
|
#line 42 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
|
Write(Model.IncludeFilterBeginDate);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\"");
|
|
|
|
WriteLiteral(" data-linkedroupdescription=\"");
|
|
|
|
|
|
#line 42 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
|
Write(Model.CategoryDescription);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\"");
|
|
|
|
WriteLiteral(" data-linkedroupupdateurl=\"");
|
|
|
|
|
|
#line 42 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
|
Write(Model.UpdateUrl);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\"");
|
|
|
|
WriteLiteral(">Link Group</button>\r\n");
|
|
|
|
|
|
#line 43 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if (Model.ManagedGroup != null)
|
|
{
|
|
if (group != null)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"code\"");
|
|
|
|
WriteAttribute("title", Tuple.Create(" title=\"", 2966), Tuple.Create("\"", 2983)
|
|
|
|
#line 51 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 2974), Tuple.Create<System.Object, System.Int32>(group.Id
|
|
|
|
#line default
|
|
#line hidden
|
|
, 2974), false)
|
|
);
|
|
|
|
WriteLiteral(">\r\n <i");
|
|
|
|
WriteLiteral(" class=\"fa fa-fw fa-lg fa-link success\"");
|
|
|
|
WriteLiteral("></i>");
|
|
|
|
|
|
#line 52 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
|
Write(group.Domain.FriendlyDistinguishedNamePath(group.DistinguishedName));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </div>\r\n");
|
|
|
|
|
|
#line 54 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"code error\"");
|
|
|
|
WriteLiteral(">\r\n <i");
|
|
|
|
WriteLiteral(" class=\"fa fa-fw fa-lg fa-unlink error\"");
|
|
|
|
WriteLiteral("></i>Group Not Found: <strong");
|
|
|
|
WriteLiteral(" class=\"code\"");
|
|
|
|
WriteLiteral(">");
|
|
|
|
|
|
#line 58 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
|
Write(Model.ManagedGroup.Configuration.GroupId);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</strong>\r\n </div>\r\n");
|
|
|
|
|
|
#line 60 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
|
}
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"smallMessage\"");
|
|
|
|
WriteLiteral("><i");
|
|
|
|
WriteLiteral(" class=\"fa fa-fw fa-lg fa-unlink information\"");
|
|
|
|
WriteLiteral("></i>No Group Linked</div>\r\n");
|
|
|
|
|
|
#line 65 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
|
|
}
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n</div>\r\n");
|
|
|
|
}
|
|
}
|
|
}
|
|
#pragma warning restore 1591
|