#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.Job
{
    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/Job/Create_Redirect.cshtml")]
    public partial class Create_Redirect : Disco.Services.Web.WebViewPage<Disco.Web.Models.Job.CreateRedirectModel>
    {
        public Create_Redirect()
        {
        }
        public override void Execute()
        {
            
            #line 2 "..\..\Views\Job\Create_Redirect.cshtml"
  
    Authorization.Require(Claims.Job.Actions.Create);

    Layout = MVC.Shared.Views._DialogLayout;
    ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), "Create - Redirecting...");

            
            #line default
            #line hidden
WriteLiteral("\r\n<div");

WriteLiteral(" id=\"createJobRedirect\"");

WriteLiteral(">\r\n    <h1>Job #");

            
            #line 9 "..\..\Views\Job\Create_Redirect.cshtml"
         Write(Model.JobId);

            
            #line default
            #line hidden
WriteLiteral(" Created Successfully</h1>\r\n\r\n    <div>\r\n        <i");

WriteLiteral(" class=\"ajaxLoading\"");

WriteLiteral(" title=\"Loading...\"");

WriteLiteral("></i><a");

WriteLiteral(" id=\"redirectLink\"");

WriteAttribute("href", Tuple.Create(" href=\"", 423), Tuple.Create("\"", 449)
            
            #line 12 "..\..\Views\Job\Create_Redirect.cshtml"
  , Tuple.Create(Tuple.Create("", 430), Tuple.Create<System.Object, System.Int32>(Model.RedirectLink
            
            #line default
            #line hidden
, 430), false)
);

WriteLiteral(">Redirecting...</a>\r\n    </div>\r\n</div>\r\n<script>\r\n    var redirectLink = \'");

            
            #line 16 "..\..\Views\Job\Create_Redirect.cshtml"
                    Write(Model.RedirectLink);

            
            #line default
            #line hidden
WriteLiteral("\';\r\n    var redirectDelay = parseInt(");

            
            #line 17 "..\..\Views\Job\Create_Redirect.cshtml"
                             Write(Model.RedirectDelay.HasValue ? Model.RedirectDelay.Value.TotalMilliseconds : 0);

            
            #line default
            #line hidden
WriteLiteral(@");

    //#region Parent Dialog
    function parentRedirect() {
        window.parent.window.location.href = redirectLink;

        var parentDialog = window.parent.document.getElementById('createJobDialog');
        if (parentDialog) {
            var discoDialogMethods = parentDialog.discoDialogMethods;
            discoDialogMethods.close();
        }
    }

    if (window.parent) {
        if (redirectDelay)
            window.setTimeout(parentRedirect, redirectDelay);
        else
            parentRedirect();
    }
    //#endregion
</script>
");

        }
    }
}
#pragma warning restore 1591
