feature: saved exports; include jobs and flags
This commit is contained in:
@@ -80,8 +80,8 @@ namespace Disco.Services.Devices.DeviceFlags
|
||||
}
|
||||
|
||||
status.UpdateStatus(15, "Extracting records from the database");
|
||||
|
||||
var records = query.Select(a => new DeviceFlagExportRecord()
|
||||
var assignments = query.ToList();
|
||||
var records = assignments.Select(a => new DeviceFlagExportRecord()
|
||||
{
|
||||
Assignment = a
|
||||
}).ToList();
|
||||
|
||||
@@ -68,8 +68,8 @@ namespace Disco.Services.Users.UserFlags
|
||||
}
|
||||
|
||||
status.UpdateStatus(15, "Extracting records from the database");
|
||||
|
||||
var records = query.Select(a => new UserFlagExportRecord()
|
||||
var assignments = query.ToList();
|
||||
var records = assignments.Select(a => new UserFlagExportRecord()
|
||||
{
|
||||
Assignment = a
|
||||
}).ToList();
|
||||
|
||||
@@ -706,6 +706,7 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
else
|
||||
return RedirectToAction(MVC.Config.Logging.TaskStatus(taskContext.TaskStatus.SessionId));
|
||||
}
|
||||
|
||||
[DiscoAuthorize(Claims.Device.Actions.Export)]
|
||||
public virtual ActionResult ExportRetrieve(Guid id)
|
||||
{
|
||||
@@ -725,6 +726,7 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
|
||||
return this.File(fileStream.GetBuffer(), 0, (int)fileStream.Length, context.Result.MimeType, context.Result.Filename);
|
||||
}
|
||||
|
||||
[DiscoAuthorizeAll(Claims.Config.ManageSavedExports, Claims.Device.Actions.Export)]
|
||||
[HttpPost, ValidateAntiForgeryToken]
|
||||
public virtual ActionResult SaveExport(ExportModel Model)
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Disco.Models.Repository;
|
||||
using Disco.Models.Services.Devices.DeviceFlag;
|
||||
using Disco.Services;
|
||||
using Disco.Services.Authorization;
|
||||
using Disco.Services.Devices.DeviceFlags;
|
||||
@@ -11,8 +10,6 @@ using Disco.Web.Areas.Config.Models.DeviceFlag;
|
||||
using Disco.Web.Extensions;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Caching;
|
||||
using System.Web.Mvc;
|
||||
|
||||
namespace Disco.Web.Areas.API.Controllers
|
||||
@@ -406,6 +403,7 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
#region Exporting
|
||||
|
||||
[DiscoAuthorize(Claims.Config.DeviceFlag.Export)]
|
||||
[HttpPost, ValidateAntiForgeryToken]
|
||||
public virtual ActionResult Export(ExportModel Model)
|
||||
{
|
||||
if (Model == null || Model.Options == null)
|
||||
@@ -421,6 +419,7 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
else
|
||||
return RedirectToAction(MVC.Config.Logging.TaskStatus(taskContext.TaskStatus.SessionId));
|
||||
}
|
||||
|
||||
[DiscoAuthorize(Claims.Config.DeviceFlag.Export)]
|
||||
public virtual ActionResult ExportRetrieve(Guid id)
|
||||
{
|
||||
@@ -441,6 +440,16 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
return this.File(fileStream.GetBuffer(), 0, (int)fileStream.Length, context.Result.MimeType, context.Result.Filename);
|
||||
}
|
||||
|
||||
[DiscoAuthorizeAll(Claims.Config.ManageSavedExports, Claims.Config.DeviceFlag.Export)]
|
||||
[HttpPost, ValidateAntiForgeryToken]
|
||||
public virtual ActionResult SaveExport(ExportModel Model)
|
||||
{
|
||||
var export = new DeviceFlagExport(Model.Options);
|
||||
var savedExport = SavedExports.SaveExport(export, Database, CurrentUser);
|
||||
|
||||
return RedirectToAction(MVC.Config.Export.Create(savedExport.Id));
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,6 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.Entity;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Caching;
|
||||
using System.Web.Mvc;
|
||||
|
||||
@@ -2209,6 +2208,15 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
return this.File(fileStream.GetBuffer(), 0, (int)fileStream.Length, context.Result.MimeType, context.Result.Filename);
|
||||
}
|
||||
|
||||
[DiscoAuthorizeAll(Claims.Config.ManageSavedExports, Claims.Job.Actions.Export)]
|
||||
[HttpPost, ValidateAntiForgeryToken]
|
||||
public virtual ActionResult SaveExport(ExportModel Model)
|
||||
{
|
||||
var export = new JobExport(Model.Options);
|
||||
var savedExport = SavedExports.SaveExport(export, Database, CurrentUser);
|
||||
|
||||
return RedirectToAction(MVC.Config.Export.Create(savedExport.Id));
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Disco.Models.Repository;
|
||||
using Disco.Models.Services.Users.UserFlags;
|
||||
using Disco.Services;
|
||||
using Disco.Services.Authorization;
|
||||
using Disco.Services.Exporting;
|
||||
@@ -11,8 +10,6 @@ using Disco.Web.Areas.Config.Models.UserFlag;
|
||||
using Disco.Web.Extensions;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Caching;
|
||||
using System.Web.Mvc;
|
||||
|
||||
namespace Disco.Web.Areas.API.Controllers
|
||||
@@ -411,6 +408,7 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
#region Exporting
|
||||
|
||||
[DiscoAuthorize(Claims.Config.UserFlag.Export)]
|
||||
[HttpPost, ValidateAntiForgeryToken]
|
||||
public virtual ActionResult Export(ExportModel Model)
|
||||
{
|
||||
if (Model == null || Model.Options == null)
|
||||
@@ -426,6 +424,7 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
else
|
||||
return RedirectToAction(MVC.Config.Logging.TaskStatus(taskContext.TaskStatus.SessionId));
|
||||
}
|
||||
|
||||
[DiscoAuthorize(Claims.Config.UserFlag.Export)]
|
||||
public virtual ActionResult ExportRetrieve(Guid id)
|
||||
{
|
||||
@@ -443,6 +442,16 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
return this.File(fileStream.GetBuffer(), 0, (int)fileStream.Length, context.Result.MimeType, context.Result.Filename);
|
||||
}
|
||||
|
||||
[DiscoAuthorizeAll(Claims.Config.ManageSavedExports, Claims.Config.UserFlag.Export)]
|
||||
[HttpPost, ValidateAntiForgeryToken]
|
||||
public virtual ActionResult SaveExport(ExportModel Model)
|
||||
{
|
||||
var export = new UserFlagExport(Model.Options);
|
||||
var savedExport = SavedExports.SaveExport(export, Database, CurrentUser);
|
||||
|
||||
return RedirectToAction(MVC.Config.Export.Create(savedExport.Id));
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -12,7 +12,6 @@ using Disco.Web.Areas.Config.Models.DeviceFlag;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
|
||||
namespace Disco.Web.Areas.Config.Controllers
|
||||
|
||||
@@ -10,8 +10,9 @@
|
||||
.GroupBy(m => m.ShortDisplayName);
|
||||
}
|
||||
<div id="DeviceFlag_Export">
|
||||
@using (Html.BeginForm(MVC.API.DeviceFlag.Export()))
|
||||
@using (Html.BeginForm(MVC.API.DeviceFlag.Export(), FormMethod.Post, new { @data_saveaction = Url.Action(MVC.API.DeviceFlag.SaveExport()) }))
|
||||
{
|
||||
@Html.AntiForgeryToken()
|
||||
<div id="DeviceFlag_Export_Scope" class="form" style="width: 570px">
|
||||
<h2>Export Scope</h2>
|
||||
<table>
|
||||
@@ -157,6 +158,10 @@
|
||||
$('#DeviceFlag_Export_Button').click(function () {
|
||||
$form.submit();
|
||||
});
|
||||
$('#DeviceFlag_Export_Save_Button').click(function () {
|
||||
$form.attr('action', $form[0].dataset.saveaction);
|
||||
$form.submit();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
}
|
||||
@@ -191,5 +196,14 @@
|
||||
<h4><i class="fa fa-lg fa-cog fa-spin" title="Please Wait"></i>Exporting device flags...</h4>
|
||||
</div>
|
||||
<div class="actionBar">
|
||||
@if (Authorization.Has(Claims.Config.ManageSavedExports))
|
||||
{
|
||||
<button type="button" id="DeviceFlag_Export_Save_Button" class="button">Save Export</button>
|
||||
}
|
||||
else
|
||||
{
|
||||
<button type="button" class="button" disabled title="Requires Manage Saved Exports Permission">Save Export</button>
|
||||
}
|
||||
|
||||
<button type="button" id="DeviceFlag_Export_Button" class="button">Export Device Flags</button>
|
||||
</div>
|
||||
|
||||
@@ -77,8 +77,22 @@ WriteLiteral(">\r\n");
|
||||
#line hidden
|
||||
|
||||
#line 13 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
using (Html.BeginForm(MVC.API.DeviceFlag.Export()))
|
||||
using (Html.BeginForm(MVC.API.DeviceFlag.Export(), FormMethod.Post, new { @data_saveaction = Url.Action(MVC.API.DeviceFlag.SaveExport()) }))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 15 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
Write(Html.AntiForgeryToken());
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 15 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
|
||||
|
||||
|
||||
#line default
|
||||
@@ -100,13 +114,13 @@ WriteLiteral(">\r\n Device Flags:\r\n
|
||||
" <td>\r\n");
|
||||
|
||||
|
||||
#line 23 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 24 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 23 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 24 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
foreach (var flag in Model.DeviceFlags)
|
||||
{
|
||||
|
||||
@@ -122,20 +136,20 @@ WriteLiteral(" id=\"Options_DeviceFlagIds\"");
|
||||
|
||||
WriteLiteral(" name=\"Options.DeviceFlagIds\"");
|
||||
|
||||
WriteAttribute("value", Tuple.Create(" value=\"", 1252), Tuple.Create("\"", 1268)
|
||||
WriteAttribute("value", Tuple.Create(" value=\"", 1375), Tuple.Create("\"", 1391)
|
||||
|
||||
#line 27 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1260), Tuple.Create<System.Object, System.Int32>(flag.Id
|
||||
#line 28 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1383), Tuple.Create<System.Object, System.Int32>(flag.Id
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1260), false)
|
||||
, 1383), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 27 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 28 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
Write(((bool)Model.Options.DeviceFlagIds.Contains(flag.Id)) ? "checked " : null);
|
||||
|
||||
|
||||
@@ -143,31 +157,31 @@ WriteLiteral(" ");
|
||||
#line hidden
|
||||
WriteLiteral(" />\r\n <i");
|
||||
|
||||
WriteAttribute("class", Tuple.Create(" class=\"", 1389), Tuple.Create("\"", 1442)
|
||||
, Tuple.Create(Tuple.Create("", 1397), Tuple.Create("fa", 1397), true)
|
||||
, Tuple.Create(Tuple.Create(" ", 1399), Tuple.Create("fa-", 1400), true)
|
||||
WriteAttribute("class", Tuple.Create(" class=\"", 1512), Tuple.Create("\"", 1565)
|
||||
, Tuple.Create(Tuple.Create("", 1520), Tuple.Create("fa", 1520), true)
|
||||
, Tuple.Create(Tuple.Create(" ", 1522), Tuple.Create("fa-", 1523), true)
|
||||
|
||||
#line 28 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1403), Tuple.Create<System.Object, System.Int32>(flag.Icon
|
||||
#line 29 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1526), Tuple.Create<System.Object, System.Int32>(flag.Icon
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1403), false)
|
||||
, Tuple.Create(Tuple.Create(" ", 1415), Tuple.Create("fa-lg", 1416), true)
|
||||
, Tuple.Create(Tuple.Create(" ", 1421), Tuple.Create("d-", 1422), true)
|
||||
, 1526), false)
|
||||
, Tuple.Create(Tuple.Create(" ", 1538), Tuple.Create("fa-lg", 1539), true)
|
||||
, Tuple.Create(Tuple.Create(" ", 1544), Tuple.Create("d-", 1545), true)
|
||||
|
||||
#line 28 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1424), Tuple.Create<System.Object, System.Int32>(flag.IconColour
|
||||
#line 29 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1547), Tuple.Create<System.Object, System.Int32>(flag.IconColour
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1424), false)
|
||||
, 1547), false)
|
||||
);
|
||||
|
||||
WriteLiteral("></i>\r\n <span>");
|
||||
|
||||
|
||||
#line 29 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 30 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
Write(flag.Name);
|
||||
|
||||
|
||||
@@ -177,7 +191,7 @@ WriteLiteral("</span>\r\n </label>\r\n
|
||||
"div>\r\n");
|
||||
|
||||
|
||||
#line 32 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 33 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -187,7 +201,7 @@ WriteLiteral(" </td>\r\n </tr>\r\n
|
||||
" <th>");
|
||||
|
||||
|
||||
#line 36 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 37 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
Write(Html.LabelFor(m => m.Options.CurrentOnly));
|
||||
|
||||
|
||||
@@ -198,7 +212,7 @@ WriteLiteral("</th>\r\n <td>\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 38 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 39 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
Write(Html.CheckBoxFor(m => m.Options.CurrentOnly));
|
||||
|
||||
|
||||
@@ -209,7 +223,7 @@ WriteLiteral("\r\n <p>Uncheck to include all historical d
|
||||
"r>\r\n <th>");
|
||||
|
||||
|
||||
#line 43 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 44 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
Write(Html.LabelFor(m => m.Options.Format));
|
||||
|
||||
|
||||
@@ -220,7 +234,7 @@ WriteLiteral("</th>\r\n <td>\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 45 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 46 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
Write(Html.DropDownListFor(m => m.Options.Format, Enum.GetNames(typeof(Disco.Models.Exporting.ExportFormat)).Select(v => new SelectListItem() { Value = v, Text = v })));
|
||||
|
||||
|
||||
@@ -246,13 +260,13 @@ WriteLiteral(" href=\"#\"");
|
||||
WriteLiteral(">(Defaults)</a></h2>\r\n <table>\r\n");
|
||||
|
||||
|
||||
#line 53 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 54 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 53 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 54 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
foreach (var optionGroup in optionGroups)
|
||||
{
|
||||
var optionFields = optionGroup.ToList();
|
||||
@@ -270,7 +284,7 @@ WriteLiteral(">\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 59 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 60 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
Write(optionGroup.Key);
|
||||
|
||||
|
||||
@@ -279,13 +293,13 @@ WriteLiteral(" ");
|
||||
WriteLiteral("\r\n");
|
||||
|
||||
|
||||
#line 60 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 61 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 60 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 61 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
if (optionFields.Count > 2)
|
||||
{
|
||||
|
||||
@@ -313,7 +327,7 @@ WriteLiteral(" href=\"#\"");
|
||||
WriteLiteral(">NONE</a></span>\r\n");
|
||||
|
||||
|
||||
#line 63 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 64 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -340,13 +354,13 @@ WriteLiteral(" class=\"none\"");
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 71 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 72 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 71 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 72 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
foreach (var optionItem in optionFields.Take(itemsPerColumn))
|
||||
{
|
||||
|
||||
@@ -355,40 +369,40 @@ WriteLiteral(">\r\n");
|
||||
#line hidden
|
||||
WriteLiteral(" <li");
|
||||
|
||||
WriteAttribute("title", Tuple.Create(" title=\"", 3832), Tuple.Create("\"", 3863)
|
||||
WriteAttribute("title", Tuple.Create(" title=\"", 3955), Tuple.Create("\"", 3986)
|
||||
|
||||
#line 73 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 3840), Tuple.Create<System.Object, System.Int32>(optionItem.Description
|
||||
#line 74 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 3963), Tuple.Create<System.Object, System.Int32>(optionItem.Description
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 3840), false)
|
||||
, 3963), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">\r\n <input");
|
||||
|
||||
WriteLiteral(" type=\"checkbox\"");
|
||||
|
||||
WriteAttribute("id", Tuple.Create(" id=\"", 3945), Tuple.Create("\"", 3982)
|
||||
, Tuple.Create(Tuple.Create("", 3950), Tuple.Create("Options_", 3950), true)
|
||||
WriteAttribute("id", Tuple.Create(" id=\"", 4068), Tuple.Create("\"", 4105)
|
||||
, Tuple.Create(Tuple.Create("", 4073), Tuple.Create("Options_", 4073), true)
|
||||
|
||||
#line 74 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 3958), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
#line 75 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 4081), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 3958), false)
|
||||
, 4081), false)
|
||||
);
|
||||
|
||||
WriteAttribute("name", Tuple.Create(" name=\"", 3983), Tuple.Create("\"", 4022)
|
||||
, Tuple.Create(Tuple.Create("", 3990), Tuple.Create("Options.", 3990), true)
|
||||
WriteAttribute("name", Tuple.Create(" name=\"", 4106), Tuple.Create("\"", 4145)
|
||||
, Tuple.Create(Tuple.Create("", 4113), Tuple.Create("Options.", 4113), true)
|
||||
|
||||
#line 74 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 3998), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
#line 75 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 4121), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 3998), false)
|
||||
, 4121), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" value=\"true\"");
|
||||
@@ -396,7 +410,7 @@ WriteLiteral(" value=\"true\"");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 74 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 75 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
Write(((bool)optionItem.Model) ? "checked " : null);
|
||||
|
||||
|
||||
@@ -404,21 +418,21 @@ WriteLiteral(" ");
|
||||
#line hidden
|
||||
WriteLiteral(" /><label");
|
||||
|
||||
WriteAttribute("for", Tuple.Create(" for=\"", 4093), Tuple.Create("\"", 4131)
|
||||
, Tuple.Create(Tuple.Create("", 4099), Tuple.Create("Options_", 4099), true)
|
||||
WriteAttribute("for", Tuple.Create(" for=\"", 4216), Tuple.Create("\"", 4254)
|
||||
, Tuple.Create(Tuple.Create("", 4222), Tuple.Create("Options_", 4222), true)
|
||||
|
||||
#line 74 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 4107), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
#line 75 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 4230), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 4107), false)
|
||||
, 4230), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 74 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 75 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
Write(optionItem.DisplayName);
|
||||
|
||||
|
||||
@@ -427,7 +441,7 @@ WriteLiteral(">");
|
||||
WriteLiteral("</label>\r\n </li>\r\n");
|
||||
|
||||
|
||||
#line 76 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 77 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -445,13 +459,13 @@ WriteLiteral(" class=\"none\"");
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 81 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 82 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 81 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 82 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
foreach (var optionItem in optionFields.Skip(itemsPerColumn))
|
||||
{
|
||||
|
||||
@@ -460,40 +474,40 @@ WriteLiteral(">\r\n");
|
||||
#line hidden
|
||||
WriteLiteral(" <li");
|
||||
|
||||
WriteAttribute("title", Tuple.Create(" title=\"", 4720), Tuple.Create("\"", 4751)
|
||||
WriteAttribute("title", Tuple.Create(" title=\"", 4843), Tuple.Create("\"", 4874)
|
||||
|
||||
#line 83 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 4728), Tuple.Create<System.Object, System.Int32>(optionItem.Description
|
||||
#line 84 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 4851), Tuple.Create<System.Object, System.Int32>(optionItem.Description
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 4728), false)
|
||||
, 4851), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">\r\n <input");
|
||||
|
||||
WriteLiteral(" type=\"checkbox\"");
|
||||
|
||||
WriteAttribute("id", Tuple.Create(" id=\"", 4833), Tuple.Create("\"", 4870)
|
||||
, Tuple.Create(Tuple.Create("", 4838), Tuple.Create("Options_", 4838), true)
|
||||
WriteAttribute("id", Tuple.Create(" id=\"", 4956), Tuple.Create("\"", 4993)
|
||||
, Tuple.Create(Tuple.Create("", 4961), Tuple.Create("Options_", 4961), true)
|
||||
|
||||
#line 84 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 4846), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
#line 85 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 4969), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 4846), false)
|
||||
, 4969), false)
|
||||
);
|
||||
|
||||
WriteAttribute("name", Tuple.Create(" name=\"", 4871), Tuple.Create("\"", 4910)
|
||||
, Tuple.Create(Tuple.Create("", 4878), Tuple.Create("Options.", 4878), true)
|
||||
WriteAttribute("name", Tuple.Create(" name=\"", 4994), Tuple.Create("\"", 5033)
|
||||
, Tuple.Create(Tuple.Create("", 5001), Tuple.Create("Options.", 5001), true)
|
||||
|
||||
#line 84 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 4886), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
#line 85 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 5009), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 4886), false)
|
||||
, 5009), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" value=\"true\"");
|
||||
@@ -501,7 +515,7 @@ WriteLiteral(" value=\"true\"");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 84 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 85 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
Write(((bool)optionItem.Model) ? "checked " : null);
|
||||
|
||||
|
||||
@@ -509,21 +523,21 @@ WriteLiteral(" ");
|
||||
#line hidden
|
||||
WriteLiteral(" /><label");
|
||||
|
||||
WriteAttribute("for", Tuple.Create(" for=\"", 4981), Tuple.Create("\"", 5019)
|
||||
, Tuple.Create(Tuple.Create("", 4987), Tuple.Create("Options_", 4987), true)
|
||||
WriteAttribute("for", Tuple.Create(" for=\"", 5104), Tuple.Create("\"", 5142)
|
||||
, Tuple.Create(Tuple.Create("", 5110), Tuple.Create("Options_", 5110), true)
|
||||
|
||||
#line 84 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 4995), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
#line 85 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 5118), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 4995), false)
|
||||
, 5118), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 84 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 85 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
Write(optionItem.DisplayName);
|
||||
|
||||
|
||||
@@ -532,7 +546,7 @@ WriteLiteral(">");
|
||||
WriteLiteral("</label>\r\n </li>\r\n");
|
||||
|
||||
|
||||
#line 86 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 87 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -548,7 +562,7 @@ WriteLiteral(@" </ul>
|
||||
");
|
||||
|
||||
|
||||
#line 94 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 95 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
|
||||
}
|
||||
|
||||
@@ -588,10 +602,13 @@ WriteLiteral(" <script>\r\n $(function () {\r\n
|
||||
"t: 164,\r\n resizable: false,\r\n modal: true," +
|
||||
"\r\n autoOpen: true\r\n });\r\n $(\'#D" +
|
||||
"eviceFlag_Export_Button\').click(function () {\r\n $form.submit(" +
|
||||
");\r\n });\r\n });\r\n </script>\r\n");
|
||||
");\r\n });\r\n $(\'#DeviceFlag_Export_Save_Button\').cli" +
|
||||
"ck(function () {\r\n $form.attr(\'action\', $form[0].dataset.save" +
|
||||
"action);\r\n $form.submit();\r\n });\r\n " +
|
||||
"});\r\n </script>\r\n");
|
||||
|
||||
|
||||
#line 162 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 167 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -600,7 +617,7 @@ WriteLiteral(" <script>\r\n $(function () {\r\n
|
||||
WriteLiteral("</div>\r\n");
|
||||
|
||||
|
||||
#line 164 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 169 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
if (Model.ExportId.HasValue)
|
||||
{
|
||||
|
||||
@@ -618,13 +635,13 @@ WriteLiteral(" title=\"Export Device Flags\"");
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 167 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 172 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 167 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 172 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
if (Model.ExportResult.RecordCount == 0)
|
||||
{
|
||||
|
||||
@@ -634,7 +651,7 @@ WriteLiteral(">\r\n");
|
||||
WriteLiteral(" <h4>No records matched the filter criteria</h4>\r\n");
|
||||
|
||||
|
||||
#line 170 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 175 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -645,7 +662,7 @@ WriteLiteral(" <h4>No records matched the filter criteria</h4>\r\n");
|
||||
WriteLiteral(" <h4>");
|
||||
|
||||
|
||||
#line 173 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 178 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
Write(Model.ExportResult.RecordCount);
|
||||
|
||||
|
||||
@@ -654,7 +671,7 @@ WriteLiteral(" <h4>");
|
||||
WriteLiteral(" record");
|
||||
|
||||
|
||||
#line 173 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 178 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
Write(Model.ExportResult.RecordCount != 1 ? "s" : null);
|
||||
|
||||
|
||||
@@ -664,14 +681,14 @@ WriteLiteral(" were successfully exported.</h4>\r\n");
|
||||
|
||||
WriteLiteral(" <a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 8497), Tuple.Create("\"", 8572)
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 8823), Tuple.Create("\"", 8898)
|
||||
|
||||
#line 174 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 8504), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.DeviceFlag.ExportRetrieve(Model.ExportId.Value))
|
||||
#line 179 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 8830), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.DeviceFlag.ExportRetrieve(Model.ExportId.Value))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 8504), false)
|
||||
, 8830), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" class=\"button\"");
|
||||
@@ -683,7 +700,7 @@ WriteLiteral(" class=\"fa fa-download fa-lg\"");
|
||||
WriteLiteral("></i>Download Device Flag Export</a>\r\n");
|
||||
|
||||
|
||||
#line 175 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 180 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -706,7 +723,7 @@ WriteLiteral(@" <script>
|
||||
");
|
||||
|
||||
|
||||
#line 189 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
#line 194 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -730,7 +747,61 @@ WriteLiteral("></i>Exporting device flags...</h4>\r\n</div>\r\n<div");
|
||||
|
||||
WriteLiteral(" class=\"actionBar\"");
|
||||
|
||||
WriteLiteral(">\r\n <button");
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 199 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 199 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
if (Authorization.Has(Claims.Config.ManageSavedExports))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <button");
|
||||
|
||||
WriteLiteral(" type=\"button\"");
|
||||
|
||||
WriteLiteral(" id=\"DeviceFlag_Export_Save_Button\"");
|
||||
|
||||
WriteLiteral(" class=\"button\"");
|
||||
|
||||
WriteLiteral(">Save Export</button>\r\n");
|
||||
|
||||
|
||||
#line 202 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <button");
|
||||
|
||||
WriteLiteral(" type=\"button\"");
|
||||
|
||||
WriteLiteral(" class=\"button\"");
|
||||
|
||||
WriteLiteral(" disabled");
|
||||
|
||||
WriteLiteral(" title=\"Requires Manage Saved Exports Permission\"");
|
||||
|
||||
WriteLiteral(">Save Export</button>\r\n");
|
||||
|
||||
|
||||
#line 206 "..\..\Areas\Config\Views\DeviceFlag\Export.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n <button");
|
||||
|
||||
WriteLiteral(" type=\"button\"");
|
||||
|
||||
|
||||
@@ -10,8 +10,9 @@
|
||||
.GroupBy(m => m.ShortDisplayName);
|
||||
}
|
||||
<div id="UserFlag_Export">
|
||||
@using (Html.BeginForm(MVC.API.UserFlag.Export()))
|
||||
@using (Html.BeginForm(MVC.API.UserFlag.Export(), FormMethod.Post, new { @data_saveaction = Url.Action(MVC.API.UserFlag.SaveExport()) }))
|
||||
{
|
||||
@Html.AntiForgeryToken()
|
||||
<div id="UserFlag_Export_Scope" class="form" style="width: 570px">
|
||||
<h2>Export Scope</h2>
|
||||
<table>
|
||||
@@ -157,6 +158,10 @@
|
||||
$('#UserFlag_Export_Button').click(function () {
|
||||
$form.submit();
|
||||
});
|
||||
$('#UserFlag_Export_Save_Button').click(function () {
|
||||
$form.attr('action', $form[0].dataset.saveaction);
|
||||
$form.submit();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
}
|
||||
@@ -191,5 +196,14 @@
|
||||
<h4><i class="fa fa-lg fa-cog fa-spin" title="Please Wait"></i>Exporting user flags...</h4>
|
||||
</div>
|
||||
<div class="actionBar">
|
||||
@if (Authorization.Has(Claims.Config.ManageSavedExports))
|
||||
{
|
||||
<button type="button" id="UserFlag_Export_Save_Button" class="button">Save Export</button>
|
||||
}
|
||||
else
|
||||
{
|
||||
<button type="button" class="button" disabled title="Requires Manage Saved Exports Permission">Save Export</button>
|
||||
}
|
||||
|
||||
<button type="button" id="UserFlag_Export_Button" class="button">Export User Flags</button>
|
||||
</div>
|
||||
|
||||
@@ -77,8 +77,22 @@ WriteLiteral(">\r\n");
|
||||
#line hidden
|
||||
|
||||
#line 13 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
using (Html.BeginForm(MVC.API.UserFlag.Export()))
|
||||
using (Html.BeginForm(MVC.API.UserFlag.Export(), FormMethod.Post, new { @data_saveaction = Url.Action(MVC.API.UserFlag.SaveExport()) }))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 15 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
Write(Html.AntiForgeryToken());
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 15 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
|
||||
|
||||
|
||||
#line default
|
||||
@@ -100,13 +114,13 @@ WriteLiteral(">\r\n User Flags:\r\n </
|
||||
" <td>\r\n");
|
||||
|
||||
|
||||
#line 23 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 24 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 23 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 24 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
foreach (var userFlag in Model.UserFlags)
|
||||
{
|
||||
|
||||
@@ -122,20 +136,20 @@ WriteLiteral(" id=\"Options_UserFlagIds\"");
|
||||
|
||||
WriteLiteral(" name=\"Options.UserFlagIds\"");
|
||||
|
||||
WriteAttribute("value", Tuple.Create(" value=\"", 1234), Tuple.Create("\"", 1254)
|
||||
WriteAttribute("value", Tuple.Create(" value=\"", 1355), Tuple.Create("\"", 1375)
|
||||
|
||||
#line 27 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1242), Tuple.Create<System.Object, System.Int32>(userFlag.Id
|
||||
#line 28 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1363), Tuple.Create<System.Object, System.Int32>(userFlag.Id
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1242), false)
|
||||
, 1363), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 27 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 28 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
Write(((bool)Model.Options.UserFlagIds.Contains(userFlag.Id)) ? "checked " : null);
|
||||
|
||||
|
||||
@@ -143,31 +157,31 @@ WriteLiteral(" ");
|
||||
#line hidden
|
||||
WriteLiteral(" />\r\n <i");
|
||||
|
||||
WriteAttribute("class", Tuple.Create(" class=\"", 1377), Tuple.Create("\"", 1438)
|
||||
, Tuple.Create(Tuple.Create("", 1385), Tuple.Create("fa", 1385), true)
|
||||
, Tuple.Create(Tuple.Create(" ", 1387), Tuple.Create("fa-", 1388), true)
|
||||
WriteAttribute("class", Tuple.Create(" class=\"", 1498), Tuple.Create("\"", 1559)
|
||||
, Tuple.Create(Tuple.Create("", 1506), Tuple.Create("fa", 1506), true)
|
||||
, Tuple.Create(Tuple.Create(" ", 1508), Tuple.Create("fa-", 1509), true)
|
||||
|
||||
#line 28 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1391), Tuple.Create<System.Object, System.Int32>(userFlag.Icon
|
||||
#line 29 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1512), Tuple.Create<System.Object, System.Int32>(userFlag.Icon
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1391), false)
|
||||
, Tuple.Create(Tuple.Create(" ", 1407), Tuple.Create("fa-lg", 1408), true)
|
||||
, Tuple.Create(Tuple.Create(" ", 1413), Tuple.Create("d-", 1414), true)
|
||||
, 1512), false)
|
||||
, Tuple.Create(Tuple.Create(" ", 1528), Tuple.Create("fa-lg", 1529), true)
|
||||
, Tuple.Create(Tuple.Create(" ", 1534), Tuple.Create("d-", 1535), true)
|
||||
|
||||
#line 28 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1416), Tuple.Create<System.Object, System.Int32>(userFlag.IconColour
|
||||
#line 29 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1537), Tuple.Create<System.Object, System.Int32>(userFlag.IconColour
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1416), false)
|
||||
, 1537), false)
|
||||
);
|
||||
|
||||
WriteLiteral("></i>\r\n <span>");
|
||||
|
||||
|
||||
#line 29 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 30 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
Write(userFlag.Name);
|
||||
|
||||
|
||||
@@ -177,7 +191,7 @@ WriteLiteral("</span>\r\n </label>\r\n
|
||||
"div>\r\n");
|
||||
|
||||
|
||||
#line 32 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 33 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -187,7 +201,7 @@ WriteLiteral(" </td>\r\n </tr>\r\n
|
||||
" <th>");
|
||||
|
||||
|
||||
#line 36 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 37 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
Write(Html.LabelFor(m => m.Options.CurrentOnly));
|
||||
|
||||
|
||||
@@ -198,7 +212,7 @@ WriteLiteral("</th>\r\n <td>\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 38 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 39 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
Write(Html.CheckBoxFor(m => m.Options.CurrentOnly));
|
||||
|
||||
|
||||
@@ -209,7 +223,7 @@ WriteLiteral("\r\n <p>Uncheck to include all historical u
|
||||
"\r\n <th>");
|
||||
|
||||
|
||||
#line 43 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 44 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
Write(Html.LabelFor(m => m.Options.Format));
|
||||
|
||||
|
||||
@@ -220,7 +234,7 @@ WriteLiteral("</th>\r\n <td>\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 45 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 46 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
Write(Html.DropDownListFor(m => m.Options.Format, Enum.GetNames(typeof(Disco.Models.Exporting.ExportFormat)).Select(v => new SelectListItem() { Value = v, Text = v })));
|
||||
|
||||
|
||||
@@ -246,13 +260,13 @@ WriteLiteral(" href=\"#\"");
|
||||
WriteLiteral(">(Defaults)</a></h2>\r\n <table>\r\n");
|
||||
|
||||
|
||||
#line 53 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 54 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 53 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 54 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
foreach (var optionGroup in optionGroups)
|
||||
{
|
||||
var optionFields = optionGroup.ToList();
|
||||
@@ -270,7 +284,7 @@ WriteLiteral(">\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 59 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 60 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
Write(optionGroup.Key);
|
||||
|
||||
|
||||
@@ -279,13 +293,13 @@ WriteLiteral(" ");
|
||||
WriteLiteral("\r\n");
|
||||
|
||||
|
||||
#line 60 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 61 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 60 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 61 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
if (optionFields.Count > 2)
|
||||
{
|
||||
|
||||
@@ -313,7 +327,7 @@ WriteLiteral(" href=\"#\"");
|
||||
WriteLiteral(">NONE</a></span>\r\n");
|
||||
|
||||
|
||||
#line 63 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 64 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -340,13 +354,13 @@ WriteLiteral(" class=\"none\"");
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 71 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 72 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 71 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 72 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
foreach (var optionItem in optionFields.Take(itemsPerColumn))
|
||||
{
|
||||
|
||||
@@ -355,40 +369,40 @@ WriteLiteral(">\r\n");
|
||||
#line hidden
|
||||
WriteLiteral(" <li");
|
||||
|
||||
WriteAttribute("title", Tuple.Create(" title=\"", 3824), Tuple.Create("\"", 3855)
|
||||
WriteAttribute("title", Tuple.Create(" title=\"", 3945), Tuple.Create("\"", 3976)
|
||||
|
||||
#line 73 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 3832), Tuple.Create<System.Object, System.Int32>(optionItem.Description
|
||||
#line 74 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 3953), Tuple.Create<System.Object, System.Int32>(optionItem.Description
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 3832), false)
|
||||
, 3953), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">\r\n <input");
|
||||
|
||||
WriteLiteral(" type=\"checkbox\"");
|
||||
|
||||
WriteAttribute("id", Tuple.Create(" id=\"", 3937), Tuple.Create("\"", 3974)
|
||||
, Tuple.Create(Tuple.Create("", 3942), Tuple.Create("Options_", 3942), true)
|
||||
WriteAttribute("id", Tuple.Create(" id=\"", 4058), Tuple.Create("\"", 4095)
|
||||
, Tuple.Create(Tuple.Create("", 4063), Tuple.Create("Options_", 4063), true)
|
||||
|
||||
#line 74 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 3950), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
#line 75 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 4071), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 3950), false)
|
||||
, 4071), false)
|
||||
);
|
||||
|
||||
WriteAttribute("name", Tuple.Create(" name=\"", 3975), Tuple.Create("\"", 4014)
|
||||
, Tuple.Create(Tuple.Create("", 3982), Tuple.Create("Options.", 3982), true)
|
||||
WriteAttribute("name", Tuple.Create(" name=\"", 4096), Tuple.Create("\"", 4135)
|
||||
, Tuple.Create(Tuple.Create("", 4103), Tuple.Create("Options.", 4103), true)
|
||||
|
||||
#line 74 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 3990), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
#line 75 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 4111), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 3990), false)
|
||||
, 4111), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" value=\"true\"");
|
||||
@@ -396,7 +410,7 @@ WriteLiteral(" value=\"true\"");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 74 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 75 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
Write(((bool)optionItem.Model) ? "checked " : null);
|
||||
|
||||
|
||||
@@ -404,21 +418,21 @@ WriteLiteral(" ");
|
||||
#line hidden
|
||||
WriteLiteral(" /><label");
|
||||
|
||||
WriteAttribute("for", Tuple.Create(" for=\"", 4085), Tuple.Create("\"", 4123)
|
||||
, Tuple.Create(Tuple.Create("", 4091), Tuple.Create("Options_", 4091), true)
|
||||
WriteAttribute("for", Tuple.Create(" for=\"", 4206), Tuple.Create("\"", 4244)
|
||||
, Tuple.Create(Tuple.Create("", 4212), Tuple.Create("Options_", 4212), true)
|
||||
|
||||
#line 74 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 4099), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
#line 75 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 4220), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 4099), false)
|
||||
, 4220), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 74 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 75 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
Write(optionItem.DisplayName);
|
||||
|
||||
|
||||
@@ -427,7 +441,7 @@ WriteLiteral(">");
|
||||
WriteLiteral("</label>\r\n </li>\r\n");
|
||||
|
||||
|
||||
#line 76 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 77 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -445,13 +459,13 @@ WriteLiteral(" class=\"none\"");
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 81 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 82 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 81 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 82 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
foreach (var optionItem in optionFields.Skip(itemsPerColumn))
|
||||
{
|
||||
|
||||
@@ -460,40 +474,40 @@ WriteLiteral(">\r\n");
|
||||
#line hidden
|
||||
WriteLiteral(" <li");
|
||||
|
||||
WriteAttribute("title", Tuple.Create(" title=\"", 4712), Tuple.Create("\"", 4743)
|
||||
WriteAttribute("title", Tuple.Create(" title=\"", 4833), Tuple.Create("\"", 4864)
|
||||
|
||||
#line 83 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 4720), Tuple.Create<System.Object, System.Int32>(optionItem.Description
|
||||
#line 84 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 4841), Tuple.Create<System.Object, System.Int32>(optionItem.Description
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 4720), false)
|
||||
, 4841), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">\r\n <input");
|
||||
|
||||
WriteLiteral(" type=\"checkbox\"");
|
||||
|
||||
WriteAttribute("id", Tuple.Create(" id=\"", 4825), Tuple.Create("\"", 4862)
|
||||
, Tuple.Create(Tuple.Create("", 4830), Tuple.Create("Options_", 4830), true)
|
||||
WriteAttribute("id", Tuple.Create(" id=\"", 4946), Tuple.Create("\"", 4983)
|
||||
, Tuple.Create(Tuple.Create("", 4951), Tuple.Create("Options_", 4951), true)
|
||||
|
||||
#line 84 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 4838), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
#line 85 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 4959), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 4838), false)
|
||||
, 4959), false)
|
||||
);
|
||||
|
||||
WriteAttribute("name", Tuple.Create(" name=\"", 4863), Tuple.Create("\"", 4902)
|
||||
, Tuple.Create(Tuple.Create("", 4870), Tuple.Create("Options.", 4870), true)
|
||||
WriteAttribute("name", Tuple.Create(" name=\"", 4984), Tuple.Create("\"", 5023)
|
||||
, Tuple.Create(Tuple.Create("", 4991), Tuple.Create("Options.", 4991), true)
|
||||
|
||||
#line 84 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 4878), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
#line 85 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 4999), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 4878), false)
|
||||
, 4999), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" value=\"true\"");
|
||||
@@ -501,7 +515,7 @@ WriteLiteral(" value=\"true\"");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 84 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 85 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
Write(((bool)optionItem.Model) ? "checked " : null);
|
||||
|
||||
|
||||
@@ -509,21 +523,21 @@ WriteLiteral(" ");
|
||||
#line hidden
|
||||
WriteLiteral(" /><label");
|
||||
|
||||
WriteAttribute("for", Tuple.Create(" for=\"", 4973), Tuple.Create("\"", 5011)
|
||||
, Tuple.Create(Tuple.Create("", 4979), Tuple.Create("Options_", 4979), true)
|
||||
WriteAttribute("for", Tuple.Create(" for=\"", 5094), Tuple.Create("\"", 5132)
|
||||
, Tuple.Create(Tuple.Create("", 5100), Tuple.Create("Options_", 5100), true)
|
||||
|
||||
#line 84 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 4987), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
#line 85 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 5108), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 4987), false)
|
||||
, 5108), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 84 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 85 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
Write(optionItem.DisplayName);
|
||||
|
||||
|
||||
@@ -532,7 +546,7 @@ WriteLiteral(">");
|
||||
WriteLiteral("</label>\r\n </li>\r\n");
|
||||
|
||||
|
||||
#line 86 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 87 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -548,7 +562,7 @@ WriteLiteral(@" </ul>
|
||||
");
|
||||
|
||||
|
||||
#line 94 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 95 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
|
||||
}
|
||||
|
||||
@@ -588,10 +602,13 @@ WriteLiteral(" <script>\r\n $(function () {\r\n
|
||||
" resizable: false,\r\n modal: true,\r\n " +
|
||||
" autoOpen: true\r\n });\r\n $(\'#UserFlag_Ex" +
|
||||
"port_Button\').click(function () {\r\n $form.submit();\r\n " +
|
||||
" });\r\n });\r\n </script>\r\n");
|
||||
" });\r\n $(\'#UserFlag_Export_Save_Button\').click(function ()" +
|
||||
" {\r\n $form.attr(\'action\', $form[0].dataset.saveaction);\r\n " +
|
||||
" $form.submit();\r\n });\r\n });\r\n <" +
|
||||
"/script>\r\n");
|
||||
|
||||
|
||||
#line 162 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 167 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -600,7 +617,7 @@ WriteLiteral(" <script>\r\n $(function () {\r\n
|
||||
WriteLiteral("</div>\r\n");
|
||||
|
||||
|
||||
#line 164 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 169 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
if (Model.ExportId.HasValue)
|
||||
{
|
||||
|
||||
@@ -618,13 +635,13 @@ WriteLiteral(" title=\"Export User Flags\"");
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 167 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 172 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 167 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 172 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
if (Model.ExportResult.RecordCount == 0)
|
||||
{
|
||||
|
||||
@@ -634,7 +651,7 @@ WriteLiteral(">\r\n");
|
||||
WriteLiteral(" <h4>No records matched the filter criteria</h4>\r\n");
|
||||
|
||||
|
||||
#line 170 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 175 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -645,7 +662,7 @@ WriteLiteral(" <h4>No records matched the filter criteria</h4>\r\n");
|
||||
WriteLiteral(" <h4>");
|
||||
|
||||
|
||||
#line 173 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 178 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
Write(Model.ExportResult.RecordCount);
|
||||
|
||||
|
||||
@@ -654,7 +671,7 @@ WriteLiteral(" <h4>");
|
||||
WriteLiteral(" record");
|
||||
|
||||
|
||||
#line 173 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 178 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
Write(Model.ExportResult.RecordCount != 1 ? "s" : null);
|
||||
|
||||
|
||||
@@ -664,14 +681,14 @@ WriteLiteral(" were successfully exported.</h4>\r\n");
|
||||
|
||||
WriteLiteral(" <a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 8473), Tuple.Create("\"", 8546)
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 8795), Tuple.Create("\"", 8868)
|
||||
|
||||
#line 174 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 8480), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.UserFlag.ExportRetrieve(Model.ExportId.Value))
|
||||
#line 179 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 8802), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.UserFlag.ExportRetrieve(Model.ExportId.Value))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 8480), false)
|
||||
, 8802), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" class=\"button\"");
|
||||
@@ -683,7 +700,7 @@ WriteLiteral(" class=\"fa fa-download fa-lg\"");
|
||||
WriteLiteral("></i>Download User Flag Export</a>\r\n");
|
||||
|
||||
|
||||
#line 175 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 180 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -706,7 +723,7 @@ WriteLiteral(@" <script>
|
||||
");
|
||||
|
||||
|
||||
#line 189 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
#line 194 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -730,7 +747,61 @@ WriteLiteral("></i>Exporting user flags...</h4>\r\n</div>\r\n<div");
|
||||
|
||||
WriteLiteral(" class=\"actionBar\"");
|
||||
|
||||
WriteLiteral(">\r\n <button");
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 199 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 199 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
if (Authorization.Has(Claims.Config.ManageSavedExports))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <button");
|
||||
|
||||
WriteLiteral(" type=\"button\"");
|
||||
|
||||
WriteLiteral(" id=\"UserFlag_Export_Save_Button\"");
|
||||
|
||||
WriteLiteral(" class=\"button\"");
|
||||
|
||||
WriteLiteral(">Save Export</button>\r\n");
|
||||
|
||||
|
||||
#line 202 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <button");
|
||||
|
||||
WriteLiteral(" type=\"button\"");
|
||||
|
||||
WriteLiteral(" class=\"button\"");
|
||||
|
||||
WriteLiteral(" disabled");
|
||||
|
||||
WriteLiteral(" title=\"Requires Manage Saved Exports Permission\"");
|
||||
|
||||
WriteLiteral(">Save Export</button>\r\n");
|
||||
|
||||
|
||||
#line 206 "..\..\Areas\Config\Views\UserFlag\Export.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n <button");
|
||||
|
||||
WriteLiteral(" type=\"button\"");
|
||||
|
||||
|
||||
@@ -149,6 +149,12 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
{
|
||||
return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.ExportRetrieve);
|
||||
}
|
||||
[NonAction]
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
public virtual System.Web.Mvc.ActionResult SaveExport()
|
||||
{
|
||||
return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.SaveExport);
|
||||
}
|
||||
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
public DeviceFlagController Actions { get { return MVC.API.DeviceFlag; } }
|
||||
@@ -180,6 +186,7 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
public readonly string AssignedDevices = "AssignedDevices";
|
||||
public readonly string Export = "Export";
|
||||
public readonly string ExportRetrieve = "ExportRetrieve";
|
||||
public readonly string SaveExport = "SaveExport";
|
||||
}
|
||||
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
@@ -200,6 +207,7 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
public const string AssignedDevices = "AssignedDevices";
|
||||
public const string Export = "Export";
|
||||
public const string ExportRetrieve = "ExportRetrieve";
|
||||
public const string SaveExport = "SaveExport";
|
||||
}
|
||||
|
||||
|
||||
@@ -351,6 +359,14 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
{
|
||||
public readonly string id = "id";
|
||||
}
|
||||
static readonly ActionParamsClass_SaveExport s_params_SaveExport = new ActionParamsClass_SaveExport();
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
public ActionParamsClass_SaveExport SaveExportParams { get { return s_params_SaveExport; } }
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
public class ActionParamsClass_SaveExport
|
||||
{
|
||||
public readonly string Model = "Model";
|
||||
}
|
||||
static readonly ViewsClass s_views = new ViewsClass();
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
public ViewsClass Views { get { return s_views; } }
|
||||
@@ -578,6 +594,18 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
return callInfo;
|
||||
}
|
||||
|
||||
[NonAction]
|
||||
partial void SaveExportOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, Disco.Web.Areas.Config.Models.DeviceFlag.ExportModel Model);
|
||||
|
||||
[NonAction]
|
||||
public override System.Web.Mvc.ActionResult SaveExport(Disco.Web.Areas.Config.Models.DeviceFlag.ExportModel Model)
|
||||
{
|
||||
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.SaveExport);
|
||||
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "Model", Model);
|
||||
SaveExportOverride(callInfo, Model);
|
||||
return callInfo;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -467,6 +467,12 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
{
|
||||
return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.ExportRetrieve);
|
||||
}
|
||||
[NonAction]
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
public virtual System.Web.Mvc.ActionResult SaveExport()
|
||||
{
|
||||
return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.SaveExport);
|
||||
}
|
||||
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
public JobController Actions { get { return MVC.API.Job; } }
|
||||
@@ -553,6 +559,7 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
public readonly string DeviceHeldLocations = "DeviceHeldLocations";
|
||||
public readonly string Export = "Export";
|
||||
public readonly string ExportRetrieve = "ExportRetrieve";
|
||||
public readonly string SaveExport = "SaveExport";
|
||||
}
|
||||
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
@@ -628,6 +635,7 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
public const string DeviceHeldLocations = "DeviceHeldLocations";
|
||||
public const string Export = "Export";
|
||||
public const string ExportRetrieve = "ExportRetrieve";
|
||||
public const string SaveExport = "SaveExport";
|
||||
}
|
||||
|
||||
|
||||
@@ -1279,6 +1287,14 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
{
|
||||
public readonly string id = "id";
|
||||
}
|
||||
static readonly ActionParamsClass_SaveExport s_params_SaveExport = new ActionParamsClass_SaveExport();
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
public ActionParamsClass_SaveExport SaveExportParams { get { return s_params_SaveExport; } }
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
public class ActionParamsClass_SaveExport
|
||||
{
|
||||
public readonly string Model = "Model";
|
||||
}
|
||||
static readonly ViewsClass s_views = new ViewsClass();
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
public ViewsClass Views { get { return s_views; } }
|
||||
@@ -2240,6 +2256,18 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
return callInfo;
|
||||
}
|
||||
|
||||
[NonAction]
|
||||
partial void SaveExportOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, Disco.Web.Models.Job.ExportModel Model);
|
||||
|
||||
[NonAction]
|
||||
public override System.Web.Mvc.ActionResult SaveExport(Disco.Web.Models.Job.ExportModel Model)
|
||||
{
|
||||
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.SaveExport);
|
||||
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "Model", Model);
|
||||
SaveExportOverride(callInfo, Model);
|
||||
return callInfo;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -149,6 +149,12 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
{
|
||||
return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.ExportRetrieve);
|
||||
}
|
||||
[NonAction]
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
public virtual System.Web.Mvc.ActionResult SaveExport()
|
||||
{
|
||||
return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.SaveExport);
|
||||
}
|
||||
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
public UserFlagController Actions { get { return MVC.API.UserFlag; } }
|
||||
@@ -180,6 +186,7 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
public readonly string AssignedUsers = "AssignedUsers";
|
||||
public readonly string Export = "Export";
|
||||
public readonly string ExportRetrieve = "ExportRetrieve";
|
||||
public readonly string SaveExport = "SaveExport";
|
||||
}
|
||||
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
@@ -200,6 +207,7 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
public const string AssignedUsers = "AssignedUsers";
|
||||
public const string Export = "Export";
|
||||
public const string ExportRetrieve = "ExportRetrieve";
|
||||
public const string SaveExport = "SaveExport";
|
||||
}
|
||||
|
||||
|
||||
@@ -351,6 +359,14 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
{
|
||||
public readonly string id = "id";
|
||||
}
|
||||
static readonly ActionParamsClass_SaveExport s_params_SaveExport = new ActionParamsClass_SaveExport();
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
public ActionParamsClass_SaveExport SaveExportParams { get { return s_params_SaveExport; } }
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
public class ActionParamsClass_SaveExport
|
||||
{
|
||||
public readonly string Model = "Model";
|
||||
}
|
||||
static readonly ViewsClass s_views = new ViewsClass();
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
public ViewsClass Views { get { return s_views; } }
|
||||
@@ -578,6 +594,18 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
return callInfo;
|
||||
}
|
||||
|
||||
[NonAction]
|
||||
partial void SaveExportOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, Disco.Web.Areas.Config.Models.UserFlag.ExportModel Model);
|
||||
|
||||
[NonAction]
|
||||
public override System.Web.Mvc.ActionResult SaveExport(Disco.Web.Areas.Config.Models.UserFlag.ExportModel Model)
|
||||
{
|
||||
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.SaveExport);
|
||||
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "Model", Model);
|
||||
SaveExportOverride(callInfo, Model);
|
||||
return callInfo;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -172,7 +172,7 @@
|
||||
$form.submit();
|
||||
});
|
||||
$('#Devices_Export_Save_Button').click(function () {
|
||||
$form.attr('action', $form.data('saveaction'));
|
||||
$form.attr('action', $form[0].dataset.saveaction);
|
||||
$form.submit();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -571,8 +571,8 @@ WriteLiteral(" <script>\r\n $(function () {\r\n
|
||||
" autoOpen: true\r\n });\r\n $(\'#Devices_Export_Butto" +
|
||||
"n\').click(function () {\r\n $form.submit();\r\n })" +
|
||||
";\r\n $(\'#Devices_Export_Save_Button\').click(function () {\r\n " +
|
||||
" $form.attr(\'action\', $form.data(\'saveaction\'));\r\n " +
|
||||
" $form.submit();\r\n });\r\n });\r\n </script>\r\n");
|
||||
" $form.attr(\'action\', $form[0].dataset.saveaction);\r\n " +
|
||||
" $form.submit();\r\n });\r\n });\r\n </script>\r\n");
|
||||
|
||||
|
||||
#line 180 "..\..\Views\Device\Export.cshtml"
|
||||
@@ -648,14 +648,14 @@ WriteLiteral(" were successfully exported.</h4>\r\n");
|
||||
|
||||
WriteLiteral(" <a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 9955), Tuple.Create("\"", 10026)
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 9958), Tuple.Create("\"", 10029)
|
||||
|
||||
#line 192 "..\..\Views\Device\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 9962), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Device.ExportRetrieve(Model.ExportId.Value))
|
||||
, Tuple.Create(Tuple.Create("", 9965), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Device.ExportRetrieve(Model.ExportId.Value))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 9962), false)
|
||||
, 9965), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" class=\"button\"");
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
.GroupBy(m => m.ShortDisplayName);
|
||||
}
|
||||
<div id="Jobs_Export">
|
||||
@using (Html.BeginForm(MVC.API.Job.Export()))
|
||||
@using (Html.BeginForm(MVC.API.Job.Export(), FormMethod.Post, new { @data_saveaction = Url.Action(MVC.API.Job.SaveExport()) }))
|
||||
{
|
||||
@Html.AntiForgeryToken()
|
||||
<div id="Jobs_Export_Type" class="form" style="width: 570px">
|
||||
@@ -249,6 +249,10 @@
|
||||
$('#Jobs_Export_Button').click(function () {
|
||||
$form.submit();
|
||||
});
|
||||
$('#Jobs_Export_Save_Button').click(function () {
|
||||
$form.attr('action', $form[0].dataset.saveaction);
|
||||
$form.submit();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
}
|
||||
@@ -283,5 +287,14 @@
|
||||
<h4><i class="fa fa-lg fa-cog fa-spin" title="Please Wait"></i>Exporting jobs...</h4>
|
||||
</div>
|
||||
<div class="actionBar">
|
||||
@if (Authorization.Has(Claims.Config.ManageSavedExports))
|
||||
{
|
||||
<button type="button" id="Jobs_Export_Save_Button" class="button">Save Export</button>
|
||||
}
|
||||
else
|
||||
{
|
||||
<button type="button" class="button" disabled title="Requires Manage Saved Exports Permission">Save Export</button>
|
||||
}
|
||||
|
||||
<button id="Jobs_Export_Button" type="button" class="button">Export Jobs</button>
|
||||
</div>
|
||||
|
||||
@@ -77,7 +77,7 @@ WriteLiteral(">\r\n");
|
||||
#line hidden
|
||||
|
||||
#line 13 "..\..\Views\Job\Export.cshtml"
|
||||
using (Html.BeginForm(MVC.API.Job.Export()))
|
||||
using (Html.BeginForm(MVC.API.Job.Export(), FormMethod.Post, new { @data_saveaction = Url.Action(MVC.API.Job.SaveExport()) }))
|
||||
{
|
||||
|
||||
|
||||
@@ -221,15 +221,15 @@ WriteLiteral(">\r\n");
|
||||
#line hidden
|
||||
WriteLiteral(" <div");
|
||||
|
||||
WriteAttribute("id", Tuple.Create(" id=\"", 2639), Tuple.Create("\"", 2678)
|
||||
, Tuple.Create(Tuple.Create("", 2644), Tuple.Create("Jobs_Export_SubTypes_", 2644), true)
|
||||
WriteAttribute("id", Tuple.Create(" id=\"", 2721), Tuple.Create("\"", 2760)
|
||||
, Tuple.Create(Tuple.Create("", 2726), Tuple.Create("Jobs_Export_SubTypes_", 2726), true)
|
||||
|
||||
#line 56 "..\..\Views\Job\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 2665), Tuple.Create<System.Object, System.Int32>(jobType.Id
|
||||
, Tuple.Create(Tuple.Create("", 2747), Tuple.Create<System.Object, System.Int32>(jobType.Id
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 2665), false)
|
||||
, 2747), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" class=\"Jobs_Export_SubType_Target\"");
|
||||
@@ -320,35 +320,35 @@ WriteLiteral(" <l
|
||||
|
||||
WriteLiteral(" type=\"checkbox\"");
|
||||
|
||||
WriteAttribute("id", Tuple.Create(" id=\"", 3687), Tuple.Create("\"", 3740)
|
||||
, Tuple.Create(Tuple.Create("", 3692), Tuple.Create("Jobs_Export_SubTypes_", 3692), true)
|
||||
WriteAttribute("id", Tuple.Create(" id=\"", 3769), Tuple.Create("\"", 3822)
|
||||
, Tuple.Create(Tuple.Create("", 3774), Tuple.Create("Jobs_Export_SubTypes_", 3774), true)
|
||||
|
||||
#line 68 "..\..\Views\Job\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 3713), Tuple.Create<System.Object, System.Int32>(jobType.Id
|
||||
, Tuple.Create(Tuple.Create("", 3795), Tuple.Create<System.Object, System.Int32>(jobType.Id
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 3713), false)
|
||||
, Tuple.Create(Tuple.Create("", 3726), Tuple.Create("_", 3726), true)
|
||||
, 3795), false)
|
||||
, Tuple.Create(Tuple.Create("", 3808), Tuple.Create("_", 3808), true)
|
||||
|
||||
#line 68 "..\..\Views\Job\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 3727), Tuple.Create<System.Object, System.Int32>(subType.Id
|
||||
, Tuple.Create(Tuple.Create("", 3809), Tuple.Create<System.Object, System.Int32>(subType.Id
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 3727), false)
|
||||
, 3809), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" name=\"Options.FilterJobSubTypeIds\"");
|
||||
|
||||
WriteAttribute("value", Tuple.Create(" value=\"", 3776), Tuple.Create("\"", 3795)
|
||||
WriteAttribute("value", Tuple.Create(" value=\"", 3858), Tuple.Create("\"", 3877)
|
||||
|
||||
#line 68 "..\..\Views\Job\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 3784), Tuple.Create<System.Object, System.Int32>(subType.Id
|
||||
, Tuple.Create(Tuple.Create("", 3866), Tuple.Create<System.Object, System.Int32>(subType.Id
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 3784), false)
|
||||
, 3866), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" ");
|
||||
@@ -362,23 +362,23 @@ WriteLiteral(" ");
|
||||
#line hidden
|
||||
WriteLiteral(" /><label");
|
||||
|
||||
WriteAttribute("for", Tuple.Create(" for=\"", 3932), Tuple.Create("\"", 3986)
|
||||
, Tuple.Create(Tuple.Create("", 3938), Tuple.Create("Jobs_Export_SubTypes_", 3938), true)
|
||||
WriteAttribute("for", Tuple.Create(" for=\"", 4014), Tuple.Create("\"", 4068)
|
||||
, Tuple.Create(Tuple.Create("", 4020), Tuple.Create("Jobs_Export_SubTypes_", 4020), true)
|
||||
|
||||
#line 68 "..\..\Views\Job\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 3959), Tuple.Create<System.Object, System.Int32>(jobType.Id
|
||||
, Tuple.Create(Tuple.Create("", 4041), Tuple.Create<System.Object, System.Int32>(jobType.Id
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 3959), false)
|
||||
, Tuple.Create(Tuple.Create("", 3972), Tuple.Create("_", 3972), true)
|
||||
, 4041), false)
|
||||
, Tuple.Create(Tuple.Create("", 4054), Tuple.Create("_", 4054), true)
|
||||
|
||||
#line 68 "..\..\Views\Job\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 3973), Tuple.Create<System.Object, System.Int32>(subType.Id
|
||||
, Tuple.Create(Tuple.Create("", 4055), Tuple.Create<System.Object, System.Int32>(subType.Id
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 3973), false)
|
||||
, 4055), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
@@ -431,35 +431,35 @@ WriteLiteral(" <l
|
||||
|
||||
WriteLiteral(" type=\"checkbox\"");
|
||||
|
||||
WriteAttribute("id", Tuple.Create(" id=\"", 4766), Tuple.Create("\"", 4819)
|
||||
, Tuple.Create(Tuple.Create("", 4771), Tuple.Create("Jobs_Export_SubTypes_", 4771), true)
|
||||
WriteAttribute("id", Tuple.Create(" id=\"", 4848), Tuple.Create("\"", 4901)
|
||||
, Tuple.Create(Tuple.Create("", 4853), Tuple.Create("Jobs_Export_SubTypes_", 4853), true)
|
||||
|
||||
#line 78 "..\..\Views\Job\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 4792), Tuple.Create<System.Object, System.Int32>(jobType.Id
|
||||
, Tuple.Create(Tuple.Create("", 4874), Tuple.Create<System.Object, System.Int32>(jobType.Id
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 4792), false)
|
||||
, Tuple.Create(Tuple.Create("", 4805), Tuple.Create("_", 4805), true)
|
||||
, 4874), false)
|
||||
, Tuple.Create(Tuple.Create("", 4887), Tuple.Create("_", 4887), true)
|
||||
|
||||
#line 78 "..\..\Views\Job\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 4806), Tuple.Create<System.Object, System.Int32>(subType.Id
|
||||
, Tuple.Create(Tuple.Create("", 4888), Tuple.Create<System.Object, System.Int32>(subType.Id
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 4806), false)
|
||||
, 4888), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" name=\"Options.FilterJobSubTypeIds\"");
|
||||
|
||||
WriteAttribute("value", Tuple.Create(" value=\"", 4855), Tuple.Create("\"", 4874)
|
||||
WriteAttribute("value", Tuple.Create(" value=\"", 4937), Tuple.Create("\"", 4956)
|
||||
|
||||
#line 78 "..\..\Views\Job\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 4863), Tuple.Create<System.Object, System.Int32>(subType.Id
|
||||
, Tuple.Create(Tuple.Create("", 4945), Tuple.Create<System.Object, System.Int32>(subType.Id
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 4863), false)
|
||||
, 4945), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" ");
|
||||
@@ -473,23 +473,23 @@ WriteLiteral(" ");
|
||||
#line hidden
|
||||
WriteLiteral(" /><label");
|
||||
|
||||
WriteAttribute("for", Tuple.Create(" for=\"", 5011), Tuple.Create("\"", 5065)
|
||||
, Tuple.Create(Tuple.Create("", 5017), Tuple.Create("Jobs_Export_SubTypes_", 5017), true)
|
||||
WriteAttribute("for", Tuple.Create(" for=\"", 5093), Tuple.Create("\"", 5147)
|
||||
, Tuple.Create(Tuple.Create("", 5099), Tuple.Create("Jobs_Export_SubTypes_", 5099), true)
|
||||
|
||||
#line 78 "..\..\Views\Job\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 5038), Tuple.Create<System.Object, System.Int32>(jobType.Id
|
||||
, Tuple.Create(Tuple.Create("", 5120), Tuple.Create<System.Object, System.Int32>(jobType.Id
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 5038), false)
|
||||
, Tuple.Create(Tuple.Create("", 5051), Tuple.Create("_", 5051), true)
|
||||
, 5120), false)
|
||||
, Tuple.Create(Tuple.Create("", 5133), Tuple.Create("_", 5133), true)
|
||||
|
||||
#line 78 "..\..\Views\Job\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 5052), Tuple.Create<System.Object, System.Int32>(subType.Id
|
||||
, Tuple.Create(Tuple.Create("", 5134), Tuple.Create<System.Object, System.Int32>(subType.Id
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 5052), false)
|
||||
, 5134), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
@@ -689,40 +689,40 @@ WriteLiteral(">\r\n");
|
||||
#line hidden
|
||||
WriteLiteral(" <li");
|
||||
|
||||
WriteAttribute("title", Tuple.Create(" title=\"", 7775), Tuple.Create("\"", 7806)
|
||||
WriteAttribute("title", Tuple.Create(" title=\"", 7857), Tuple.Create("\"", 7888)
|
||||
|
||||
#line 129 "..\..\Views\Job\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 7783), Tuple.Create<System.Object, System.Int32>(optionItem.Description
|
||||
, Tuple.Create(Tuple.Create("", 7865), Tuple.Create<System.Object, System.Int32>(optionItem.Description
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 7783), false)
|
||||
, 7865), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">\r\n <input");
|
||||
|
||||
WriteLiteral(" type=\"checkbox\"");
|
||||
|
||||
WriteAttribute("id", Tuple.Create(" id=\"", 7888), Tuple.Create("\"", 7925)
|
||||
, Tuple.Create(Tuple.Create("", 7893), Tuple.Create("Options_", 7893), true)
|
||||
WriteAttribute("id", Tuple.Create(" id=\"", 7970), Tuple.Create("\"", 8007)
|
||||
, Tuple.Create(Tuple.Create("", 7975), Tuple.Create("Options_", 7975), true)
|
||||
|
||||
#line 130 "..\..\Views\Job\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 7901), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
, Tuple.Create(Tuple.Create("", 7983), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 7901), false)
|
||||
, 7983), false)
|
||||
);
|
||||
|
||||
WriteAttribute("name", Tuple.Create(" name=\"", 7926), Tuple.Create("\"", 7965)
|
||||
, Tuple.Create(Tuple.Create("", 7933), Tuple.Create("Options.", 7933), true)
|
||||
WriteAttribute("name", Tuple.Create(" name=\"", 8008), Tuple.Create("\"", 8047)
|
||||
, Tuple.Create(Tuple.Create("", 8015), Tuple.Create("Options.", 8015), true)
|
||||
|
||||
#line 130 "..\..\Views\Job\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 7941), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
, Tuple.Create(Tuple.Create("", 8023), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 7941), false)
|
||||
, 8023), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" value=\"true\"");
|
||||
@@ -738,15 +738,15 @@ WriteLiteral(" ");
|
||||
#line hidden
|
||||
WriteLiteral(" /><label");
|
||||
|
||||
WriteAttribute("for", Tuple.Create(" for=\"", 8036), Tuple.Create("\"", 8074)
|
||||
, Tuple.Create(Tuple.Create("", 8042), Tuple.Create("Options_", 8042), true)
|
||||
WriteAttribute("for", Tuple.Create(" for=\"", 8118), Tuple.Create("\"", 8156)
|
||||
, Tuple.Create(Tuple.Create("", 8124), Tuple.Create("Options_", 8124), true)
|
||||
|
||||
#line 130 "..\..\Views\Job\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 8050), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
, Tuple.Create(Tuple.Create("", 8132), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 8050), false)
|
||||
, 8132), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
@@ -794,40 +794,40 @@ WriteLiteral(">\r\n");
|
||||
#line hidden
|
||||
WriteLiteral(" <li");
|
||||
|
||||
WriteAttribute("title", Tuple.Create(" title=\"", 8663), Tuple.Create("\"", 8694)
|
||||
WriteAttribute("title", Tuple.Create(" title=\"", 8745), Tuple.Create("\"", 8776)
|
||||
|
||||
#line 139 "..\..\Views\Job\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 8671), Tuple.Create<System.Object, System.Int32>(optionItem.Description
|
||||
, Tuple.Create(Tuple.Create("", 8753), Tuple.Create<System.Object, System.Int32>(optionItem.Description
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 8671), false)
|
||||
, 8753), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">\r\n <input");
|
||||
|
||||
WriteLiteral(" type=\"checkbox\"");
|
||||
|
||||
WriteAttribute("id", Tuple.Create(" id=\"", 8776), Tuple.Create("\"", 8813)
|
||||
, Tuple.Create(Tuple.Create("", 8781), Tuple.Create("Options_", 8781), true)
|
||||
WriteAttribute("id", Tuple.Create(" id=\"", 8858), Tuple.Create("\"", 8895)
|
||||
, Tuple.Create(Tuple.Create("", 8863), Tuple.Create("Options_", 8863), true)
|
||||
|
||||
#line 140 "..\..\Views\Job\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 8789), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
, Tuple.Create(Tuple.Create("", 8871), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 8789), false)
|
||||
, 8871), false)
|
||||
);
|
||||
|
||||
WriteAttribute("name", Tuple.Create(" name=\"", 8814), Tuple.Create("\"", 8853)
|
||||
, Tuple.Create(Tuple.Create("", 8821), Tuple.Create("Options.", 8821), true)
|
||||
WriteAttribute("name", Tuple.Create(" name=\"", 8896), Tuple.Create("\"", 8935)
|
||||
, Tuple.Create(Tuple.Create("", 8903), Tuple.Create("Options.", 8903), true)
|
||||
|
||||
#line 140 "..\..\Views\Job\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 8829), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
, Tuple.Create(Tuple.Create("", 8911), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 8829), false)
|
||||
, 8911), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" value=\"true\"");
|
||||
@@ -843,15 +843,15 @@ WriteLiteral(" ");
|
||||
#line hidden
|
||||
WriteLiteral(" /><label");
|
||||
|
||||
WriteAttribute("for", Tuple.Create(" for=\"", 8924), Tuple.Create("\"", 8962)
|
||||
, Tuple.Create(Tuple.Create("", 8930), Tuple.Create("Options_", 8930), true)
|
||||
WriteAttribute("for", Tuple.Create(" for=\"", 9006), Tuple.Create("\"", 9044)
|
||||
, Tuple.Create(Tuple.Create("", 9012), Tuple.Create("Options_", 9012), true)
|
||||
|
||||
#line 140 "..\..\Views\Job\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 8938), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
, Tuple.Create(Tuple.Create("", 9020), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 8938), false)
|
||||
, 9020), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
@@ -947,10 +947,13 @@ WriteLiteral(" <script>\r\n $(function () {\r\n
|
||||
"164,\r\n resizable: false,\r\n modal: true,\r\n " +
|
||||
" autoOpen: true\r\n });\r\n $(\'#Jobs" +
|
||||
"_Export_Button\').click(function () {\r\n $form.submit();\r\n " +
|
||||
" });\r\n });\r\n </script>\r\n");
|
||||
" });\r\n $(\'#Jobs_Export_Save_Button\').click(function () " +
|
||||
"{\r\n $form.attr(\'action\', $form[0].dataset.saveaction);\r\n " +
|
||||
" $form.submit();\r\n });\r\n });\r\n </" +
|
||||
"script>\r\n");
|
||||
|
||||
|
||||
#line 254 "..\..\Views\Job\Export.cshtml"
|
||||
#line 258 "..\..\Views\Job\Export.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -959,7 +962,7 @@ WriteLiteral(" <script>\r\n $(function () {\r\n
|
||||
WriteLiteral("</div>\r\n");
|
||||
|
||||
|
||||
#line 256 "..\..\Views\Job\Export.cshtml"
|
||||
#line 260 "..\..\Views\Job\Export.cshtml"
|
||||
if (Model.ExportId.HasValue)
|
||||
{
|
||||
|
||||
@@ -977,13 +980,13 @@ WriteLiteral(" title=\"Export Jobs\"");
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 259 "..\..\Views\Job\Export.cshtml"
|
||||
#line 263 "..\..\Views\Job\Export.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 259 "..\..\Views\Job\Export.cshtml"
|
||||
#line 263 "..\..\Views\Job\Export.cshtml"
|
||||
if (Model.ExportResult.RecordCount == 0)
|
||||
{
|
||||
|
||||
@@ -993,7 +996,7 @@ WriteLiteral(">\r\n");
|
||||
WriteLiteral(" <h4>No records matched the filter criteria</h4>\r\n");
|
||||
|
||||
|
||||
#line 262 "..\..\Views\Job\Export.cshtml"
|
||||
#line 266 "..\..\Views\Job\Export.cshtml"
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1004,7 +1007,7 @@ WriteLiteral(" <h4>No records matched the filter criteria</h4>\r\n");
|
||||
WriteLiteral(" <h4>");
|
||||
|
||||
|
||||
#line 265 "..\..\Views\Job\Export.cshtml"
|
||||
#line 269 "..\..\Views\Job\Export.cshtml"
|
||||
Write(Model.ExportResult.RecordCount);
|
||||
|
||||
|
||||
@@ -1013,7 +1016,7 @@ WriteLiteral(" <h4>");
|
||||
WriteLiteral(" record");
|
||||
|
||||
|
||||
#line 265 "..\..\Views\Job\Export.cshtml"
|
||||
#line 269 "..\..\Views\Job\Export.cshtml"
|
||||
Write(Model.ExportResult.RecordCount != 1 ? "s" : null);
|
||||
|
||||
|
||||
@@ -1023,14 +1026,14 @@ WriteLiteral(" were successfully exported.</h4>\r\n");
|
||||
|
||||
WriteLiteral(" <a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 14417), Tuple.Create("\"", 14485)
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 14696), Tuple.Create("\"", 14764)
|
||||
|
||||
#line 266 "..\..\Views\Job\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 14424), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.ExportRetrieve(Model.ExportId.Value))
|
||||
#line 270 "..\..\Views\Job\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 14703), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.ExportRetrieve(Model.ExportId.Value))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 14424), false)
|
||||
, 14703), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" class=\"button\"");
|
||||
@@ -1042,7 +1045,7 @@ WriteLiteral(" class=\"fa fa-download fa-lg\"");
|
||||
WriteLiteral("></i>Download Job Export</a>\r\n");
|
||||
|
||||
|
||||
#line 267 "..\..\Views\Job\Export.cshtml"
|
||||
#line 271 "..\..\Views\Job\Export.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -1065,7 +1068,7 @@ WriteLiteral(@" <script>
|
||||
");
|
||||
|
||||
|
||||
#line 281 "..\..\Views\Job\Export.cshtml"
|
||||
#line 285 "..\..\Views\Job\Export.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -1089,7 +1092,61 @@ WriteLiteral("></i>Exporting jobs...</h4>\r\n</div>\r\n<div");
|
||||
|
||||
WriteLiteral(" class=\"actionBar\"");
|
||||
|
||||
WriteLiteral(">\r\n <button");
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 290 "..\..\Views\Job\Export.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 290 "..\..\Views\Job\Export.cshtml"
|
||||
if (Authorization.Has(Claims.Config.ManageSavedExports))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <button");
|
||||
|
||||
WriteLiteral(" type=\"button\"");
|
||||
|
||||
WriteLiteral(" id=\"Jobs_Export_Save_Button\"");
|
||||
|
||||
WriteLiteral(" class=\"button\"");
|
||||
|
||||
WriteLiteral(">Save Export</button>\r\n");
|
||||
|
||||
|
||||
#line 293 "..\..\Views\Job\Export.cshtml"
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <button");
|
||||
|
||||
WriteLiteral(" type=\"button\"");
|
||||
|
||||
WriteLiteral(" class=\"button\"");
|
||||
|
||||
WriteLiteral(" disabled");
|
||||
|
||||
WriteLiteral(" title=\"Requires Manage Saved Exports Permission\"");
|
||||
|
||||
WriteLiteral(">Save Export</button>\r\n");
|
||||
|
||||
|
||||
#line 297 "..\..\Views\Job\Export.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n <button");
|
||||
|
||||
WriteLiteral(" id=\"Jobs_Export_Button\"");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user