#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.User.UserParts
{
    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 "..\..\Views\User\UserParts\_Subject.cshtml"
    using Disco.Services.Devices.DeviceFlags;
    
    #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("~/Views/User/UserParts/_Subject.cshtml")]
    public partial class _Subject : Disco.Services.Web.WebViewPage<Disco.Web.Models.User.ShowModel>
    {
        public _Subject()
        {
        }
        public override void Execute()
        {
            
            #line 3 "..\..\Views\User\UserParts\_Subject.cshtml"
  
    Authorization.Require(Claims.User.Show);

    var currentDeviceAssignments = Model.User.DeviceUserAssignments.Where(dua => !dua.UnassignedDate.HasValue).OrderByDescending(dua => dua.AssignedDate).ToList();

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

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

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

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

WriteAttribute("class", Tuple.Create(" class=\"", 402), Tuple.Create("\"", 465)
, Tuple.Create(Tuple.Create("", 410), Tuple.Create("clearfix", 410), true)
            
            #line 11 "..\..\Views\User\UserParts\_Subject.cshtml"
, Tuple.Create(Tuple.Create(" ", 418), Tuple.Create<System.Object, System.Int32>(Model.HasUserPhoto ? "hasPhoto" : "noPhoto"
            
            #line default
            #line hidden
, 419), false)
);

WriteLiteral(">\r\n");

            
            #line 12 "..\..\Views\User\UserParts\_Subject.cshtml"
                
            
            #line default
            #line hidden
            
            #line 12 "..\..\Views\User\UserParts\_Subject.cshtml"
                 if (Model.HasUserPhoto)
                {

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

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

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

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

WriteAttribute("src", Tuple.Create(" src=\"", 653), Tuple.Create("\"", 709)
            
            #line 15 "..\..\Views\User\UserParts\_Subject.cshtml"
, Tuple.Create(Tuple.Create("", 659), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.User.Photo(Model.User.UserId))
            
            #line default
            #line hidden
, 659), false)
);

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

            
            #line 17 "..\..\Views\User\UserParts\_Subject.cshtml"
                }

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

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

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

WriteLiteral(" class=\"none verticalHeadings\"");

WriteLiteral(@">
                            <tr>
                                <td>
                                    <span>Username (Id):</span>
                                </td>
                                <td>
                                    <h4");

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

WriteLiteral(" title=\"Username\"");

WriteLiteral(" data-clipboard>");

            
            #line 26 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                      Write(Model.User.UserId);

            
            #line default
            #line hidden
WriteLiteral("</h4>\r\n                                </td>\r\n                            </tr>\r\n" +
"                            <tr>\r\n                                <td>Display Na" +
"me:</td>\r\n                                <td><span");

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

WriteLiteral(" title=\"Display Name\"");

WriteLiteral(" data-clipboard>");

            
            #line 31 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                     Write(Model.User.DisplayName);

            
            #line default
            #line hidden
WriteLiteral("</span></td>\r\n                            </tr>\r\n                            <tr>" +
"\r\n                                <td>Given Name:</td>\r\n                        " +
"        <td><span");

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

WriteLiteral(" title=\"Given Name\"");

WriteLiteral(" data-clipboard>");

            
            #line 35 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                 Write(Model.User.GivenName);

            
            #line default
            #line hidden
WriteLiteral("</span></td>\r\n                            </tr>\r\n                            <tr>" +
"\r\n                                <td>Surname:</td>\r\n                           " +
"     <td><span");

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

WriteLiteral(" title=\"Surname\"");

WriteLiteral(" data-clipboard>");

            
            #line 39 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                            Write(Model.User.Surname);

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

            
            #line 43 "..\..\Views\User\UserParts\_Subject.cshtml"
                    
            
            #line default
            #line hidden
            
            #line 43 "..\..\Views\User\UserParts\_Subject.cshtml"
                     if (Authorization.Has(Claims.User.ShowDetails))
                    {

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

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

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

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

WriteLiteral(" class=\"none verticalHeadings\"");

WriteLiteral(">\r\n                                <tr>\r\n                                    <td>" +
"Email:</td>\r\n                                    <td>\r\n");

            
            #line 50 "..\..\Views\User\UserParts\_Subject.cshtml"
                                        
            
            #line default
            #line hidden
            
            #line 50 "..\..\Views\User\UserParts\_Subject.cshtml"
                                         if (!string.IsNullOrEmpty(Model.User.EmailAddress))
                                        {

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

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

WriteLiteral(" title=\"Email Address [Update in Active Directory]\"");

WriteLiteral("><a");

WriteAttribute("href", Tuple.Create(" href=\"", 2868), Tuple.Create("\"", 2906)
, Tuple.Create(Tuple.Create("", 2875), Tuple.Create("mailto:", 2875), true)
            
            #line 52 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                             , Tuple.Create(Tuple.Create("", 2882), Tuple.Create<System.Object, System.Int32>(Model.User.EmailAddress
            
            #line default
            #line hidden
, 2882), false)
);

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

            
            #line 52 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                                                                                                  Write(Model.User.DisplayName);

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

            
            #line 52 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                                                                                                                              Write(Model.User.EmailAddress);

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

WriteLiteral(">");

            
            #line 52 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                                                                                                                                                            Write(Model.User.EmailAddress);

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

            
            #line 53 "..\..\Views\User\UserParts\_Subject.cshtml"
                                        }
                                        else
                                        {

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

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

WriteLiteral(">Unknown</span>\r\n");

            
            #line 57 "..\..\Views\User\UserParts\_Subject.cshtml"
                                        }

            
            #line default
            #line hidden
WriteLiteral("                                    </td>\r\n                                </tr>\r" +
"\n                                <tr>\r\n                                    <td>P" +
"hone:</td>\r\n                                    <td>\r\n");

            
            #line 63 "..\..\Views\User\UserParts\_Subject.cshtml"
                                        
            
            #line default
            #line hidden
            
            #line 63 "..\..\Views\User\UserParts\_Subject.cshtml"
                                         if (!string.IsNullOrEmpty(Model.User.PhoneNumber))
                                        {

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

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

WriteLiteral(" title=\"Phone Number [Update in Active Directory]\"");

WriteLiteral("><a");

WriteAttribute("href", Tuple.Create(" href=\"", 3774), Tuple.Create("\"", 3808)
, Tuple.Create(Tuple.Create("", 3781), Tuple.Create("tel:", 3781), true)
            
            #line 65 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                         , Tuple.Create(Tuple.Create("", 3785), Tuple.Create<System.Object, System.Int32>(Model.User.PhoneNumber
            
            #line default
            #line hidden
, 3785), false)
);

WriteLiteral(" data-clipboard>");

            
            #line 65 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                                                                                            Write(Model.User.PhoneNumber);

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

            
            #line 66 "..\..\Views\User\UserParts\_Subject.cshtml"
                                        }
                                        else
                                        {

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

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

WriteLiteral(">Unknown</span>\r\n");

            
            #line 70 "..\..\Views\User\UserParts\_Subject.cshtml"
                                        }

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

            
            #line 75 "..\..\Views\User\UserParts\_Subject.cshtml"
                    }

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

            
            #line 76 "..\..\Views\User\UserParts\_Subject.cshtml"
                     if (Model.UserDetails != null && Model.UserDetails.Count(d => !d.Key.EndsWith("&")) > 0)
                    {

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

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

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

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

WriteLiteral(" class=\"none verticalHeadings\"");

WriteLiteral(">\r\n");

            
            #line 80 "..\..\Views\User\UserParts\_Subject.cshtml"
                                
            
            #line default
            #line hidden
            
            #line 80 "..\..\Views\User\UserParts\_Subject.cshtml"
                                 foreach (var detail in Model.UserDetails.Where(d => !d.Key.EndsWith("&")))
                                {

            
            #line default
            #line hidden
WriteLiteral("                                    <tr>\r\n                                       " +
" <td>");

            
            #line 83 "..\..\Views\User\UserParts\_Subject.cshtml"
                                       Write(detail.Key.TrimEnd('*'));

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

            
            #line 85 "..\..\Views\User\UserParts\_Subject.cshtml"
                                            
            
            #line default
            #line hidden
            
            #line 85 "..\..\Views\User\UserParts\_Subject.cshtml"
                                             if (detail.Key.EndsWith("*"))
                                            {

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

WriteLiteral(" href=\"\"");

WriteLiteral(" class=\"reveal smallMessage\"");

WriteLiteral(">[reveal]</a>\r\n");

WriteLiteral("                                                <span");

WriteLiteral(" class=\"reveal hidden\"");

WriteLiteral(">");

            
            #line 88 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                       Write(Html.Partial(MVC.Shared.Views._CustomDetailValueRender, detail));

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

            
            #line 89 "..\..\Views\User\UserParts\_Subject.cshtml"
                                            }
                                            else
                                            {
                                                
            
            #line default
            #line hidden
            
            #line 92 "..\..\Views\User\UserParts\_Subject.cshtml"
                                           Write(Html.Partial(MVC.Shared.Views._CustomDetailValueRender, detail));

            
            #line default
            #line hidden
            
            #line 92 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                
                                            }

            
            #line default
            #line hidden
WriteLiteral("                                        </td>\r\n                                  " +
"  </tr>\r\n");

            
            #line 96 "..\..\Views\User\UserParts\_Subject.cshtml"
                                }

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

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

WriteLiteral(@">
                                $(() => {
                                    $('#User_Show_CustomDetails').on('click', 'a.reveal', e => {
                                        e.preventDefault();
                                        const t = $(e.currentTarget);
                                        t.next('span.reveal').removeClass('hidden');
                                        t.remove();
                                        return false;
                                    })
                                });
                            </script>
                        </div>
");

            
            #line 110 "..\..\Views\User\UserParts\_Subject.cshtml"
                    }

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

            
            #line 111 "..\..\Views\User\UserParts\_Subject.cshtml"
                     if (Authorization.Has(Claims.User.Actions.GenerateDocuments))
                    {

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

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

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

WriteLiteral(">\r\n");

WriteLiteral("                            ");

            
            #line 114 "..\..\Views\User\UserParts\_Subject.cshtml"
                       Write(Html.Partial(MVC.Shared.Views._GenerateDocumentControl, Model.GenerateDocumentControlModel));

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

            
            #line 116 "..\..\Views\User\UserParts\_Subject.cshtml"
                    }

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

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

WriteLiteral(">\r\n");

            
            #line 118 "..\..\Views\User\UserParts\_Subject.cshtml"
                        
            
            #line default
            #line hidden
            
            #line 118 "..\..\Views\User\UserParts\_Subject.cshtml"
                         if (Model.User.CanCreateJob())
                        {
                            Html.BundleDeferred("~/ClientScripts/Modules/Disco-CreateJob");
                            
            
            #line default
            #line hidden
            
            #line 121 "..\..\Views\User\UserParts\_Subject.cshtml"
                       Write(Html.ActionLinkSmallButton("Create Job", MVC.Job.Create(Model.PrimaryDeviceSerialNumber, Model.User.UserId), "User_Show_Details_Actions_CreateJob_Button"));

            
            #line default
            #line hidden
            
            #line 121 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                                                                                       
                            if (currentDeviceAssignments.Count > 1)
                            {

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

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

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

WriteLiteral(" title=\"Create Job for Which Device?\"");

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

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

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

WriteLiteral(" class=\"fa fa-info-circle information\"");

WriteLiteral(@"></i>&nbsp;Multiple devices are assigned to this user.
                                        <br />
                                        <strong>
                                            Which device should be associated with this job?
                                        </strong>
                                    </div>
                                    <div>
                                        <ul");

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

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

WriteLiteral(">\r\n");

            
            #line 134 "..\..\Views\User\UserParts\_Subject.cshtml"
                                            
            
            #line default
            #line hidden
            
            #line 134 "..\..\Views\User\UserParts\_Subject.cshtml"
                                             foreach (var assignment in currentDeviceAssignments)
                                            {

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

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

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

            
            #line 136 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                        Write(Url.Action(MVC.Job.Create(assignment.DeviceSerialNumber, Model.User.UserId)));

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

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

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

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

WriteLiteral(" rowspan=\"5\"");

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

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

WriteLiteral(" alt=\"Model Image\"");

WriteAttribute("src", Tuple.Create(" src=\"", 8822), Tuple.Create("\"", 8943)
            
            #line 141 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                   , Tuple.Create(Tuple.Create("", 8828), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.DeviceModel.Image(assignment.Device.DeviceModel.Id, assignment.Device.DeviceModel.ImageHash()))
            
            #line default
            #line hidden
, 8828), false)
);

WriteLiteral(@" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    Serial Number:
                                                                </td>
                                                                <td>
                                                                    <span>");

            
            #line 149 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                     Write(assignment.Device.SerialNumber);

            
            #line default
            #line hidden
WriteLiteral("</span> (<span>");

            
            #line 149 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                   Write(assignment.Device.ComputerName);

            
            #line default
            #line hidden
WriteLiteral(@"</span>)
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    Model:
                                                                </td>
                                                                <td>
                                                                    <span>");

            
            #line 157 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                     Write(assignment.Device.DeviceModel.ToString());

            
            #line default
            #line hidden
WriteLiteral(@"</span>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Asset:</td>
                                                                <td>
");

            
            #line 163 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                    
            
            #line default
            #line hidden
            
            #line 163 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                     if (!string.IsNullOrEmpty(assignment.Device.AssetNumber))
                                                                    {

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

            
            #line 165 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                         Write(assignment.Device.AssetNumber);

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

            
            #line 166 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                    }
                                                                    else
                                                                    {

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

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

WriteLiteral(">Unknown</span>\r\n");

            
            #line 170 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                    }

            
            #line default
            #line hidden
WriteLiteral(@"                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Assigned:</td>
                                                                <td>
                                                                    <span>");

            
            #line 176 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                     Write(CommonHelpers.FriendlyDate(assignment.AssignedDate));

            
            #line default
            #line hidden
WriteLiteral(@"</span>
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </li>
");

            
            #line 182 "..\..\Views\User\UserParts\_Subject.cshtml"
                                            }

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

WriteLiteral("                                <script>\r\n                                    $(f" +
"unction () {\r\n                                        var button = $(\'#User_Show" +
"_Details_Actions_CreateJob_Button\');\r\n                                        va" +
"r buttonDialog = null;\r\n\r\n                                        button.click(f" +
"unction () {\r\n                                            if (!buttonDialog) {\r\n" +
"                                                buttonDialog = $(\'#User_Show_Det" +
"ails_Actions_CreateJob_Dialog\').dialog({\r\n                                      " +
"              resizable: false,\r\n                                               " +
"     width: 400,\r\n                                                    modal: tru" +
"e,\r\n                                                    autoOpen: false,\r\n      " +
"                                              buttons: {\r\n                      " +
"                                  Cancel: function () {\r\n                       " +
"                                     $(this).dialog(\"close\");\r\n                 " +
"                                       }\r\n                                      " +
"              }\r\n                                                });\r\n\r\n        " +
"                                        dialogItems = buttonDialog.find(\'li.Crea" +
"teJob_Assignment\');\r\n\r\n                                                dialogIte" +
"ms.click(function () {\r\n                                                    var " +
"$this = $(this);\r\n\r\n                                                    buttonDi" +
"alog.dialog(\"close\");\r\n\r\n                                                    var" +
" createJobUrl = $this.attr(\'data-createjoburl\');\r\n                              " +
"                      document.DiscoFunctions.CreateOpenJobDialog(createJobUrl);" +
"\r\n                                                });\r\n                         " +
"                   }\r\n\r\n                                            buttonDialog" +
".dialog(\'open\');\r\n                                            return false;\r\n   " +
"                                     });\r\n                                    })" +
";\r\n                                </script>\r\n");

            
            #line 222 "..\..\Views\User\UserParts\_Subject.cshtml"
                            }
                            else
                            {

            
            #line default
            #line hidden
WriteLiteral(@"                                <script>
                                    $(function () {
                                        $('#User_Show_Details_Actions_CreateJob_Button').click(function () {
                                            var $this = $(this);
                                            var href = $this.attr('href');

                                            document.DiscoFunctions.CreateOpenJobDialog(href);

                                            return false;
                                        });
                                    });
                                </script>
");

            
            #line 237 "..\..\Views\User\UserParts\_Subject.cshtml"
                            }
                        }

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

            
            #line 239 "..\..\Views\User\UserParts\_Subject.cshtml"
                         if (Model.User.CanAddUserFlags() && Model.AvailableUserFlags != null && Model.AvailableUserFlags.Count > 0)
                        {
                            
            
            #line default
            #line hidden
            
            #line 241 "..\..\Views\User\UserParts\_Subject.cshtml"
                       Write(Html.ActionLinkSmallButton("Add Flag", MVC.API.UserFlagAssignment.AddUser(), "User_Show_Details_Actions_AddFlag_Button"));

            
            #line default
            #line hidden
            
            #line 241 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                                                     

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

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

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

WriteLiteral(" title=\"Add User Flag\"");

WriteLiteral(">\r\n");

            
            #line 243 "..\..\Views\User\UserParts\_Subject.cshtml"
                                
            
            #line default
            #line hidden
            
            #line 243 "..\..\Views\User\UserParts\_Subject.cshtml"
                                 using (Html.BeginForm(MVC.API.UserFlagAssignment.AddUser()))
                                {

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

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

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

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

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

WriteLiteral("                                    <input");

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

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

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

WriteAttribute("value", Tuple.Create(" value=\"", 16008), Tuple.Create("\"", 16034)
            
            #line 246 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                  , Tuple.Create(Tuple.Create("", 16016), Tuple.Create<System.Object, System.Int32>(Model.User.UserId
            
            #line default
            #line hidden
, 16016), false)
);

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

WriteLiteral("                                    <div");

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

WriteLiteral(">\r\n");

            
            #line 248 "..\..\Views\User\UserParts\_Subject.cshtml"
                                        
            
            #line default
            #line hidden
            
            #line 248 "..\..\Views\User\UserParts\_Subject.cshtml"
                                         foreach (var userFlag in Model.AvailableUserFlags.OrderBy(jq => jq.Name))
                                        {

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

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

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

            
            #line 250 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                           Write(userFlag.Id);

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

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

WriteAttribute("class", Tuple.Create(" class=\"", 16408), Tuple.Create("\"", 16475)
, Tuple.Create(Tuple.Create("", 16416), Tuple.Create("fa", 16416), true)
, Tuple.Create(Tuple.Create(" ", 16418), Tuple.Create("fa-", 16419), true)
            
            #line 251 "..\..\Views\User\UserParts\_Subject.cshtml"
, Tuple.Create(Tuple.Create("", 16422), Tuple.Create<System.Object, System.Int32>(userFlag.Icon
            
            #line default
            #line hidden
, 16422), false)
, Tuple.Create(Tuple.Create(" ", 16438), Tuple.Create("fa-fw", 16439), true)
, Tuple.Create(Tuple.Create(" ", 16444), Tuple.Create("fa-lg", 16445), true)
, Tuple.Create(Tuple.Create(" ", 16450), Tuple.Create("d-", 16451), true)
            
            #line 251 "..\..\Views\User\UserParts\_Subject.cshtml"
               , Tuple.Create(Tuple.Create("", 16453), Tuple.Create<System.Object, System.Int32>(userFlag.IconColour
            
            #line default
            #line hidden
, 16453), false)
);

WriteLiteral("></i>");

            
            #line 251 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                      Write(userFlag.Name);

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

            
            #line 253 "..\..\Views\User\UserParts\_Subject.cshtml"
                                        }

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

WriteLiteral("                                    <div");

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

WriteLiteral(">\r\n                                        <div>\r\n                               " +
"             <h4>Comments</h4>\r\n                                            <tex" +
"tarea");

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

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

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

            
            #line 261 "..\..\Views\User\UserParts\_Subject.cshtml"
                                }

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

WriteLiteral("                            <script");

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

WriteLiteral(">\r\n                                $(function () {\r\n                             " +
"       var button = $(\'#User_Show_Details_Actions_AddFlag_Button\');\r\n           " +
"                         var buttonDialog = null;\r\n                             " +
"       var buttonLink = button.attr(\'href\');\r\n\r\n                                " +
"    var flagPicker = null;\r\n                                    var flagAddId = " +
"null;\r\n                                    var flagAddComments = null;\r\n        " +
"                            var details = null;\r\n\r\n                             " +
"       function flagSelected() {\r\n                                        var fl" +
"ag = $(this);\r\n\r\n                                        flagPicker.children().r" +
"emoveClass(\'selected\');\r\n                                        flag.addClass(\'" +
"selected\');\r\n\r\n                                        flagAddId.val(flag.attr(\'" +
"data-userflagid\'));\r\n\r\n                                        details.show();\r\n" +
"\r\n                                        flagAddComments.focus().select();\r\n   " +
"                                 }\r\n\r\n                                    button" +
".attr(\'href\', \'#\').click(function (e) {\r\n                                       " +
" e.preventDefault();\r\n\r\n                                        if (!buttonDialo" +
"g) {\r\n                                            buttonDialog = $(\'#User_Show_D" +
"etails_Actions_AddFlag_Dialog\');\r\n                                            bu" +
"ttonDialog.dialog({\r\n                                                width: 600," +
"\r\n                                                height: 410,\r\n                " +
"                                resizable: false,\r\n                             " +
"                   modal: true,\r\n                                               " +
" autoOpen: false,\r\n                                                buttons: {\r\n " +
"                                                   Cancel: function () {\r\n      " +
"                                                  $(this).dialog(\"close\");\r\n    " +
"                                                },\r\n                            " +
"                        \"Add Flag\": function () {\r\n                             " +
"                           if (!!flagAddId.val()) {\r\n                           " +
"                                 var $this = $(this);\r\n                         " +
"                                   $this.dialog(\"disable\");\r\n                   " +
"                                         $this.dialog(\"option\", \"buttons\", null)" +
";\r\n                                                            buttonDialog.find" +
"(\'form\').submit();\r\n                                                        } el" +
"se {\r\n                                                            alert(\'Select " +
"a User Flag\');\r\n                                                        }\r\n     " +
"                                               }\r\n                              " +
"                  }\r\n                                            });\r\n\r\n        " +
"                                    flagAddId = $(\'#User_Show_Details_Actions_Ad" +
"dFlag_Dialog_Id\');\r\n                                            flagAddComments " +
"= buttonDialog.find(\'#User_Show_Details_Actions_AddFlag_Dialog_Comments\');\r\n    " +
"                                        flagPicker = buttonDialog.find(\'.flagPic" +
"ker\');\r\n                                            details = buttonDialog.find(" +
"\'.details\');\r\n\r\n                                            flagPicker.on(\'click" +
"\', \'div.flag\', flagSelected);\r\n                                        }\r\n\r\n    " +
"                                    buttonDialog.dialog(\'open\');\r\n              " +
"                          return false;\r\n                                    });" +
"\r\n                                });\r\n                            </script>\r\n");

            
            #line 328 "..\..\Views\User\UserParts\_Subject.cshtml"
                        }

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

            
            #line 332 "..\..\Views\User\UserParts\_Subject.cshtml"
            
            
            #line default
            #line hidden
            
            #line 332 "..\..\Views\User\UserParts\_Subject.cshtml"
             if (Authorization.Has(Claims.User.ShowAssignments))
            {

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

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

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

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

WriteLiteral(">\r\n                            <h3>Current Device Assignments</h3>\r\n");

            
            #line 338 "..\..\Views\User\UserParts\_Subject.cshtml"
                            
            
            #line default
            #line hidden
            
            #line 338 "..\..\Views\User\UserParts\_Subject.cshtml"
                             if (currentDeviceAssignments.Count > 0)
                            {
                                foreach (var assignment in currentDeviceAssignments)
                                {

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

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

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

            
            #line 342 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                          Write(assignment.DeviceSerialNumber);

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

WriteLiteral(">\r\n");

            
            #line 343 "..\..\Views\User\UserParts\_Subject.cshtml"
                                        
            
            #line default
            #line hidden
            
            #line 343 "..\..\Views\User\UserParts\_Subject.cshtml"
                                         if (Authorization.Has(Claims.Device.Show))
                                        {

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

WriteAttribute("href", Tuple.Create(" href=\"", 21873), Tuple.Create("\"", 21940)
            
            #line 345 "..\..\Views\User\UserParts\_Subject.cshtml"
, Tuple.Create(Tuple.Create("", 21880), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.Device.Show(assignment.Device.SerialNumber))
            
            #line default
            #line hidden
, 21880), false)
);

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

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

WriteLiteral(" alt=\"Model Image\"");

WriteAttribute("src", Tuple.Create(" src=\"", 22072), Tuple.Create("\"", 22193)
            
            #line 346 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                     , Tuple.Create(Tuple.Create("", 22078), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.DeviceModel.Image(assignment.Device.DeviceModel.Id, assignment.Device.DeviceModel.ImageHash()))
            
            #line default
            #line hidden
, 22078), false)
);

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

            
            #line 348 "..\..\Views\User\UserParts\_Subject.cshtml"
                                        }
                                        else
                                        {

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

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

WriteLiteral(" alt=\"Model Image\"");

WriteAttribute("src", Tuple.Create(" src=\"", 22505), Tuple.Create("\"", 22626)
            
            #line 351 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                 , Tuple.Create(Tuple.Create("", 22511), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.DeviceModel.Image(assignment.Device.DeviceModel.Id, assignment.Device.DeviceModel.ImageHash()))
            
            #line default
            #line hidden
, 22511), false)
);

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

            
            #line 352 "..\..\Views\User\UserParts\_Subject.cshtml"
                                        }

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

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

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

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

WriteLiteral(@">
                                                <tbody>
                                                    <tr>
                                                        <td>
                                                            Serial Number:
                                                        </td>
                                                        <td>
                                                            <span");

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

WriteLiteral(" data-clipboard>\r\n");

            
            #line 362 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                
            
            #line default
            #line hidden
            
            #line 362 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                 if (Authorization.Has(Claims.Device.Show))
                                                                {
                                                                    
            
            #line default
            #line hidden
            
            #line 364 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                               Write(Html.ActionLink(assignment.Device.SerialNumber, MVC.Device.Show(assignment.Device.SerialNumber)));

            
            #line default
            #line hidden
            
            #line 364 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                                                                     
                                                                }
                                                                else
                                                                {
                                                                    
            
            #line default
            #line hidden
            
            #line 368 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                               Write(assignment.Device.SerialNumber);

            
            #line default
            #line hidden
            
            #line 368 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                   
                                                                }

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

            
            #line 371 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                            
            
            #line default
            #line hidden
            
            #line 371 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                             if (!string.IsNullOrWhiteSpace(assignment.Device.ComputerName))
                                                            {

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

WriteLiteral("(<span");

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

WriteLiteral(" data-clipboard>");

            
            #line 373 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                                                        Write(assignment.Device.ComputerName);

            
            #line default
            #line hidden
WriteLiteral("</span>)");

WriteLiteral("\r\n");

            
            #line 374 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                            }

            
            #line default
            #line hidden
WriteLiteral("                                                        </td>\r\n                  " +
"                                  </tr>\r\n");

            
            #line 377 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                    
            
            #line default
            #line hidden
            
            #line 377 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                     if (!string.IsNullOrEmpty(assignment.Device.AssetNumber))
                                                    {

            
            #line default
            #line hidden
WriteLiteral(@"                                                        <tr>
                                                            <td>Asset:</td>
                                                            <td>
                                                                <span");

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

WriteLiteral(" data-clipboard>");

            
            #line 382 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                                          Write(assignment.Device.AssetNumber);

            
            #line default
            #line hidden
WriteLiteral("</span>\r\n                                                            </td>\r\n     " +
"                                                   </tr>\r\n");

            
            #line 385 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                    }

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

            
            #line 386 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                     if (assignment.Device.DeviceModelId.HasValue)
                                                    {

            
            #line default
            #line hidden
WriteLiteral(@"                                                        <tr>
                                                            <td>
                                                                Model:
                                                            </td>
                                                            <td>
                                                                <span");

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

WriteLiteral(">");

            
            #line 393 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                           Write(assignment.Device.DeviceModel.ToString());

            
            #line default
            #line hidden
WriteLiteral("</span>\r\n                                                            </td>\r\n     " +
"                                                   </tr>\r\n");

            
            #line 396 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                    }

            
            #line default
            #line hidden
WriteLiteral(@"                                                    <tr>
                                                        <td>
                                                            Profile:
                                                        </td>
                                                        <td>
                                                            <span");

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

WriteLiteral(">");

            
            #line 402 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                         Write(assignment.Device.DeviceProfile.ToString());

            
            #line default
            #line hidden
WriteLiteral("</span>\r\n                                                        </td>\r\n         " +
"                                           </tr>\r\n");

            
            #line 405 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                    
            
            #line default
            #line hidden
            
            #line 405 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                     if (assignment.Device.DeviceBatchId.HasValue)
                                                    {

            
            #line default
            #line hidden
WriteLiteral(@"                                                        <tr>
                                                            <td>
                                                                Batch:
                                                            </td>
                                                            <td>
                                                                <span");

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

WriteLiteral(">");

            
            #line 412 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                           Write(assignment.Device.DeviceBatch.ToString());

            
            #line default
            #line hidden
WriteLiteral("</span>\r\n                                                            </td>\r\n     " +
"                                                   </tr>\r\n");

            
            #line 415 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                    }

            
            #line default
            #line hidden
WriteLiteral(@"                                                    <tr>
                                                        <td>Assigned:</td>
                                                        <td>
                                                            <span");

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

WriteLiteral(">");

            
            #line 419 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                          Write(CommonHelpers.FriendlyDate(assignment.AssignedDate));

            
            #line default
            #line hidden
WriteLiteral("</span>\r\n                                                        </td>\r\n         " +
"                                           </tr>\r\n");

            
            #line 422 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                    
            
            #line default
            #line hidden
            
            #line 422 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                     if (Authorization.Has(Claims.Device.ShowFlagAssignments) &&
                                                        assignment.Device.DeviceFlagAssignments.Any(a => a.RemovedDate.HasValue))
                                                    {

            
            #line default
            #line hidden
WriteLiteral("                                                        <tr>\r\n                   " +
"                                         <td");

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

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

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

WriteLiteral(">\r\n");

            
            #line 428 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                    
            
            #line default
            #line hidden
            
            #line 428 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                     foreach (var flag in assignment.Device.DeviceFlagAssignments.Where(f => !f.RemovedDate.HasValue).Select(f => Tuple.Create(f, DeviceFlagService.GetDeviceFlag(f.DeviceFlagId))))
                                                                    {

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

WriteAttribute("class", Tuple.Create(" class=\"", 29260), Tuple.Create("\"", 29330)
, Tuple.Create(Tuple.Create("", 29268), Tuple.Create("flag", 29268), true)
, Tuple.Create(Tuple.Create(" ", 29272), Tuple.Create("fa", 29273), true)
, Tuple.Create(Tuple.Create(" ", 29275), Tuple.Create("fa-", 29276), true)
            
            #line 430 "..\..\Views\User\UserParts\_Subject.cshtml"
             , Tuple.Create(Tuple.Create("", 29279), Tuple.Create<System.Object, System.Int32>(flag.Item2.Icon
            
            #line default
            #line hidden
, 29279), false)
, Tuple.Create(Tuple.Create(" ", 29297), Tuple.Create("fa-fw", 29298), true)
, Tuple.Create(Tuple.Create(" ", 29303), Tuple.Create("d-", 29304), true)
            
            #line 430 "..\..\Views\User\UserParts\_Subject.cshtml"
                                        , Tuple.Create(Tuple.Create("", 29306), Tuple.Create<System.Object, System.Int32>(flag.Item2.IconColour
            
            #line default
            #line hidden
, 29306), false)
);

WriteLiteral(">\r\n                                                                            <s" +
"pan");

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

WriteLiteral(">\r\n                                                                              " +
"  <span");

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

WriteLiteral(">");

            
            #line 432 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                              Write(flag.Item2.Name);

            
            #line default
            #line hidden
WriteLiteral("</span>");

            
            #line 432 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                           if (flag.Item1.Comments != null)
                                                                                {
            
            #line default
            #line hidden
WriteLiteral("<span");

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

WriteLiteral(">");

            
            #line 433 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                   Write(flag.Item1.Comments.ToHtmlComment());

            
            #line default
            #line hidden
WriteLiteral("</span>");

            
            #line 433 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                                                   }
            
            #line default
            #line hidden
WriteLiteral("<span");

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

WriteLiteral(">");

            
            #line 433 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                                                                                                                   Write(CommonHelpers.FriendlyDateAndUser(flag.Item1.AddedDate, flag.Item1.AddedUserId));

            
            #line default
            #line hidden
WriteLiteral("</span>\r\n                                                                        " +
"    </span>\r\n                                                                   " +
"     </i>\r\n");

            
            #line 436 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                                    }

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

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

WriteLiteral(">\r\n                                                                        $(func" +
"tion () {\r\n                                                                     " +
"       $(\'.User_Show_Assigned_Devices_CurrentAssignment_Flags\')\r\n               " +
"                                                                 .tooltip({\r\n   " +
"                                                                                " +
" items: \'i.flag\',\r\n                                                             " +
"                       content: function () {\r\n                                 " +
"                                                       var $this = $(this);\r\n   " +
"                                                                                " +
"     return $this.children(\'.details\').html();\r\n                                " +
"                                                    },\r\n                        " +
"                                                            tooltipClass: \'FlagA" +
"ssignment_Tooltip\',\r\n                                                           " +
"                         position: {\r\n                                          " +
"                                              my: \"right top\",\r\n                " +
"                                                                        at: \"rig" +
"ht bottom\",\r\n                                                                   " +
"                     collision: \"flipfit flip\"\r\n                                " +
"                                                    },\r\n                        " +
"                                                            hade: {\r\n           " +
"                                                                             eff" +
"ect: \'\'\r\n                                                                       " +
"             },\r\n                                                               " +
"                     close: function (e, ui) {\r\n                                " +
"                                                        ui.tooltip.hover(\r\n     " +
"                                                                                " +
"       function () {\r\n                                                          " +
"                                      $(this).stop(true).fadeTo(100, 1);\r\n      " +
"                                                                                " +
"      },\r\n                                                                      " +
"                      function () {\r\n                                           " +
"                                                     $(this).fadeOut(100, functi" +
"on () { $(this).remove(); });\r\n                                                 " +
"                                           });\r\n                                " +
"                                                    }\r\n                         " +
"                                                       });\r\n                    " +
"                                                    });\r\n                       " +
"                                             </script>\r\n                        " +
"                                        </div>\r\n                                " +
"                            </td>\r\n                                             " +
"           </tr>\r\n");

            
            #line 470 "..\..\Views\User\UserParts\_Subject.cshtml"
                                                    }

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

            
            #line 475 "..\..\Views\User\UserParts\_Subject.cshtml"
                                }
                            }
                            else
                            {

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

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

WriteLiteral(">No Current Device Assignments</span>\r\n");

            
            #line 480 "..\..\Views\User\UserParts\_Subject.cshtml"
                            }

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

            
            #line 484 "..\..\Views\User\UserParts\_Subject.cshtml"
            }

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

        }
    }
}
#pragma warning restore 1591
