@{
    ViewBag.Title = "Devices";
}
@if (Authorization.Has(Claims.Device.Search))
{
    <h3>Search for a Device</h3>
    @Html.Partial(MVC.Shared.Views._SearchDialog, "devices")
}
@if (Authorization.HasAny(Claims.Device.Actions.Import, Claims.Device.Actions.Export, Claims.Device.Actions.EnrolDevices))
{
    <div class="actionBar">
        @if (Authorization.Has(Claims.Device.Actions.Import))
        {
            @Html.ActionLinkButton("Import Devices", MVC.Device.Import())
        }
        @if (Authorization.Has(Claims.Device.Actions.Export))
        {
            @Html.ActionLinkButton("Export Devices", MVC.Device.Export())
        }
        @if (Authorization.Has(Claims.Device.Actions.EnrolDevices))
        {
            @Html.ActionLinkButton("Add Offline Device", MVC.Device.AddOffline())
        }
    </div>
}