#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.Device
{
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using System.Net;
    using System.Text;
    using System.Web;
    using System.Web.Helpers;
    using System.Web.Mvc;
    using System.Web.Mvc.Ajax;
    using System.Web.Mvc.Html;
    using System.Web.Routing;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.WebPages;
    using Disco;
    using Disco.Models.Repository;
    using Disco.Services;
    using Disco.Services.Authorization;
    using Disco.Services.Web;
    using Disco.Web;
    using Disco.Web.Extensions;
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
    [System.Web.WebPages.PageVirtualPathAttribute("~/Views/Device/Index.cshtml")]
    public partial class Index : Disco.Services.Web.WebViewPage<dynamic>
    {
        public Index()
        {
        }
        public override void Execute()
        {
            
            #line 1 "..\..\Views\Device\Index.cshtml"
  
    ViewBag.Title = "Devices";

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

            
            #line 4 "..\..\Views\Device\Index.cshtml"
 if (Authorization.Has(Claims.Device.Search))
{

            
            #line default
            #line hidden
WriteLiteral("    <h3>Search for a Device</h3>\r\n");

            
            #line 7 "..\..\Views\Device\Index.cshtml"
    
            
            #line default
            #line hidden
            
            #line 7 "..\..\Views\Device\Index.cshtml"
Write(Html.Partial(MVC.Shared.Views._SearchDialog, "devices"));

            
            #line default
            #line hidden
            
            #line 7 "..\..\Views\Device\Index.cshtml"
                                                            
}

            
            #line default
            #line hidden
            
            #line 9 "..\..\Views\Device\Index.cshtml"
 if (Authorization.HasAny(Claims.Device.Actions.Import, Claims.Device.Actions.Export, Claims.Device.Actions.EnrolDevices))
{

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

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

WriteLiteral(">\r\n");

            
            #line 12 "..\..\Views\Device\Index.cshtml"
        
            
            #line default
            #line hidden
            
            #line 12 "..\..\Views\Device\Index.cshtml"
         if (Authorization.Has(Claims.Device.Actions.Import))
        {
            
            
            #line default
            #line hidden
            
            #line 14 "..\..\Views\Device\Index.cshtml"
       Write(Html.ActionLinkButton("Import Devices", MVC.Device.Import()));

            
            #line default
            #line hidden
            
            #line 14 "..\..\Views\Device\Index.cshtml"
                                                                         
        }

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

            
            #line 16 "..\..\Views\Device\Index.cshtml"
         if (Authorization.Has(Claims.Device.Actions.Export))
        {
            
            
            #line default
            #line hidden
            
            #line 18 "..\..\Views\Device\Index.cshtml"
       Write(Html.ActionLinkButton("Export Devices", MVC.Device.Export()));

            
            #line default
            #line hidden
            
            #line 18 "..\..\Views\Device\Index.cshtml"
                                                                         
        }

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

            
            #line 20 "..\..\Views\Device\Index.cshtml"
         if (Authorization.Has(Claims.Device.Actions.EnrolDevices))
        {
            
            
            #line default
            #line hidden
            
            #line 22 "..\..\Views\Device\Index.cshtml"
       Write(Html.ActionLinkButton("Add Offline Device", MVC.Device.AddOffline()));

            
            #line default
            #line hidden
            
            #line 22 "..\..\Views\Device\Index.cshtml"
                                                                                 
        }

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

            
            #line 25 "..\..\Views\Device\Index.cshtml"
}
            
            #line default
            #line hidden
        }
    }
}
#pragma warning restore 1591
