214 lines
6.2 KiB
C#
214 lines
6.2 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.SystemConfig
|
|
{
|
|
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("~/Areas/Config/Views/SystemConfig/Activate.cshtml")]
|
|
public partial class Activate : Disco.Services.Web.WebViewPage<Disco.Web.Areas.Config.Models.SystemConfig.ActivateModel>
|
|
{
|
|
public Activate()
|
|
{
|
|
}
|
|
public override void Execute()
|
|
{
|
|
|
|
#line 2 "..\..\Areas\Config\Views\SystemConfig\Activate.cshtml"
|
|
|
|
Authorization.Require(Claims.DiscoAdminAccount);
|
|
|
|
ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "System", MVC.Config.SystemConfig.Index(), "Activate");
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n\r\n<div");
|
|
|
|
WriteLiteral(" style=\"min-height: 300px;\"");
|
|
|
|
WriteLiteral(">\r\n <div");
|
|
|
|
WriteLiteral(" class=\"form\"");
|
|
|
|
WriteLiteral(" style=\"width: 500px;\"");
|
|
|
|
WriteLiteral(">\r\n <h2><i");
|
|
|
|
WriteLiteral(" class=\"fa fa-lg fa-cog fa-spin\"");
|
|
|
|
WriteLiteral("></i> Testing Connectivity to Disco ICT Online Services</h2>\r\n </div>\r\n</div>\r" +
|
|
"\n\r\n<form");
|
|
|
|
WriteLiteral(" id=\"callbackSubmit\"");
|
|
|
|
WriteAttribute("action", Tuple.Create(" action=\"", 504), Tuple.Create("\"", 531)
|
|
|
|
#line 14 "..\..\Areas\Config\Views\SystemConfig\Activate.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 513), Tuple.Create<System.Object, System.Int32>(Model.CallbackUrl
|
|
|
|
#line default
|
|
#line hidden
|
|
, 513), false)
|
|
);
|
|
|
|
WriteLiteral(" method=\"post\"");
|
|
|
|
WriteLiteral(" data-failedurl=\"");
|
|
|
|
|
|
#line 14 "..\..\Areas\Config\Views\SystemConfig\Activate.cshtml"
|
|
Write(Url.Action(MVC.Config.SystemConfig.Index()));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\"");
|
|
|
|
WriteLiteral(">\r\n <input");
|
|
|
|
WriteLiteral(" type=\"hidden\"");
|
|
|
|
WriteLiteral(" name=\"correlationId\"");
|
|
|
|
WriteAttribute("value", Tuple.Create(" value=\"", 656), Tuple.Create("\"", 684)
|
|
|
|
#line 15 "..\..\Areas\Config\Views\SystemConfig\Activate.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 664), Tuple.Create<System.Object, System.Int32>(Model.CorrelationId
|
|
|
|
#line default
|
|
#line hidden
|
|
, 664), false)
|
|
);
|
|
|
|
WriteLiteral(" />\r\n <input");
|
|
|
|
WriteLiteral(" type=\"hidden\"");
|
|
|
|
WriteLiteral(" name=\"deploymentId\"");
|
|
|
|
WriteAttribute("value", Tuple.Create(" value=\"", 734), Tuple.Create("\"", 761)
|
|
|
|
#line 16 "..\..\Areas\Config\Views\SystemConfig\Activate.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 742), Tuple.Create<System.Object, System.Int32>(Model.DeploymentId
|
|
|
|
#line default
|
|
#line hidden
|
|
, 742), false)
|
|
);
|
|
|
|
WriteLiteral(" />\r\n <input");
|
|
|
|
WriteLiteral(" type=\"hidden\"");
|
|
|
|
WriteLiteral(" name=\"timestamp\"");
|
|
|
|
WriteAttribute("value", Tuple.Create(" value=\"", 808), Tuple.Create("\"", 832)
|
|
|
|
#line 17 "..\..\Areas\Config\Views\SystemConfig\Activate.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 816), Tuple.Create<System.Object, System.Int32>(Model.Timestamp
|
|
|
|
#line default
|
|
#line hidden
|
|
, 816), false)
|
|
);
|
|
|
|
WriteLiteral(" />\r\n <input");
|
|
|
|
WriteLiteral(" type=\"hidden\"");
|
|
|
|
WriteLiteral(" name=\"proof\"");
|
|
|
|
WriteAttribute("value", Tuple.Create(" value=\"", 875), Tuple.Create("\"", 895)
|
|
|
|
#line 18 "..\..\Areas\Config\Views\SystemConfig\Activate.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 883), Tuple.Create<System.Object, System.Int32>(Model.Proof
|
|
|
|
#line default
|
|
#line hidden
|
|
, 883), false)
|
|
);
|
|
|
|
WriteLiteral(" />\r\n <input");
|
|
|
|
WriteLiteral(" type=\"hidden\"");
|
|
|
|
WriteLiteral(" name=\"userId\"");
|
|
|
|
WriteAttribute("value", Tuple.Create(" value=\"", 939), Tuple.Create("\"", 960)
|
|
|
|
#line 19 "..\..\Areas\Config\Views\SystemConfig\Activate.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 947), Tuple.Create<System.Object, System.Int32>(Model.UserId
|
|
|
|
#line default
|
|
#line hidden
|
|
, 947), false)
|
|
);
|
|
|
|
WriteLiteral(" />\r\n <input");
|
|
|
|
WriteLiteral(" type=\"hidden\"");
|
|
|
|
WriteLiteral(" name=\"callbackUrl\"");
|
|
|
|
WriteAttribute("value", Tuple.Create(" value=\"", 1009), Tuple.Create("\"", 1080)
|
|
|
|
#line 20 "..\..\Areas\Config\Views\SystemConfig\Activate.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 1017), Tuple.Create<System.Object, System.Int32>(new Uri(Request.Url, Url.Action(MVC.API.Activation.Begin()))
|
|
|
|
#line default
|
|
#line hidden
|
|
, 1017), false)
|
|
);
|
|
|
|
WriteLiteral(@" />
|
|
</form>
|
|
|
|
<script>
|
|
$(function () {
|
|
const callbackForm = $('#callbackSubmit');
|
|
const callbackFailedUrl = callbackForm.attr('data-failedurl');
|
|
const timeout = window.setTimeout(function () {
|
|
alert('A timeout occurred while communicating with Online Services. Please try a different device/browser or try again later.');
|
|
window.location.href = callbackFailedUrl;
|
|
}, 1000 * 18);
|
|
callbackForm.trigger('submit');
|
|
});
|
|
</script>
|
|
");
|
|
|
|
}
|
|
}
|
|
}
|
|
#pragma warning restore 1591
|