> DeviceModels { get; set; }
diff --git a/Disco.Web/Views/Device/Export.cshtml b/Disco.Web/Views/Device/Export.cshtml
index 4567d96c..5723121f 100644
--- a/Disco.Web/Views/Device/Export.cshtml
+++ b/Disco.Web/Views/Device/Export.cshtml
@@ -11,24 +11,6 @@
.GroupBy(m => m.ShortDisplayName);
}
- @if (!string.IsNullOrEmpty(Model.DownloadExportSessionId))
- {
-
-
- }
@using (Html.BeginForm(MVC.API.Device.Export()))
{
@@ -99,10 +81,12 @@
-
-
-
}
+@if (Model.ExportSessionId != null)
+{
+
+
@Model.ExportSessionResult.RecordCount record@(Model.ExportSessionResult.RecordCount != 1 ? "s" : null) were successfully exported.
+
Download Device Export
+
+
+}
+
+
Device Exporting devices...
+
+
diff --git a/Disco.Web/Views/Device/Export.generated.cs b/Disco.Web/Views/Device/Export.generated.cs
index 7accccf3..115151bf 100644
--- a/Disco.Web/Views/Device/Export.generated.cs
+++ b/Disco.Web/Views/Device/Export.generated.cs
@@ -84,65 +84,6 @@ WriteLiteral(">\r\n");
#line hidden
#line 14 "..\..\Views\Device\Export.cshtml"
- if (!string.IsNullOrEmpty(Model.DownloadExportSessionId))
- {
-
-
- #line default
- #line hidden
-WriteLiteral(" \r\n");
-
-WriteLiteral(@"
-");
-
-
- #line 31 "..\..\Views\Device\Export.cshtml"
- }
-
-
- #line default
- #line hidden
-WriteLiteral(" ");
-
-
- #line 32 "..\..\Views\Device\Export.cshtml"
using (Html.BeginForm(MVC.API.Device.Export()))
{
@@ -167,7 +108,7 @@ WriteLiteral(">Type:\r\n \r\n \r\
WriteLiteral(" ");
- #line 41 "..\..\Views\Device\Export.cshtml"
+ #line 23 "..\..\Views\Device\Export.cshtml"
Write(Html.DropDownListFor(m => m.Options.ExportType, Enum.GetNames(typeof(Disco.Models.Services.Devices.Exporting.DeviceExportTypes)).Select(t => new SelectListItem() { Text = t, Value = t })));
@@ -184,7 +125,7 @@ WriteLiteral(">\r\n");
WriteLiteral(" ");
- #line 43 "..\..\Views\Device\Export.cshtml"
+ #line 25 "..\..\Views\Device\Export.cshtml"
Write(Html.DropDownListFor(m => m.Options.ExportTypeTargetId, Model.DeviceBatches.Select(i => new SelectListItem() { Value = i.Key.ToString(), Text = i.Value })));
@@ -201,7 +142,7 @@ WriteLiteral(">\r\n");
WriteLiteral(" ");
- #line 46 "..\..\Views\Device\Export.cshtml"
+ #line 28 "..\..\Views\Device\Export.cshtml"
Write(Html.DropDownListFor(m => m.Options.ExportTypeTargetId, Model.DeviceModels.Select(i => new SelectListItem() { Value = i.Key.ToString(), Text = i.Value })));
@@ -218,7 +159,7 @@ WriteLiteral(">\r\n");
WriteLiteral(" ");
- #line 49 "..\..\Views\Device\Export.cshtml"
+ #line 31 "..\..\Views\Device\Export.cshtml"
Write(Html.DropDownListFor(m => m.Options.ExportTypeTargetId, Model.DeviceProfiles.Select(i => new SelectListItem() { Value = i.Key.ToString(), Text = i.Value })));
@@ -244,13 +185,13 @@ WriteLiteral(" href=\"#\"");
WriteLiteral(">(Defaults)\r\n \r\n");
- #line 58 "..\..\Views\Device\Export.cshtml"
+ #line 40 "..\..\Views\Device\Export.cshtml"
#line default
#line hidden
- #line 58 "..\..\Views\Device\Export.cshtml"
+ #line 40 "..\..\Views\Device\Export.cshtml"
foreach (var optionGroup in optionGroups)
{
var optionFields = optionGroup.ToList();
@@ -268,7 +209,7 @@ WriteLiteral(">\r\n");
WriteLiteral(" ");
- #line 64 "..\..\Views\Device\Export.cshtml"
+ #line 46 "..\..\Views\Device\Export.cshtml"
Write(optionGroup.Key);
@@ -277,13 +218,13 @@ WriteLiteral(" ");
WriteLiteral("\r\n");
- #line 65 "..\..\Views\Device\Export.cshtml"
+ #line 47 "..\..\Views\Device\Export.cshtml"
#line default
#line hidden
- #line 65 "..\..\Views\Device\Export.cshtml"
+ #line 47 "..\..\Views\Device\Export.cshtml"
if (optionFields.Count > 2)
{
@@ -311,7 +252,7 @@ WriteLiteral(" href=\"#\"");
WriteLiteral(">NONE\r\n");
- #line 68 "..\..\Views\Device\Export.cshtml"
+ #line 50 "..\..\Views\Device\Export.cshtml"
}
@@ -338,13 +279,13 @@ WriteLiteral(" class=\"none\"");
WriteLiteral(">\r\n");
- #line 76 "..\..\Views\Device\Export.cshtml"
+ #line 58 "..\..\Views\Device\Export.cshtml"
#line default
#line hidden
- #line 76 "..\..\Views\Device\Export.cshtml"
+ #line 58 "..\..\Views\Device\Export.cshtml"
foreach (var optionItem in optionFields.Take(itemsPerColumn))
{
@@ -353,40 +294,40 @@ WriteLiteral(">\r\n");
#line hidden
WriteLiteral(" (optionItem.Description
+ #line 60 "..\..\Views\Device\Export.cshtml"
+, Tuple.Create(Tuple.Create("", 3561), Tuple.Create(optionItem.Description
#line default
#line hidden
-, 4338), false)
+, 3561), false)
);
WriteLiteral(">\r\n (optionItem.PropertyName
+ #line 61 "..\..\Views\Device\Export.cshtml"
+ , Tuple.Create(Tuple.Create("", 3679), Tuple.Create(optionItem.PropertyName
#line default
#line hidden
-, 4456), false)
+, 3679), false)
);
-WriteAttribute("name", Tuple.Create(" name=\"", 4481), Tuple.Create("\"", 4520)
-, Tuple.Create(Tuple.Create("", 4488), Tuple.Create("Options.", 4488), true)
+WriteAttribute("name", Tuple.Create(" name=\"", 3704), Tuple.Create("\"", 3743)
+, Tuple.Create(Tuple.Create("", 3711), Tuple.Create("Options.", 3711), true)
- #line 79 "..\..\Views\Device\Export.cshtml"
- , Tuple.Create(Tuple.Create("", 4496), Tuple.Create(optionItem.PropertyName
+ #line 61 "..\..\Views\Device\Export.cshtml"
+ , Tuple.Create(Tuple.Create("", 3719), Tuple.Create(optionItem.PropertyName
#line default
#line hidden
-, 4496), false)
+, 3719), false)
);
WriteLiteral(" value=\"true\"");
@@ -394,7 +335,7 @@ WriteLiteral(" value=\"true\"");
WriteLiteral(" ");
- #line 79 "..\..\Views\Device\Export.cshtml"
+ #line 61 "..\..\Views\Device\Export.cshtml"
Write(((bool)optionItem.Model) ? "checked " : null);
@@ -402,21 +343,21 @@ WriteLiteral(" ");
#line hidden
WriteLiteral("/>\r\n");
- #line 80 "..\..\Views\Device\Export.cshtml"
+ #line 62 "..\..\Views\Device\Export.cshtml"
}
@@ -443,13 +384,13 @@ WriteLiteral(" class=\"none\"");
WriteLiteral(">\r\n");
- #line 85 "..\..\Views\Device\Export.cshtml"
+ #line 67 "..\..\Views\Device\Export.cshtml"
#line default
#line hidden
- #line 85 "..\..\Views\Device\Export.cshtml"
+ #line 67 "..\..\Views\Device\Export.cshtml"
foreach (var optionItem in optionFields.Skip(itemsPerColumn))
{
@@ -458,40 +399,40 @@ WriteLiteral(">\r\n");
#line hidden
WriteLiteral(" (optionItem.Description
+ #line 69 "..\..\Views\Device\Export.cshtml"
+, Tuple.Create(Tuple.Create("", 4394), Tuple.Create(optionItem.Description
#line default
#line hidden
-, 5171), false)
+, 4394), false)
);
WriteLiteral(">\r\n (optionItem.PropertyName
+ #line 70 "..\..\Views\Device\Export.cshtml"
+ , Tuple.Create(Tuple.Create("", 4512), Tuple.Create(optionItem.PropertyName
#line default
#line hidden
-, 5289), false)
+, 4512), false)
);
-WriteAttribute("name", Tuple.Create(" name=\"", 5314), Tuple.Create("\"", 5353)
-, Tuple.Create(Tuple.Create("", 5321), Tuple.Create("Options.", 5321), true)
+WriteAttribute("name", Tuple.Create(" name=\"", 4537), Tuple.Create("\"", 4576)
+, Tuple.Create(Tuple.Create("", 4544), Tuple.Create("Options.", 4544), true)
- #line 88 "..\..\Views\Device\Export.cshtml"
- , Tuple.Create(Tuple.Create("", 5329), Tuple.Create(optionItem.PropertyName
+ #line 70 "..\..\Views\Device\Export.cshtml"
+ , Tuple.Create(Tuple.Create("", 4552), Tuple.Create(optionItem.PropertyName
#line default
#line hidden
-, 5329), false)
+, 4552), false)
);
WriteLiteral(" value=\"true\"");
@@ -499,7 +440,7 @@ WriteLiteral(" value=\"true\"");
WriteLiteral(" ");
- #line 88 "..\..\Views\Device\Export.cshtml"
+ #line 70 "..\..\Views\Device\Export.cshtml"
Write(((bool)optionItem.Model) ? "checked " : null);
@@ -507,21 +448,21 @@ WriteLiteral(" ");
#line hidden
WriteLiteral("/>\r\n");
- #line 89 "..\..\Views\Device\Export.cshtml"
+ #line 71 "..\..\Views\Device\Export.cshtml"
}
@@ -546,7 +487,7 @@ WriteLiteral(@"
");
- #line 97 "..\..\Views\Device\Export.cshtml"
+ #line 79 "..\..\Views\Device\Export.cshtml"
}
@@ -554,50 +495,55 @@ WriteLiteral(@"
#line hidden
WriteLiteral(" \r\n \r\n");
-WriteLiteral(" \r\n");
-
-WriteLiteral(" \r\n \r\n \r\n");
+WriteLiteral("
+");
+
+
+ #line 185 "..\..\Views\Device\Export.cshtml"
+}
+
+
+ #line default
+ #line hidden
+WriteLiteral("\r\n Device Exporting devices...\r\n\r\n\r\n");
+
}
}
}
|