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

Export Scope

Documents: @{ var index = 0; foreach (var document in Model.DocumentTemplates) { index++; } }
@document.Scope
@Html.LabelFor(m => m.Options.LatestOnly) @Html.CheckBoxFor(m => m.Options.LatestOnly)

Uncheck to include all document instances.

@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 Document Instance Export }
}

Exporting document instances...

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