@using Disco.Web.Areas.Config.Models.UserFlag; @model ExportModel @{ Authorization.RequireAny(Claims.Config.UserFlag.Export); ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "User Flags", MVC.Config.UserFlag.Index(null), "Export"); }
@using (Html.BeginForm(MVC.API.UserFlag.Export(), FormMethod.Post, new { @data_saveaction = Url.Action(MVC.API.UserFlag.SaveExport()) })) { @Html.AntiForgeryToken()

Export Scope

User Flags: @foreach (var userFlag in Model.UserFlags) {
}
@Html.LabelFor(m => m.Options.CurrentOnly) @Html.CheckBoxFor(m => m.Options.CurrentOnly)

Uncheck to include all historical user flag assignments.

@Html.LabelFor(m => m.Options.Format) @Html.DropDownListFor(m => m.Options.Format, Enum.GetNames(typeof(Disco.Models.Exporting.ExportFormat)).Select(v => new SelectListItem() { Value = v, Text = v }))
@Html.Partial(MVC.Shared.Views._ExportFields, Model.Fields.FieldGroups) }
@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 User Flag Export }
}

Exporting user flags...

@if (Authorization.Has(Claims.Config.ManageSavedExports)) { } else { }