@using Disco.Web.Areas.Config.Models.DeviceFlag;
@model ExportModel
@{
Authorization.RequireAny(Claims.Config.DeviceFlag.Export);
ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "Device Flags", MVC.Config.DeviceFlag.Index(null), "Export");
var optionsMetadata = ModelMetadata.FromLambdaExpression(m => m.Options, ViewData);
var optionGroups = optionsMetadata.Properties.Where(p => p.ShortDisplayName != null && p.ModelType == typeof(bool) && p.PropertyName != "CurrentOnly")
.GroupBy(m => m.ShortDisplayName);
}
@using (Html.BeginForm(MVC.API.DeviceFlag.Export()))
{
}
@if (Model.ExportSessionId != null)
{
@if (Model.ExportSessionResult.RecordCount == 0)
{
No records matched the filter criteria
}
else
{
@Model.ExportSessionResult.RecordCount record@(Model.ExportSessionResult.RecordCount != 1 ? "s" : null) were successfully exported.
Download Device Flag Export
}
}
Exporting device flags...