#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.DocumentTemplate
{
    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\DocumentTemplate\BulkGenerate.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/DocumentTemplate/BulkGenerate.cshtml")]
    public partial class BulkGenerate : Disco.Services.Web.WebViewPage<Disco.Web.Areas.Config.Models.DocumentTemplate.BulkGenerateModel>
    {
        public BulkGenerate()
        {
        }
        public override void Execute()
        {
            
            #line 3 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
  
    Authorization.RequireAll(Claims.Config.DocumentTemplate.BulkGenerate, Claims.User.Actions.GenerateDocuments);

    ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "Document Templates", MVC.Config.DocumentTemplate.Index(null), Model.DocumentTemplate.Description, MVC.Config.DocumentTemplate.Index(Model.DocumentTemplate.Id), "Bulk Generate");
    Html.BundleDeferred("~/ClientScripts/Modules/Disco-DocumentBulkGenerate");

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

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

WriteLiteral(">\r\n    <div");

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

WriteLiteral(">\r\n");

            
            #line 11 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
        
            
            #line default
            #line hidden
            
            #line 11 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
         using (Html.BeginForm(MVC.API.DocumentTemplate.BulkGenerate(Model.DocumentTemplate.Id), FormMethod.Post))
        {
            if (Model.TemplatePageCount > 1 && Model.TemplatePageCount % 2 != 0)
            {

            
            #line default
            #line hidden
WriteLiteral("                <input");

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

WriteLiteral(" type=\"checkbox\"");

WriteLiteral(" name=\"InsertBlankPage\"");

WriteLiteral(" value=\"True\"");

WriteLiteral(" checked />");

WriteLiteral("<label");

WriteLiteral(" for=\"DocumentTemplate_BulkGenerate_InsertBlankPage\"");

WriteLiteral(">Insert Blank Pages for Double-Sided Printing</label>\r\n");

            
            #line 16 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
            }

            
            #line default
            #line hidden
WriteLiteral("            <input");

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

WriteLiteral(" name=\"DataIds\"");

WriteLiteral(" type=\"hidden\"");

WriteLiteral(" />\r\n");

WriteLiteral("            <button");

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

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

WriteLiteral(" disabled>Bulk Generate</button>\r\n");

            
            #line 19 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
            
            
            #line default
            #line hidden
            
            #line 19 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
       Write(Html.AntiForgeryToken());

            
            #line default
            #line hidden
            
            #line 19 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                    
        }

            
            #line default
            #line hidden
WriteLiteral("        <br />\r\n        <button");

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

WriteLiteral(" class=\"button small\"");

WriteLiteral(">Add Users</button>\r\n        <button");

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

WriteLiteral(" class=\"button small\"");

WriteLiteral(">Add Group Members</button>\r\n");

            
            #line 24 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
        
            
            #line default
            #line hidden
            
            #line 24 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
         if (Model.UserFlags.Any(f => f.Count > 0))
        {

            
            #line default
            #line hidden
WriteLiteral("            <button");

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

WriteLiteral(" class=\"button small\"");

WriteLiteral(">Add With User Flag</button>\r\n");

            
            #line 27 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
        }

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

            
            #line 28 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
         if (Model.DeviceProfiles.Any(b => b.Count > 0))
        {

            
            #line default
            #line hidden
WriteLiteral("            <button");

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

WriteLiteral(" class=\"button small\"");

WriteLiteral(">Add With Device Profile</button>\r\n");

            
            #line 31 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
        }

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

            
            #line 32 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
         if (Model.DeviceBatches.Any(b => b.Count > 0))
        {

            
            #line default
            #line hidden
WriteLiteral("            <button");

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

WriteLiteral(" class=\"button small\"");

WriteLiteral(">Add With Device Batch</button>\r\n");

            
            #line 35 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
        }

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

            
            #line 36 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
         if (Model.DocumentTemplates.Any(b => b.Count > 0))
        {

            
            #line default
            #line hidden
WriteLiteral("            <button");

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

WriteLiteral(" class=\"button small\"");

WriteLiteral(">Add With Document Attachment</button>\r\n");

            
            #line 39 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
        }

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

            
            #line 40 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
         if (Model.UserDetails.Any(b => b.Count > 0))
        {

            
            #line default
            #line hidden
WriteLiteral("            <button");

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

WriteLiteral(" class=\"button small\"");

WriteLiteral(">Add With User Detail</button>\r\n");

            
            #line 43 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
        }

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

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

WriteLiteral(">\r\n        <thead>\r\n            <tr>\r\n                <th>&nbsp;</th>\r\n          " +
"      <th>Username</th>\r\n                <th>Name</th>\r\n                <th>Scop" +
"e</th>\r\n            </tr>\r\n        </thead>\r\n        <tbody>\r\n            <tr");

WriteLiteral(" class=\"when-none\"");

WriteLiteral(">\r\n                <td");

WriteLiteral(" colspan=\"4\"");

WriteLiteral(">Add Users</td>\r\n            </tr>\r\n        </tbody>\r\n    </table>\r\n</div>\r\n\r\n<di" +
"v");

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

WriteLiteral(" class=\"dialog dialog-bulk-generate\"");

WriteAttribute("title", Tuple.Create(" title=\"", 2917), Tuple.Create("\"", 2973)
            
            #line 62 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                    , Tuple.Create(Tuple.Create("", 2925), Tuple.Create<System.Object, System.Int32>(Model.DocumentTemplate.Description
            
            #line default
            #line hidden
, 2925), false)
, Tuple.Create(Tuple.Create("", 2962), Tuple.Create(":", 2962), true)
, Tuple.Create(Tuple.Create(" ", 2963), Tuple.Create("Add", 2964), true)
, Tuple.Create(Tuple.Create(" ", 2967), Tuple.Create("Users", 2968), true)
);

WriteLiteral(">\r\n    <div");

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

WriteLiteral(">\r\n        <div>\r\n            Enter multiple <span");

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

WriteLiteral(@">User Ids</span> separated by <code>&lt;new line&gt;</code>, commas (<code>,</code>) or semicolons (<code>;</code>).
        </div>
        <div>
            Security Groups can also be included. Members will be resolved and added.
        </div>
        <div");

WriteLiteral(" class=\"examples clearfix\"");

WriteLiteral(">\r\n            <h4>Examples:</h4>\r\n            <div");

WriteLiteral(" class=\"example1 code\"");

WriteLiteral(">\r\n                user6<br />\r\n                smi0099<br />\r\n");

WriteLiteral("                ");

            
            #line 75 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
            Write(ActiveDirectory.Context.PrimaryDomain.NetBiosName);

            
            #line default
            #line hidden
WriteLiteral("\\rsmith<br />\r\n                Domain Admins\r\n            </div>\r\n            <di" +
"v");

WriteLiteral(" class=\"example2 code\"");

WriteLiteral(">user6,smi0099,");

            
            #line 78 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                                 Write(ActiveDirectory.Context.PrimaryDomain.NetBiosName);

            
            #line default
            #line hidden
WriteLiteral("\\rsmith,Domain Admins</div>\r\n            <div");

WriteLiteral(" class=\"example3 code\"");

WriteLiteral(">user6;smi0099;");

            
            #line 79 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                                 Write(ActiveDirectory.Context.PrimaryDomain.NetBiosName);

            
            #line default
            #line hidden
WriteLiteral("\\rsmith;Domain Admins</div>\r\n        </div>\r\n    </div>\r\n");

            
            #line 82 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
    
            
            #line default
            #line hidden
            
            #line 82 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
     using (Html.BeginForm(MVC.API.DocumentTemplate.BulkGenerateAddUsers(), FormMethod.Post))
    {

            
            #line default
            #line hidden
WriteLiteral("        <div");

WriteLiteral(" class=\"field-validation-valid\"");

WriteLiteral(" data-valmsg-replace=\"true\"");

WriteLiteral(" data-valmsg-for=\"userIds\"");

WriteLiteral("></div>\r\n");

WriteLiteral("        <textarea");

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

WriteLiteral(" name=\"userIds\"");

WriteLiteral(" data-val=\"true\"");

WriteLiteral(" data-val-required=\"Identifiers are required\"");

WriteLiteral(" required></textarea>\r\n");

            
            #line 86 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
        
            
            #line default
            #line hidden
            
            #line 86 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
   Write(Html.AntiForgeryToken());

            
            #line default
            #line hidden
            
            #line 86 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                
    }

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

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

WriteLiteral(" class=\"dialog dialog-bulk-generate\"");

WriteAttribute("title", Tuple.Create(" title=\"", 4437), Tuple.Create("\"", 4501)
            
            #line 90 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                           , Tuple.Create(Tuple.Create("", 4445), Tuple.Create<System.Object, System.Int32>(Model.DocumentTemplate.Description
            
            #line default
            #line hidden
, 4445), false)
, Tuple.Create(Tuple.Create("", 4482), Tuple.Create(":", 4482), true)
, Tuple.Create(Tuple.Create(" ", 4483), Tuple.Create("Add", 4484), true)
, Tuple.Create(Tuple.Create(" ", 4487), Tuple.Create("Group", 4488), true)
, Tuple.Create(Tuple.Create(" ", 4493), Tuple.Create("Members", 4494), true)
);

WriteLiteral(">\r\n    <div");

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

WriteLiteral(">\r\n        <div>\r\n            Add all members of a group (including recursive mem" +
"bers) to the bulk generation.\r\n        </div>\r\n    </div>\r\n");

            
            #line 96 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
    
            
            #line default
            #line hidden
            
            #line 96 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
     using (Html.BeginForm(MVC.API.DocumentTemplate.BulkGenerateAddGroupMembers(), FormMethod.Post))
    {

            
            #line default
            #line hidden
WriteLiteral("        <table");

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

WriteLiteral(">\r\n            <tbody>\r\n                <tr>\r\n                    <th>\r\n         " +
"               <label");

WriteLiteral(" for=\"DocumentTemplate_BulkGenerate_Dialog_AddGroupMembers_Group\"");

WriteLiteral(">Group:</label>\r\n                    </th>\r\n                    <td>\r\n           " +
"             <input");

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

WriteLiteral(" type=\"text\"");

WriteLiteral(" name=\"groupId\"");

WriteLiteral(" data-autocomplete-src=\"");

            
            #line 105 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                                                                                                                             Write(Url.Action(MVC.API.System.SearchGroupSubjects()));

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

WriteLiteral(" required />\r\n                    </td>\r\n                </tr>\r\n            </tbo" +
"dy>\r\n        </table>\r\n");

            
            #line 110 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
        
            
            #line default
            #line hidden
            
            #line 110 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
   Write(Html.AntiForgeryToken());

            
            #line default
            #line hidden
            
            #line 110 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                
    }

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

            
            #line 114 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
 if (Model.UserFlags.Any(f => f.Count > 0))
{

            
            #line default
            #line hidden
WriteLiteral("    <div");

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

WriteLiteral(" class=\"dialog dialog-bulk-generate\"");

WriteAttribute("title", Tuple.Create(" title=\"", 5539), Tuple.Create("\"", 5611)
            
            #line 116 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                           , Tuple.Create(Tuple.Create("", 5547), Tuple.Create<System.Object, System.Int32>(Model.DocumentTemplate.Description
            
            #line default
            #line hidden
, 5547), false)
, Tuple.Create(Tuple.Create("", 5584), Tuple.Create(":", 5584), true)
, Tuple.Create(Tuple.Create(" ", 5585), Tuple.Create("Add", 5586), true)
, Tuple.Create(Tuple.Create(" ", 5589), Tuple.Create("User", 5590), true)
, Tuple.Create(Tuple.Create(" ", 5594), Tuple.Create("Flag", 5595), true)
, Tuple.Create(Tuple.Create(" ", 5599), Tuple.Create("Assignments", 5600), true)
);

WriteLiteral(">\r\n        <div");

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

WriteLiteral(">\r\n            <div>\r\n                Add all users associated with the flag to t" +
"he bulk generation.\r\n            </div>\r\n        </div>\r\n");

            
            #line 122 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
        
            
            #line default
            #line hidden
            
            #line 122 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
         using (Html.BeginForm(MVC.API.DocumentTemplate.BulkGenerateAddUserFlag(), FormMethod.Post))
        {

            
            #line default
            #line hidden
WriteLiteral("            <input");

WriteLiteral(" name=\"flagId\"");

WriteLiteral(" type=\"hidden\"");

WriteLiteral(" required />\r\n");

WriteLiteral("            <div");

WriteLiteral(" class=\"dialog-item-picker\"");

WriteLiteral(">\r\n");

            
            #line 126 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                
            
            #line default
            #line hidden
            
            #line 126 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                 foreach (var flag in Model.UserFlags)
                {

            
            #line default
            #line hidden
WriteLiteral("                    <div");

WriteAttribute("class", Tuple.Create(" class=\"", 6097), Tuple.Create("\"", 6148)
, Tuple.Create(Tuple.Create("", 6105), Tuple.Create("item", 6105), true)
            
            #line 128 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
, Tuple.Create(Tuple.Create(" ", 6109), Tuple.Create<System.Object, System.Int32>(flag.Count == 0 ? "disabled" : null
            
            #line default
            #line hidden
, 6110), false)
);

WriteLiteral(" data-userflagid=\"");

            
            #line 128 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                                                                         Write(flag.Item.Id);

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

WriteLiteral(">\r\n                        <i");

WriteAttribute("class", Tuple.Create(" class=\"", 6210), Tuple.Create("\"", 6279)
, Tuple.Create(Tuple.Create("", 6218), Tuple.Create("fa", 6218), true)
, Tuple.Create(Tuple.Create(" ", 6220), Tuple.Create("fa-", 6221), true)
            
            #line 129 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
, Tuple.Create(Tuple.Create("", 6224), Tuple.Create<System.Object, System.Int32>(flag.Item.Icon
            
            #line default
            #line hidden
, 6224), false)
, Tuple.Create(Tuple.Create(" ", 6241), Tuple.Create("fa-fw", 6242), true)
, Tuple.Create(Tuple.Create(" ", 6247), Tuple.Create("fa-lg", 6248), true)
, Tuple.Create(Tuple.Create(" ", 6253), Tuple.Create("d-", 6254), true)
            
            #line 129 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
, Tuple.Create(Tuple.Create("", 6256), Tuple.Create<System.Object, System.Int32>(flag.Item.IconColour
            
            #line default
            #line hidden
, 6256), false)
);

WriteLiteral("></i>");

            
            #line 129 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                                                                                Write(flag.Item.Name);

            
            #line default
            #line hidden
WriteLiteral(" <small>(");

            
            #line 129 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                                                                                                        Write(flag.Count.ToString("N0"));

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

            
            #line 129 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                                                                                                                                        Write(flag.Count == 1 ? null : "s");

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

            
            #line 131 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"

                }

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

            
            #line 134 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
            
            
            #line default
            #line hidden
            
            #line 134 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
       Write(Html.AntiForgeryToken());

            
            #line default
            #line hidden
            
            #line 134 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                    
        }

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

            
            #line 137 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
}

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

            
            #line 139 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
 if (Model.DeviceProfiles.Any(b => b.Count > 0))
{

            
            #line default
            #line hidden
WriteLiteral("    <div");

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

WriteLiteral(" class=\"dialog dialog-bulk-generate\"");

WriteAttribute("title", Tuple.Create(" title=\"", 6673), Tuple.Create("\"", 6755)
            
            #line 141 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                , Tuple.Create(Tuple.Create("", 6681), Tuple.Create<System.Object, System.Int32>(Model.DocumentTemplate.Description
            
            #line default
            #line hidden
, 6681), false)
, Tuple.Create(Tuple.Create("", 6718), Tuple.Create(":", 6718), true)
, Tuple.Create(Tuple.Create(" ", 6719), Tuple.Create("Add", 6720), true)
, Tuple.Create(Tuple.Create(" ", 6723), Tuple.Create("User", 6724), true)
, Tuple.Create(Tuple.Create(" ", 6728), Tuple.Create("by", 6729), true)
, Tuple.Create(Tuple.Create(" ", 6731), Tuple.Create("Assigned", 6732), true)
, Tuple.Create(Tuple.Create(" ", 6740), Tuple.Create("Device", 6741), true)
, Tuple.Create(Tuple.Create(" ", 6747), Tuple.Create("Profile", 6748), true)
);

WriteLiteral(">\r\n        <div");

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

WriteLiteral(">\r\n            <div>\r\n                Add all users associated with a device in t" +
"he selected profile to the bulk generation.\r\n            </div>\r\n        </div>\r" +
"\n");

            
            #line 147 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
        
            
            #line default
            #line hidden
            
            #line 147 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
         using (Html.BeginForm(MVC.API.DocumentTemplate.BulkGenerateAddDeviceProfile(), FormMethod.Post))
        {

            
            #line default
            #line hidden
WriteLiteral("            <input");

WriteLiteral(" name=\"deviceProfileId\"");

WriteLiteral(" type=\"hidden\"");

WriteLiteral(" required />\r\n");

WriteLiteral("            <div");

WriteLiteral(" class=\"dialog-item-picker\"");

WriteLiteral(">\r\n");

            
            #line 151 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                
            
            #line default
            #line hidden
            
            #line 151 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                 foreach (var profile in Model.DeviceProfiles)
                {

            
            #line default
            #line hidden
WriteLiteral("                    <div");

WriteAttribute("class", Tuple.Create(" class=\"", 7287), Tuple.Create("\"", 7341)
, Tuple.Create(Tuple.Create("", 7295), Tuple.Create("item", 7295), true)
            
            #line 153 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
, Tuple.Create(Tuple.Create(" ", 7299), Tuple.Create<System.Object, System.Int32>(profile.Count == 0 ? "disabled" : null
            
            #line default
            #line hidden
, 7300), false)
);

WriteLiteral(" data-id=\"");

            
            #line 153 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                                                                    Write(profile.Item.Id);

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

WriteLiteral(">\r\n                        <i");

WriteLiteral(" class=\"fa fa-cog fa-fw fa-lg\"");

WriteLiteral("></i>");

            
            #line 154 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                                        Write(profile.Item.Name);

            
            #line default
            #line hidden
WriteLiteral(" <small>(");

            
            #line 154 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                                                                   Write(profile.Count.ToString("N0"));

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

            
            #line 154 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                                                                                                      Write(profile.Count == 1 ? null : "s");

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

            
            #line 156 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                }

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

            
            #line 158 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
            
            
            #line default
            #line hidden
            
            #line 158 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
       Write(Html.AntiForgeryToken());

            
            #line default
            #line hidden
            
            #line 158 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                    
        }

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

            
            #line 161 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
}

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

            
            #line 163 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
 if (Model.DeviceBatches.Any(b => b.Count > 0))
{

            
            #line default
            #line hidden
WriteLiteral("    <div");

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

WriteLiteral(" class=\"dialog dialog-bulk-generate\"");

WriteAttribute("title", Tuple.Create(" title=\"", 7825), Tuple.Create("\"", 7905)
            
            #line 165 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                              , Tuple.Create(Tuple.Create("", 7833), Tuple.Create<System.Object, System.Int32>(Model.DocumentTemplate.Description
            
            #line default
            #line hidden
, 7833), false)
, Tuple.Create(Tuple.Create("", 7870), Tuple.Create(":", 7870), true)
, Tuple.Create(Tuple.Create(" ", 7871), Tuple.Create("Add", 7872), true)
, Tuple.Create(Tuple.Create(" ", 7875), Tuple.Create("User", 7876), true)
, Tuple.Create(Tuple.Create(" ", 7880), Tuple.Create("by", 7881), true)
, Tuple.Create(Tuple.Create(" ", 7883), Tuple.Create("Assigned", 7884), true)
, Tuple.Create(Tuple.Create(" ", 7892), Tuple.Create("Device", 7893), true)
, Tuple.Create(Tuple.Create(" ", 7899), Tuple.Create("Batch", 7900), true)
);

WriteLiteral(">\r\n        <div");

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

WriteLiteral(">\r\n            <div>\r\n                Add all users associated with a device in t" +
"he selected batch to the bulk generation.\r\n            </div>\r\n        </div>\r\n");

            
            #line 171 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
        
            
            #line default
            #line hidden
            
            #line 171 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
         using (Html.BeginForm(MVC.API.DocumentTemplate.BulkGenerateAddDeviceBatch(), FormMethod.Post))
        {

            
            #line default
            #line hidden
WriteLiteral("            <input");

WriteLiteral(" name=\"deviceBatchId\"");

WriteLiteral(" type=\"hidden\"");

WriteLiteral(" required />\r\n");

WriteLiteral("            <div");

WriteLiteral(" class=\"dialog-item-picker\"");

WriteLiteral(">\r\n");

            
            #line 175 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                
            
            #line default
            #line hidden
            
            #line 175 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                 foreach (var batch in Model.DeviceBatches)
                {

            
            #line default
            #line hidden
WriteLiteral("                    <div");

WriteAttribute("class", Tuple.Create(" class=\"", 8428), Tuple.Create("\"", 8480)
, Tuple.Create(Tuple.Create("", 8436), Tuple.Create("item", 8436), true)
            
            #line 177 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
, Tuple.Create(Tuple.Create(" ", 8440), Tuple.Create<System.Object, System.Int32>(batch.Count == 0 ? "disabled" : null
            
            #line default
            #line hidden
, 8441), false)
);

WriteLiteral(" data-id=\"");

            
            #line 177 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                                                                  Write(batch.Item.Id);

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

WriteLiteral(">\r\n                        <i");

WriteLiteral(" class=\"fa fa-cog fa-fw fa-lg\"");

WriteLiteral("></i>");

            
            #line 178 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                                        Write(batch.Item.Name);

            
            #line default
            #line hidden
WriteLiteral(" <small>(");

            
            #line 178 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                                                                 Write(batch.Count.ToString("N0"));

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

            
            #line 178 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                                                                                                  Write(batch.Count == 1 ? null : "s");

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

            
            #line 180 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                }

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

            
            #line 182 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
            
            
            #line default
            #line hidden
            
            #line 182 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
       Write(Html.AntiForgeryToken());

            
            #line default
            #line hidden
            
            #line 182 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                    
        }

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

            
            #line 185 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
}

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

            
            #line 187 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
 if (Model.DocumentTemplates.Any(b => b.Count > 0))
{

            
            #line default
            #line hidden
WriteLiteral("    <div");

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

WriteLiteral(" class=\"dialog dialog-bulk-generate\"");

WriteAttribute("title", Tuple.Create(" title=\"", 8967), Tuple.Create("\"", 9047)
            
            #line 189 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                     , Tuple.Create(Tuple.Create("", 8975), Tuple.Create<System.Object, System.Int32>(Model.DocumentTemplate.Description
            
            #line default
            #line hidden
, 8975), false)
, Tuple.Create(Tuple.Create("", 9012), Tuple.Create(":", 9012), true)
, Tuple.Create(Tuple.Create(" ", 9013), Tuple.Create("Add", 9014), true)
, Tuple.Create(Tuple.Create(" ", 9017), Tuple.Create("User", 9018), true)
, Tuple.Create(Tuple.Create(" ", 9022), Tuple.Create("by", 9023), true)
, Tuple.Create(Tuple.Create(" ", 9025), Tuple.Create("Assigned", 9026), true)
, Tuple.Create(Tuple.Create(" ", 9034), Tuple.Create("Device", 9035), true)
, Tuple.Create(Tuple.Create(" ", 9041), Tuple.Create("Batch", 9042), true)
);

WriteLiteral(">\r\n        <div");

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

WriteLiteral(">\r\n            <div>\r\n                Add all users associated with an attachment" +
" of the selected document template to the bulk generation.\r\n            </div>\r\n" +
"        </div>\r\n");

            
            #line 195 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
        
            
            #line default
            #line hidden
            
            #line 195 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
         using (Html.BeginForm(MVC.API.DocumentTemplate.BulkGenerateAddDocumentAttachment(), FormMethod.Post))
        {

            
            #line default
            #line hidden
WriteLiteral("            <input");

WriteLiteral(" name=\"documentTemplateId\"");

WriteLiteral(" type=\"hidden\"");

WriteLiteral(" required />\r\n");

WriteLiteral("            <div");

WriteLiteral(" class=\"dialog-item-picker\"");

WriteLiteral(">\r\n");

            
            #line 199 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                
            
            #line default
            #line hidden
            
            #line 199 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                 foreach (var template in Model.DocumentTemplates)
                {

            
            #line default
            #line hidden
WriteLiteral("                    <div");

WriteAttribute("class", Tuple.Create(" class=\"", 9606), Tuple.Create("\"", 9661)
, Tuple.Create(Tuple.Create("", 9614), Tuple.Create("item", 9614), true)
            
            #line 201 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
, Tuple.Create(Tuple.Create(" ", 9618), Tuple.Create<System.Object, System.Int32>(template.Count == 0 ? "disabled" : null
            
            #line default
            #line hidden
, 9619), false)
);

WriteLiteral(" data-id=\"");

            
            #line 201 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                                                                     Write(template.Item.Id);

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

WriteLiteral(">\r\n                        <i");

WriteLiteral(" class=\"fa fa-file-text-o fa-fw fa-lg\"");

WriteLiteral("></i>");

            
            #line 202 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                                                Write(template.Item.Id);

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

            
            #line 202 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                                                                   Write(template.Item.Description);

            
            #line default
            #line hidden
WriteLiteral(" <small>(");

            
            #line 202 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                                                                                                      Write(template.Count.ToString("N0"));

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

            
            #line 202 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                                                                                                                                          Write(template.Count == 1 ? null : "s");

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

            
            #line 204 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                }

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

WriteLiteral("            <div");

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

WriteLiteral(">\r\n                <label");

WriteLiteral(" for=\"DocumentTemplate_BulkGenerate_Dialog_AddDocumentAttachment_Threshold\"");

WriteLiteral(">Attachment Added After <small>(optional)</small></label>\r\n                <input" +
"");

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

WriteLiteral(" name=\"threshold\"");

WriteLiteral(" type=\"date\"");

WriteLiteral(" />\r\n            </div>\r\n");

            
            #line 210 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
            
            
            #line default
            #line hidden
            
            #line 210 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
       Write(Html.AntiForgeryToken());

            
            #line default
            #line hidden
            
            #line 210 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                    
        }

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

            
            #line 213 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
}

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

            
            #line 215 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
 if (Model.UserDetails.Any(b => b.Count > 0))
{

            
            #line default
            #line hidden
WriteLiteral("    <div");

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

WriteLiteral(" class=\"dialog dialog-bulk-generate\"");

WriteAttribute("title", Tuple.Create(" title=\"", 10517), Tuple.Create("\"", 10582)
            
            #line 217 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                            , Tuple.Create(Tuple.Create("", 10525), Tuple.Create<System.Object, System.Int32>(Model.DocumentTemplate.Description
            
            #line default
            #line hidden
, 10525), false)
, Tuple.Create(Tuple.Create("", 10562), Tuple.Create(":", 10562), true)
, Tuple.Create(Tuple.Create(" ", 10563), Tuple.Create("Add", 10564), true)
, Tuple.Create(Tuple.Create(" ", 10567), Tuple.Create("User", 10568), true)
, Tuple.Create(Tuple.Create(" ", 10572), Tuple.Create("by", 10573), true)
, Tuple.Create(Tuple.Create(" ", 10575), Tuple.Create("Detail", 10576), true)
);

WriteLiteral(">\r\n        <div");

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

WriteLiteral(">\r\n            <div>\r\n                Add all users with a matching user detail t" +
"o the bulk generation.\r\n            </div>\r\n        </div>\r\n");

            
            #line 223 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
        
            
            #line default
            #line hidden
            
            #line 223 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
         using (Html.BeginForm(MVC.API.DocumentTemplate.BulkGenerateAddUserDetail(), FormMethod.Post))
        {

            
            #line default
            #line hidden
WriteLiteral("            <input");

WriteLiteral(" name=\"key\"");

WriteLiteral(" type=\"hidden\"");

WriteLiteral(" required />\r\n");

WriteLiteral("            <input");

WriteLiteral(" name=\"value\"");

WriteLiteral(" type=\"hidden\"");

WriteLiteral(" />\r\n");

            
            #line 227 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"


            
            #line default
            #line hidden
WriteLiteral("            <div");

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

WriteLiteral(" class=\"dialog-item-picker\"");

WriteLiteral(" style=\"width: 49%; float: left;\"");

WriteLiteral(">\r\n");

            
            #line 229 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                
            
            #line default
            #line hidden
            
            #line 229 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                 foreach (var key in Model.UserDetails)
                {

            
            #line default
            #line hidden
WriteLiteral("                    <div");

WriteAttribute("class", Tuple.Create(" class=\"", 11216), Tuple.Create("\"", 11266)
, Tuple.Create(Tuple.Create("", 11224), Tuple.Create("item", 11224), true)
            
            #line 231 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
, Tuple.Create(Tuple.Create(" ", 11228), Tuple.Create<System.Object, System.Int32>(key.Count == 0 ? "disabled" : null
            
            #line default
            #line hidden
, 11229), false)
);

WriteLiteral(" data-id=\"");

            
            #line 231 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                                                                Write(key.Item);

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

WriteLiteral(">\r\n                        <i");

WriteLiteral(" class=\"fa fa-info fa-fw fa-lg\"");

WriteLiteral("></i>");

            
            #line 232 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                                         Write(key.Item.TrimEnd('*', '&'));

            
            #line default
            #line hidden
WriteLiteral(" <small>(");

            
            #line 232 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                                                                             Write(key.Count.ToString("N0"));

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

            
            #line 232 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                                                                                                            Write(key.Count == 1 ? null : "s");

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

            
            #line 234 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                }

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

            
            #line 236 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"

            
            
            #line default
            #line hidden
            
            #line 237 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
       Write(Html.AntiForgeryToken());

            
            #line default
            #line hidden
            
            #line 237 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                    
        }

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

            
            #line 239 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
         using (Html.BeginForm(MVC.API.DocumentTemplate.BulkGenerateGetUserDetailValues(), FormMethod.Post))
        {

            
            #line default
            #line hidden
WriteLiteral("            <input");

WriteLiteral(" name=\"key\"");

WriteLiteral(" type=\"hidden\"");

WriteLiteral(" required />\r\n");

            
            #line 242 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"


            
            #line default
            #line hidden
WriteLiteral("            <div");

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

WriteLiteral(" class=\"dialog-item-picker\"");

WriteLiteral(" style=\"width: 49%; float: left; margin-left: 1%;\"");

WriteLiteral(">\r\n            </div>\r\n");

            
            #line 245 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"

            
            
            #line default
            #line hidden
            
            #line 246 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
       Write(Html.AntiForgeryToken());

            
            #line default
            #line hidden
            
            #line 246 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
                                    
        }

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

            
            #line 249 "..\..\Areas\Config\Views\DocumentTemplate\BulkGenerate.cshtml"
}
            
            #line default
            #line hidden
        }
    }
}
#pragma warning restore 1591
