27c21175d7
Migrate much of BI to Services. Added Wireless Profile Provider plugin feature. Added Certificate Authority Provider plugin feature. Modified Certificate Provider plugin feature. Database migration v17, for Device Profiles. Enrolment Client Updated to support CA Certificates, Wireless Profiles and Hardware Info. New Client Enrolment Protocol to support new features. Plugin Manifest Generator added to main solution. Improved AD search performance.
1017 lines
30 KiB
C#
1017 lines
30 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.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;
|
|
using Disco.Services.Web;
|
|
using Disco.Web;
|
|
using Disco.Web.Extensions;
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
|
|
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/Shared/_Layout.cshtml")]
|
|
public partial class _Layout : Disco.Services.Web.WebViewPage<dynamic>
|
|
{
|
|
public _Layout()
|
|
{
|
|
}
|
|
public override void Execute()
|
|
{
|
|
|
|
#line 1 "..\..\Views\Shared\_Layout.cshtml"
|
|
|
|
Html.BundleDeferred("~/Style/Site");
|
|
Html.BundleDeferred("~/ClientScripts/Core");
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n<!doctype html>\r\n<html>\r\n<head>\r\n <title>Disco ICT - ");
|
|
|
|
|
|
#line 8 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(CommonHelpers.BreadcrumbsTitle(ViewBag.Title ?? string.Empty));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</title>\r\n <link");
|
|
|
|
WriteLiteral(" rel=\"shortcut icon\"");
|
|
|
|
WriteLiteral(" type=\"image/x-icon\"");
|
|
|
|
WriteLiteral(" href=\"/favicon.ico?v=20131224c\"");
|
|
|
|
WriteLiteral(" />\r\n <meta");
|
|
|
|
WriteLiteral(" name=\"application-name\"");
|
|
|
|
WriteLiteral(" content=\"Disco ICT\"");
|
|
|
|
WriteLiteral(" />\r\n <meta");
|
|
|
|
WriteLiteral(" name=\"msapplication-starturl\"");
|
|
|
|
WriteLiteral(" content=\"/\"");
|
|
|
|
WriteLiteral(" />\r\n <meta");
|
|
|
|
WriteLiteral(" name=\"msapplication-tooltip\"");
|
|
|
|
WriteLiteral(" content=\"Open Disco ICT\"");
|
|
|
|
WriteLiteral(" />\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 13 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(Html.BundleRenderDeferred());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 14 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(RenderSection("head", false));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n</head>\r\n<body");
|
|
|
|
WriteLiteral(" class=\"layout\"");
|
|
|
|
WriteLiteral(">\r\n <div");
|
|
|
|
WriteLiteral(" class=\"page\"");
|
|
|
|
WriteLiteral(">\r\n <header>\r\n <div");
|
|
|
|
WriteLiteral(" id=\"heading\"");
|
|
|
|
WriteLiteral(">\r\n <a");
|
|
|
|
WriteAttribute("href", Tuple.Create(" href=\"", 688), Tuple.Create("\"", 723)
|
|
|
|
#line 20 "..\..\Views\Shared\_Layout.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 695), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.Job.Index())
|
|
|
|
#line default
|
|
#line hidden
|
|
, 695), false)
|
|
);
|
|
|
|
WriteLiteral("><i");
|
|
|
|
WriteLiteral(" title=\"Disco ICT - Jobs\"");
|
|
|
|
WriteLiteral("></i></a>\r\n </div>\r\n <nav>\r\n <ul");
|
|
|
|
WriteLiteral(" id=\"menu\"");
|
|
|
|
WriteLiteral(">\r\n <li");
|
|
|
|
WriteAttribute("class", Tuple.Create(" class=\"", 857), Tuple.Create("\"", 947)
|
|
, Tuple.Create(Tuple.Create("", 865), Tuple.Create("d-sm", 865), true)
|
|
|
|
#line 24 "..\..\Views\Shared\_Layout.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 869), Tuple.Create<System.Object, System.Int32>((string)ViewContext.ViewData["MenuArea"] == MVC.Job.Name ? " active" : null
|
|
|
|
#line default
|
|
#line hidden
|
|
, 869), false)
|
|
);
|
|
|
|
WriteLiteral(">");
|
|
|
|
|
|
#line 24 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(Html.ActionLink("Jobs", MVC.Job.Index(), accesskey: "1"));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n <ul>\r\n");
|
|
|
|
|
|
#line 26 "..\..\Views\Shared\_Layout.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 26 "..\..\Views\Shared\_Layout.cshtml"
|
|
if (Authorization.Has(Claims.Job.Lists.JobQueueLists))
|
|
{
|
|
var queues = Disco.Services.Jobs.JobQueues.JobQueueService.GetQueues();
|
|
if (queues.Count > 0)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <li");
|
|
|
|
WriteLiteral(" class=\"d-sm\"");
|
|
|
|
WriteLiteral("><i");
|
|
|
|
WriteLiteral(" class=\"fa fa-caret-right\"");
|
|
|
|
WriteLiteral("></i><a>Queues</a>\r\n <ul>\r\n");
|
|
|
|
|
|
#line 33 "..\..\Views\Shared\_Layout.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 33 "..\..\Views\Shared\_Layout.cshtml"
|
|
foreach (var queueToken in queues.OrderBy(q => q.JobQueue.Name))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <li><a");
|
|
|
|
WriteAttribute("href", Tuple.Create(" href=\"", 1688), Tuple.Create("\"", 1745)
|
|
|
|
#line 35 "..\..\Views\Shared\_Layout.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 1695), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.Job.Queue(queueToken.JobQueue.Id))
|
|
|
|
#line default
|
|
#line hidden
|
|
, 1695), false)
|
|
);
|
|
|
|
WriteLiteral("><i");
|
|
|
|
WriteAttribute("class", Tuple.Create(" class=\"", 1749), Tuple.Create("\"", 1832)
|
|
, Tuple.Create(Tuple.Create("", 1757), Tuple.Create("fa", 1757), true)
|
|
, Tuple.Create(Tuple.Create(" ", 1759), Tuple.Create("fa-", 1760), true)
|
|
|
|
#line 35 "..\..\Views\Shared\_Layout.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 1763), Tuple.Create<System.Object, System.Int32>(queueToken.JobQueue.Icon
|
|
|
|
#line default
|
|
#line hidden
|
|
, 1763), false)
|
|
, Tuple.Create(Tuple.Create(" ", 1790), Tuple.Create("fa-fw", 1791), true)
|
|
, Tuple.Create(Tuple.Create(" ", 1796), Tuple.Create("d-", 1797), true)
|
|
|
|
#line 35 "..\..\Views\Shared\_Layout.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 1799), Tuple.Create<System.Object, System.Int32>(queueToken.JobQueue.IconColour
|
|
|
|
#line default
|
|
#line hidden
|
|
, 1799), false)
|
|
);
|
|
|
|
WriteLiteral("></i>");
|
|
|
|
|
|
#line 35 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(queueToken.JobQueue.Name);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</a></li>\r\n");
|
|
|
|
|
|
#line 36 "..\..\Views\Shared\_Layout.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </ul>\r\n </li>\r" +
|
|
"\n");
|
|
|
|
|
|
#line 39 "..\..\Views\Shared\_Layout.cshtml"
|
|
}
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 41 "..\..\Views\Shared\_Layout.cshtml"
|
|
if (Authorization.Has(Claims.Job.Lists.AwaitingTechnicianAction))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <li>");
|
|
|
|
|
|
#line 43 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(Html.ActionLink("Awaiting Technician Action", MVC.Job.AwaitingTechnicianAction()));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</li>\r\n");
|
|
|
|
|
|
#line 44 "..\..\Views\Shared\_Layout.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 45 "..\..\Views\Shared\_Layout.cshtml"
|
|
if (Authorization.Has(Claims.Job.Lists.LongRunningJobs))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <li>");
|
|
|
|
|
|
#line 47 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(Html.ActionLink("Long Running Jobs", MVC.Job.LongRunning()));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</li>\r\n");
|
|
|
|
|
|
#line 48 "..\..\Views\Shared\_Layout.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 49 "..\..\Views\Shared\_Layout.cshtml"
|
|
if (Authorization.Has(Claims.Job.Lists.StaleJobs))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <li>");
|
|
|
|
|
|
#line 51 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(Html.ActionLink("Stale Jobs", MVC.Job.Stale()));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</li>\r\n");
|
|
|
|
|
|
#line 52 "..\..\Views\Shared\_Layout.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 53 "..\..\Views\Shared\_Layout.cshtml"
|
|
if (Authorization.Has(Claims.Job.Lists.DevicesReadyForReturn))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <li>");
|
|
|
|
|
|
#line 55 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(Html.ActionLink("Devices Ready for Return", MVC.Job.DevicesReadyForReturn()));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</li>\r\n");
|
|
|
|
|
|
#line 56 "..\..\Views\Shared\_Layout.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 57 "..\..\Views\Shared\_Layout.cshtml"
|
|
if (Authorization.Has(Claims.Job.Lists.Locations))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <li>");
|
|
|
|
|
|
#line 59 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(Html.ActionLink("Device Held Locations", MVC.Job.Locations()));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</li>\r\n");
|
|
|
|
|
|
#line 60 "..\..\Views\Shared\_Layout.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 61 "..\..\Views\Shared\_Layout.cshtml"
|
|
if (Authorization.Has(Claims.Job.Lists.AwaitingUserAction))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <li>");
|
|
|
|
|
|
#line 63 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(Html.ActionLink("Awaiting User Action", MVC.Job.AwaitingUserAction()));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</li>\r\n");
|
|
|
|
|
|
#line 64 "..\..\Views\Shared\_Layout.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 65 "..\..\Views\Shared\_Layout.cshtml"
|
|
if (Authorization.Has(Claims.Job.Lists.AwaitingFinance))
|
|
{
|
|
if (Authorization.HasAny(Claims.Job.Lists.AwaitingFinanceCharge, Claims.Job.Lists.AwaitingFinancePayment, Claims.Job.Lists.AwaitingFinanceAgreementBreach, Claims.Job.Lists.AwaitingFinanceInsuranceProcessing))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <li");
|
|
|
|
WriteLiteral(" class=\"d-sm\"");
|
|
|
|
WriteLiteral("><i");
|
|
|
|
WriteLiteral(" class=\"fa fa-caret-right\"");
|
|
|
|
WriteLiteral("></i>");
|
|
|
|
|
|
#line 69 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(Html.ActionLink("Awaiting Finance", MVC.Job.AwaitingFinance()));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n <ul>\r\n");
|
|
|
|
|
|
#line 71 "..\..\Views\Shared\_Layout.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 71 "..\..\Views\Shared\_Layout.cshtml"
|
|
if (Authorization.Has(Claims.Job.Lists.AwaitingFinanceCharge))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <li>");
|
|
|
|
|
|
#line 73 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(Html.ActionLink("Accounting Charge", MVC.Job.AwaitingFinanceCharge()));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</li>\r\n");
|
|
|
|
|
|
#line 74 "..\..\Views\Shared\_Layout.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 75 "..\..\Views\Shared\_Layout.cshtml"
|
|
if (Authorization.Has(Claims.Job.Lists.AwaitingFinancePayment))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <li>");
|
|
|
|
|
|
#line 77 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(Html.ActionLink("Accounting Payment", MVC.Job.AwaitingFinancePayment()));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</li>\r\n");
|
|
|
|
|
|
#line 78 "..\..\Views\Shared\_Layout.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 79 "..\..\Views\Shared\_Layout.cshtml"
|
|
if (Authorization.Has(Claims.Job.Lists.AwaitingFinanceAgreementBreach))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <li>");
|
|
|
|
|
|
#line 81 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(Html.ActionLink("Agreement Breach", MVC.Job.AwaitingFinanceAgreementBreach()));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</li>\r\n");
|
|
|
|
|
|
#line 82 "..\..\Views\Shared\_Layout.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 83 "..\..\Views\Shared\_Layout.cshtml"
|
|
if (Authorization.Has(Claims.Job.Lists.AwaitingFinanceInsuranceProcessing))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <li>");
|
|
|
|
|
|
#line 85 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(Html.ActionLink("Insurance Processing", MVC.Job.AwaitingFinanceInsuranceProcessing()));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</li>\r\n");
|
|
|
|
|
|
#line 86 "..\..\Views\Shared\_Layout.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </ul>\r\n </li>\r" +
|
|
"\n");
|
|
|
|
|
|
#line 89 "..\..\Views\Shared\_Layout.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <li>");
|
|
|
|
|
|
#line 92 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(Html.ActionLink("Awaiting Finance", MVC.Job.AwaitingFinance()));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</li>\r\n");
|
|
|
|
|
|
#line 93 "..\..\Views\Shared\_Layout.cshtml"
|
|
}
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 95 "..\..\Views\Shared\_Layout.cshtml"
|
|
if (Authorization.Has(Claims.Job.Lists.DevicesAwaitingRepair))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <li>");
|
|
|
|
|
|
#line 97 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(Html.ActionLink("Awaiting Device Repair", MVC.Job.DevicesAwaitingRepair()));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</li>\r\n");
|
|
|
|
|
|
#line 98 "..\..\Views\Shared\_Layout.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 99 "..\..\Views\Shared\_Layout.cshtml"
|
|
if (Authorization.Has(Claims.Job.Lists.AllOpen))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <li>");
|
|
|
|
|
|
#line 101 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(Html.ActionLink("All Open", MVC.Job.AllOpen()));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</li>\r\n");
|
|
|
|
|
|
#line 102 "..\..\Views\Shared\_Layout.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 103 "..\..\Views\Shared\_Layout.cshtml"
|
|
if (Authorization.Has(Claims.Job.Lists.RecentlyClosed))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <li>");
|
|
|
|
|
|
#line 105 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(Html.ActionLink("Recently Closed", MVC.Job.RecentlyClosed()));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</li>\r\n");
|
|
|
|
|
|
#line 106 "..\..\Views\Shared\_Layout.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </ul>\r\n </li>\r\n");
|
|
|
|
|
|
#line 109 "..\..\Views\Shared\_Layout.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 109 "..\..\Views\Shared\_Layout.cshtml"
|
|
if (Authorization.HasAny(Claims.Device.Search, Claims.Device.Actions.Import, Claims.Device.Actions.Export, Claims.Device.Actions.EnrolDevices))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <li");
|
|
|
|
WriteAttribute("class", Tuple.Create(" class=\"", 6912), Tuple.Create("\"", 7000)
|
|
|
|
#line 111 "..\..\Views\Shared\_Layout.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 6920), Tuple.Create<System.Object, System.Int32>((string)ViewContext.ViewData["MenuArea"] == MVC.Device.Name ? "active" : null
|
|
|
|
#line default
|
|
#line hidden
|
|
, 6920), false)
|
|
);
|
|
|
|
WriteLiteral(">");
|
|
|
|
|
|
#line 111 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(Html.ActionLink("Devices", MVC.Device.Index(), accesskey: "2"));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</li>\r\n");
|
|
|
|
|
|
#line 112 "..\..\Views\Shared\_Layout.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 113 "..\..\Views\Shared\_Layout.cshtml"
|
|
if (Authorization.HasAny(Claims.User.Search))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <li");
|
|
|
|
WriteAttribute("class", Tuple.Create(" class=\"", 7213), Tuple.Create("\"", 7299)
|
|
|
|
#line 115 "..\..\Views\Shared\_Layout.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 7221), Tuple.Create<System.Object, System.Int32>((string)ViewContext.ViewData["MenuArea"] == MVC.User.Name ? "active" : null
|
|
|
|
#line default
|
|
#line hidden
|
|
, 7221), false)
|
|
);
|
|
|
|
WriteLiteral(">");
|
|
|
|
|
|
#line 115 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(Html.ActionLink("Users", MVC.User.Index(), accesskey: "3"));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</li>\r\n");
|
|
|
|
|
|
#line 116 "..\..\Views\Shared\_Layout.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <li");
|
|
|
|
WriteAttribute("class", Tuple.Create(" class=\"", 7413), Tuple.Create("\"", 7511)
|
|
, Tuple.Create(Tuple.Create("", 7421), Tuple.Create("moveRight", 7421), true)
|
|
|
|
#line 117 "..\..\Views\Shared\_Layout.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 7430), Tuple.Create<System.Object, System.Int32>((string)ViewContext.ViewData["MenuArea"] == MVC.Public.Name ? " active" : null
|
|
|
|
#line default
|
|
#line hidden
|
|
, 7430), false)
|
|
);
|
|
|
|
WriteLiteral(">");
|
|
|
|
|
|
#line 117 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(Html.ActionLink("Reports", MVC.Public.Public.Index()));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</li>\r\n");
|
|
|
|
|
|
#line 118 "..\..\Views\Shared\_Layout.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 118 "..\..\Views\Shared\_Layout.cshtml"
|
|
if (Authorization.Has(Claims.Config.Show))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <li");
|
|
|
|
WriteAttribute("class", Tuple.Create(" class=\"", 7689), Tuple.Create("\"", 7777)
|
|
|
|
#line 120 "..\..\Views\Shared\_Layout.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 7697), Tuple.Create<System.Object, System.Int32>((string)ViewContext.ViewData["MenuArea"] == MVC.Config.Name ? "active" : null
|
|
|
|
#line default
|
|
#line hidden
|
|
, 7697), false)
|
|
);
|
|
|
|
WriteLiteral(">");
|
|
|
|
|
|
#line 120 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(Html.ActionLink("Configuration", MVC.Config.Config.Index(), accesskey: "0"));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</li>\r\n");
|
|
|
|
|
|
#line 121 "..\..\Views\Shared\_Layout.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </ul>\r\n </nav>\r\n <div");
|
|
|
|
WriteLiteral(" id=\"headerMenu\"");
|
|
|
|
WriteLiteral(">\r\n <span>");
|
|
|
|
|
|
#line 125 "..\..\Views\Shared\_Layout.cshtml"
|
|
if (Authorization.Has(Claims.User.Show))
|
|
{
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 126 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(Html.ActionLink(CurrentUser.ToString(), MVC.User.Show(CurrentUser.UserId)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 126 "..\..\Views\Shared\_Layout.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 128 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(CurrentUser.ToString());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 128 "..\..\Views\Shared\_Layout.cshtml"
|
|
}
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</span>\r\n");
|
|
|
|
|
|
#line 129 "..\..\Views\Shared\_Layout.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 129 "..\..\Views\Shared\_Layout.cshtml"
|
|
if (Authorization.HasAny(Claims.Job.Search, Claims.Device.Search, Claims.User.Search))
|
|
{
|
|
using (Html.BeginForm(MVC.Search.Query(), FormMethod.Get))
|
|
{
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 132 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(Html.TextBox("term", null, new { id = "SearchQuery", accesskey = "s", placeholder = "Search", data_quicksearchurl = Url.Action(MVC.API.Search.QuickQuery()) }));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 132 "..\..\Views\Shared\_Layout.cshtml"
|
|
}
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </div>\r\n </header>\r\n <div");
|
|
|
|
WriteLiteral(" id=\"layout_PageHeading\"");
|
|
|
|
WriteLiteral(">");
|
|
|
|
|
|
#line 136 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(CommonHelpers.Breadcrumbs(ViewBag.Title ?? string.Empty));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</div>\r\n <section");
|
|
|
|
WriteLiteral(" id=\"layout_Page\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 138 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(RenderBody());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </section>\r\n <footer>\r\n Disco ICT v");
|
|
|
|
|
|
#line 141 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(Disco.Web.DiscoApplication.Version);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" ");
|
|
|
|
WriteLiteral("@ ");
|
|
|
|
|
|
#line 141 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(Disco.Web.DiscoApplication.OrganisationName);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" | <a\r\n href=\"https://discoict.com.au/\" target=\"_blank\">discoict.c" +
|
|
"om.au</a> | ");
|
|
|
|
|
|
#line 142 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(Html.ActionLink("Credits", MVC.Public.Public.Credits()));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" | ");
|
|
|
|
|
|
#line 142 "..\..\Views\Shared\_Layout.cshtml"
|
|
Write(Html.ActionLink("Licence", MVC.Public.Public.Licence()));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </footer>\r\n </div>\r\n");
|
|
|
|
|
|
#line 145 "..\..\Views\Shared\_Layout.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 145 "..\..\Views\Shared\_Layout.cshtml"
|
|
Disco.Services.Plugins.Features.UIExtension.UIExtensions.ExecuteExtensionResult(this);
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n</body>\r\n</html>\r\n");
|
|
|
|
}
|
|
}
|
|
}
|
|
#pragma warning restore 1591
|