@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(), FormMethod.Post, new { @data_saveaction = Url.Action(MVC.API.DeviceFlag.SaveExport()) }))
{
@Html.AntiForgeryToken()
}
@if (Model.ExportId.HasValue)
{
@if (Model.ExportResult.RecordCount == 0)
{
No records matched the filter criteria
}
else
{
@Model.ExportResult.RecordCount record@(Model.ExportResult.RecordCount != 1 ? "s" : null) were successfully exported.
Download Device Flag Export
}
}
Exporting device flags...
@if (Authorization.Has(Claims.Config.ManageSavedExports))
{
Save Export
}
else
{
Save Export
}
Export Now