feature: user details are individually exported; shared export field renderer
This commit is contained in:
@@ -3,11 +3,7 @@
|
||||
@{
|
||||
Authorization.RequireAny(Claims.Device.Actions.Export);
|
||||
|
||||
ViewBag.Title = Html.ToBreadcrumb("Devices", MVC.Device.Index(), "Export Devices");
|
||||
|
||||
var optionsMetadata = ModelMetadata.FromLambdaExpression(m => m.Options, ViewData);
|
||||
var optionGroups = optionsMetadata.Properties.Where(p => p.ShortDisplayName != null && p.ModelType == typeof(bool))
|
||||
.GroupBy(m => m.ShortDisplayName);
|
||||
ViewBag.Title = Html.ToBreadcrumb("Devices", MVC.Device.Index(), "Export");
|
||||
}
|
||||
<div id="Devices_Export">
|
||||
@using (Html.BeginForm(MVC.API.Device.Export(), FormMethod.Post, new { @data_saveaction = Url.Action(MVC.API.Device.SaveExport()) }))
|
||||
@@ -41,64 +37,15 @@
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id="Devices_Export_Fields" class="form" style="width: 570px; margin-top: 15px;">
|
||||
<h2>Export Fields <a id="Devices_Export_Fields_Defaults" href="#">(Defaults)</a></h2>
|
||||
<table>
|
||||
@foreach (var optionGroup in optionGroups)
|
||||
{
|
||||
var optionFields = optionGroup.ToList();
|
||||
var itemsPerColumn = (int)Math.Ceiling((double)optionFields.Count / 2);
|
||||
<tr>
|
||||
<th style="width: 120px;">
|
||||
@optionGroup.Key
|
||||
@if (optionFields.Count > 2)
|
||||
{
|
||||
<span style="display: block;" class="select"><a class="selectAll" href="#">ALL</a> | <a class="selectNone" href="#">NONE</a></span>
|
||||
}
|
||||
</th>
|
||||
<td>
|
||||
<div class="Devices_Export_Fields_Group">
|
||||
<table class="none">
|
||||
<tr>
|
||||
<td style="width: 50%">
|
||||
<ul class="none">
|
||||
@foreach (var optionItem in optionFields.Take(itemsPerColumn))
|
||||
{
|
||||
<li title="@optionItem.Description">
|
||||
<input type="checkbox" id="Options_@optionItem.PropertyName" name="Options.@optionItem.PropertyName" value="true" @(((bool)optionItem.Model) ? "checked " : null) /><label for="Options_@optionItem.PropertyName">@optionItem.DisplayName</label>
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
</td>
|
||||
<td style="width: 50%">
|
||||
<ul class="none">
|
||||
@foreach (var optionItem in optionFields.Skip(itemsPerColumn))
|
||||
{
|
||||
<li title="@optionItem.Description">
|
||||
<input type="checkbox" id="Options_@optionItem.PropertyName" name="Options.@optionItem.PropertyName" value="true" @(((bool)optionItem.Model) ? "checked " : null) /><label for="Options_@optionItem.PropertyName">@optionItem.DisplayName</label>
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
}
|
||||
</table>
|
||||
</div>
|
||||
@Html.Partial(MVC.Shared.Views._ExportFields, Model.Fields.FieldGroups)
|
||||
<script>
|
||||
$(function () {
|
||||
var exportDefaultFields = ['DeviceSerialNumber', 'ModelId', 'ProfileId', 'BatchId', 'AssignedUserId', 'DeviceLocation', 'DeviceAssetNumber'];
|
||||
var $exportFields = $('#Devices_Export_Fields');
|
||||
var $exportType = $('#Options_ExportType');
|
||||
var $exportTypeTargetContainers = $('#Devices_Export_Type').find('.Devices_Export_Type_Target');
|
||||
var $form = $exportType.closest('form');
|
||||
var $exportingDialog = null;
|
||||
const $exportType = $('#Options_ExportType');
|
||||
const $exportTypeTargetContainers = $('#Devices_Export_Type').find('.Devices_Export_Type_Target');
|
||||
const $form = $exportType.closest('form');
|
||||
let $exportingDialog = null;
|
||||
|
||||
function exportTypeChange() {
|
||||
$exportType.on('change', function () {
|
||||
$exportTypeTargetContainers.hide();
|
||||
$exportTypeTargetContainers.find('select').prop('disabled', true);
|
||||
|
||||
@@ -113,37 +60,14 @@
|
||||
$('#Devices_Export_Type_Target_Model').show().find('select').prop('disabled', false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
$exportType.change(exportTypeChange);
|
||||
exportTypeChange();
|
||||
|
||||
$exportFields.on('click', 'a.selectAll,a.selectNone', function () {
|
||||
var $this = $(this);
|
||||
|
||||
$this.closest('tr').find('input').prop('checked', $this.is('.selectAll'));
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
$('#Devices_Export_Fields_Defaults').click(function () {
|
||||
|
||||
$exportFields.find('input').prop('checked', false);
|
||||
|
||||
$.each(exportDefaultFields, function (index, value) {
|
||||
$('#Options_' + value).prop('checked', true);
|
||||
});
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
// Submit Validation
|
||||
function submitHandler() {
|
||||
var exportFieldCount = $exportFields.find('input:checked').length;
|
||||
}).trigger('change');
|
||||
|
||||
$.validator.unobtrusive.parse($form);
|
||||
$form.data("validator").settings.submitHandler = function () {
|
||||
const exportFieldCount = $('#Export_Fields').find('input:checked').length;
|
||||
if (exportFieldCount > 0) {
|
||||
|
||||
if ($exportingDialog == null) {
|
||||
$exportingDialog = $('#Devices_Export_Exporting').dialog({
|
||||
$exportingDialog = $('#Export_Exporting').dialog({
|
||||
width: 400,
|
||||
height: 164,
|
||||
resizable: false,
|
||||
@@ -154,24 +78,16 @@
|
||||
$exportingDialog.dialog('open');
|
||||
|
||||
$form[0].submit();
|
||||
return;
|
||||
}
|
||||
else
|
||||
alert('Select at least one field to export.');
|
||||
}
|
||||
$.validator.unobtrusive.parse($form);
|
||||
$form.data("validator").settings.submitHandler = submitHandler;
|
||||
|
||||
$('#Devices_Export_Download_Dialog').dialog({
|
||||
width: 400,
|
||||
height: 164,
|
||||
resizable: false,
|
||||
modal: true,
|
||||
autoOpen: true
|
||||
});
|
||||
$('#Devices_Export_Button').click(function () {
|
||||
alert('Select at least one field to export.');
|
||||
};
|
||||
|
||||
$('#Devices_Export_Button').on('click', function () {
|
||||
$form.submit();
|
||||
});
|
||||
$('#Devices_Export_Save_Button').click(function () {
|
||||
$('#Devices_Export_Save_Button').on('click', function () {
|
||||
$form.attr('action', $form[0].dataset.saveaction);
|
||||
$form.submit();
|
||||
});
|
||||
@@ -181,7 +97,7 @@
|
||||
</div>
|
||||
@if (Model.ExportId.HasValue)
|
||||
{
|
||||
<div id="Devices_Export_Download_Dialog" class="dialog" title="Export Devices">
|
||||
<div id="Export_Download_Dialog" class="dialog" title="Export Devices">
|
||||
@if (Model.ExportResult.RecordCount == 0)
|
||||
{
|
||||
<h4>No records matched the filter criteria</h4>
|
||||
@@ -194,7 +110,7 @@
|
||||
</div>
|
||||
<script>
|
||||
$(function () {
|
||||
$('#Devices_Export_Download_Dialog')
|
||||
$('#Export_Download_Dialog')
|
||||
.dialog({
|
||||
width: 400,
|
||||
height: 164,
|
||||
@@ -205,7 +121,7 @@
|
||||
});
|
||||
</script>
|
||||
}
|
||||
<div id="Devices_Export_Exporting" class="dialog" title="Exporting Devices...">
|
||||
<div id="Export_Exporting" class="dialog" title="Exporting Devices...">
|
||||
<h4><i class="fa fa-lg fa-cog fa-spin" title="Please Wait"></i>Exporting devices...</h4>
|
||||
</div>
|
||||
<div class="actionBar">
|
||||
|
||||
@@ -54,11 +54,7 @@ namespace Disco.Web.Views.Device
|
||||
|
||||
Authorization.RequireAny(Claims.Device.Actions.Export);
|
||||
|
||||
ViewBag.Title = Html.ToBreadcrumb("Devices", MVC.Device.Index(), "Export Devices");
|
||||
|
||||
var optionsMetadata = ModelMetadata.FromLambdaExpression(m => m.Options, ViewData);
|
||||
var optionGroups = optionsMetadata.Properties.Where(p => p.ShortDisplayName != null && p.ModelType == typeof(bool))
|
||||
.GroupBy(m => m.ShortDisplayName);
|
||||
ViewBag.Title = Html.ToBreadcrumb("Devices", MVC.Device.Index(), "Export");
|
||||
|
||||
|
||||
#line default
|
||||
@@ -70,13 +66,13 @@ WriteLiteral(" id=\"Devices_Export\"");
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 13 "..\..\Views\Device\Export.cshtml"
|
||||
#line 9 "..\..\Views\Device\Export.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 13 "..\..\Views\Device\Export.cshtml"
|
||||
#line 9 "..\..\Views\Device\Export.cshtml"
|
||||
using (Html.BeginForm(MVC.API.Device.Export(), FormMethod.Post, new { @data_saveaction = Url.Action(MVC.API.Device.SaveExport()) }))
|
||||
{
|
||||
|
||||
@@ -84,14 +80,14 @@ WriteLiteral(">\r\n");
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 15 "..\..\Views\Device\Export.cshtml"
|
||||
#line 11 "..\..\Views\Device\Export.cshtml"
|
||||
Write(Html.AntiForgeryToken());
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 15 "..\..\Views\Device\Export.cshtml"
|
||||
#line 11 "..\..\Views\Device\Export.cshtml"
|
||||
|
||||
|
||||
|
||||
@@ -116,7 +112,7 @@ WriteLiteral(">\r\n Type:\r\n </th>\r\
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 24 "..\..\Views\Device\Export.cshtml"
|
||||
#line 20 "..\..\Views\Device\Export.cshtml"
|
||||
Write(Html.DropDownListFor(m => m.Options.ExportType, Enum.GetNames(typeof(Disco.Models.Services.Devices.DeviceExportTypes)).Select(t => new SelectListItem() { Text = t, Value = t })));
|
||||
|
||||
|
||||
@@ -133,7 +129,7 @@ WriteLiteral(">\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 26 "..\..\Views\Device\Export.cshtml"
|
||||
#line 22 "..\..\Views\Device\Export.cshtml"
|
||||
Write(Html.DropDownListFor(m => m.Options.ExportTypeTargetId, Model.DeviceBatches.Select(i => new SelectListItem() { Value = i.Key.ToString(), Text = i.Value })));
|
||||
|
||||
|
||||
@@ -150,7 +146,7 @@ WriteLiteral(">\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 29 "..\..\Views\Device\Export.cshtml"
|
||||
#line 25 "..\..\Views\Device\Export.cshtml"
|
||||
Write(Html.DropDownListFor(m => m.Options.ExportTypeTargetId, Model.DeviceModels.Select(i => new SelectListItem() { Value = i.Key.ToString(), Text = i.Value })));
|
||||
|
||||
|
||||
@@ -167,7 +163,7 @@ WriteLiteral(">\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 32 "..\..\Views\Device\Export.cshtml"
|
||||
#line 28 "..\..\Views\Device\Export.cshtml"
|
||||
Write(Html.DropDownListFor(m => m.Options.ExportTypeTargetId, Model.DeviceProfiles.Select(i => new SelectListItem() { Value = i.Key.ToString(), Text = i.Value })));
|
||||
|
||||
|
||||
@@ -177,7 +173,7 @@ WriteLiteral("\r\n </div>\r\n </td>\r\
|
||||
">\r\n <tr>\r\n <th>");
|
||||
|
||||
|
||||
#line 37 "..\..\Views\Device\Export.cshtml"
|
||||
#line 33 "..\..\Views\Device\Export.cshtml"
|
||||
Write(Html.LabelFor(m => m.Options.Format));
|
||||
|
||||
|
||||
@@ -188,7 +184,7 @@ WriteLiteral("</th>\r\n <td>\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 39 "..\..\Views\Device\Export.cshtml"
|
||||
#line 35 "..\..\Views\Device\Export.cshtml"
|
||||
Write(Html.DropDownListFor(m => m.Options.Format, Enum.GetNames(typeof(Disco.Models.Exporting.ExportFormat)).Select(v => new SelectListItem() { Value = v, Text = v })));
|
||||
|
||||
|
||||
@@ -197,385 +193,62 @@ WriteLiteral(" ");
|
||||
WriteLiteral("\r\n </td>\r\n </tr>\r\n </table>\r\n " +
|
||||
" </div>\r\n");
|
||||
|
||||
WriteLiteral(" <div");
|
||||
|
||||
WriteLiteral(" id=\"Devices_Export_Fields\"");
|
||||
|
||||
WriteLiteral(" class=\"form\"");
|
||||
|
||||
WriteLiteral(" style=\"width: 570px; margin-top: 15px;\"");
|
||||
|
||||
WriteLiteral(">\r\n <h2>Export Fields <a");
|
||||
|
||||
WriteLiteral(" id=\"Devices_Export_Fields_Defaults\"");
|
||||
|
||||
WriteLiteral(" href=\"#\"");
|
||||
|
||||
WriteLiteral(">(Defaults)</a></h2>\r\n <table>\r\n");
|
||||
|
||||
|
||||
#line 47 "..\..\Views\Device\Export.cshtml"
|
||||
|
||||
#line 40 "..\..\Views\Device\Export.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 47 "..\..\Views\Device\Export.cshtml"
|
||||
foreach (var optionGroup in optionGroups)
|
||||
{
|
||||
var optionFields = optionGroup.ToList();
|
||||
var itemsPerColumn = (int)Math.Ceiling((double)optionFields.Count / 2);
|
||||
#line 40 "..\..\Views\Device\Export.cshtml"
|
||||
Write(Html.Partial(MVC.Shared.Views._ExportFields, Model.Fields.FieldGroups));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <tr>\r\n <th");
|
||||
|
||||
WriteLiteral(" style=\"width: 120px;\"");
|
||||
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 53 "..\..\Views\Device\Export.cshtml"
|
||||
Write(optionGroup.Key);
|
||||
#line 40 "..\..\Views\Device\Export.cshtml"
|
||||
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n");
|
||||
WriteLiteral(" <script>\r\n $(function () {\r\n const $exportType " +
|
||||
"= $(\'#Options_ExportType\');\r\n const $exportTypeTargetContainers =" +
|
||||
" $(\'#Devices_Export_Type\').find(\'.Devices_Export_Type_Target\');\r\n " +
|
||||
" const $form = $exportType.closest(\'form\');\r\n let $exportingDialo" +
|
||||
"g = null;\r\n\r\n $exportType.on(\'change\', function () {\r\n " +
|
||||
" $exportTypeTargetContainers.hide();\r\n $exportTypeTar" +
|
||||
"getContainers.find(\'select\').prop(\'disabled\', true);\r\n\r\n swit" +
|
||||
"ch ($exportType.val()) {\r\n case \'Batch\':\r\n " +
|
||||
" $(\'#Devices_Export_Type_Target_Batch\').show().find(\'select\').prop(\'" +
|
||||
"disabled\', false);\r\n break;\r\n " +
|
||||
"case \'Profile\':\r\n $(\'#Devices_Export_Type_Target_Prof" +
|
||||
"ile\').show().find(\'select\').prop(\'disabled\', false);\r\n " +
|
||||
" break;\r\n case \'Model\':\r\n $(\'" +
|
||||
"#Devices_Export_Type_Target_Model\').show().find(\'select\').prop(\'disabled\', false" +
|
||||
");\r\n break;\r\n }\r\n }" +
|
||||
").trigger(\'change\');\r\n\r\n $.validator.unobtrusive.parse($form);\r\n " +
|
||||
" $form.data(\"validator\").settings.submitHandler = function () {\r\n " +
|
||||
" const exportFieldCount = $(\'#Export_Fields\').find(\'input:chec" +
|
||||
"ked\').length;\r\n if (exportFieldCount > 0) {\r\n " +
|
||||
" if ($exportingDialog == null) {\r\n $exportingD" +
|
||||
"ialog = $(\'#Export_Exporting\').dialog({\r\n width: " +
|
||||
"400,\r\n height: 164,\r\n " +
|
||||
" resizable: false,\r\n modal: true,\r\n " +
|
||||
" autoOpen: false\r\n });\r\n " +
|
||||
" }\r\n $exportingDialog.dialog(\'open\');\r\n\r\n " +
|
||||
" $form[0].submit();\r\n return;\r\n " +
|
||||
" }\r\n\r\n alert(\'Select at least one field to expo" +
|
||||
"rt.\');\r\n };\r\n\r\n $(\'#Devices_Export_Button\').on(\'cl" +
|
||||
"ick\', function () {\r\n $form.submit();\r\n });\r\n " +
|
||||
" $(\'#Devices_Export_Save_Button\').on(\'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 54 "..\..\Views\Device\Export.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 54 "..\..\Views\Device\Export.cshtml"
|
||||
if (optionFields.Count > 2)
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <span");
|
||||
|
||||
WriteLiteral(" style=\"display: block;\"");
|
||||
|
||||
WriteLiteral(" class=\"select\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteLiteral(" class=\"selectAll\"");
|
||||
|
||||
WriteLiteral(" href=\"#\"");
|
||||
|
||||
WriteLiteral(">ALL</a> | <a");
|
||||
|
||||
WriteLiteral(" class=\"selectNone\"");
|
||||
|
||||
WriteLiteral(" href=\"#\"");
|
||||
|
||||
WriteLiteral(">NONE</a></span>\r\n");
|
||||
|
||||
|
||||
#line 57 "..\..\Views\Device\Export.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" </th>\r\n <td>\r\n " +
|
||||
" <div");
|
||||
|
||||
WriteLiteral(" class=\"Devices_Export_Fields_Group\"");
|
||||
|
||||
WriteLiteral(">\r\n <table");
|
||||
|
||||
WriteLiteral(" class=\"none\"");
|
||||
|
||||
WriteLiteral(">\r\n <tr>\r\n " +
|
||||
" <td");
|
||||
|
||||
WriteLiteral(" style=\"width: 50%\"");
|
||||
|
||||
WriteLiteral(">\r\n <ul");
|
||||
|
||||
WriteLiteral(" class=\"none\"");
|
||||
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 65 "..\..\Views\Device\Export.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 65 "..\..\Views\Device\Export.cshtml"
|
||||
foreach (var optionItem in optionFields.Take(itemsPerColumn))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <li");
|
||||
|
||||
WriteAttribute("title", Tuple.Create(" title=\"", 4003), Tuple.Create("\"", 4034)
|
||||
|
||||
#line 67 "..\..\Views\Device\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 4011), Tuple.Create<System.Object, System.Int32>(optionItem.Description
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 4011), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">\r\n <input");
|
||||
|
||||
WriteLiteral(" type=\"checkbox\"");
|
||||
|
||||
WriteAttribute("id", Tuple.Create(" id=\"", 4116), Tuple.Create("\"", 4153)
|
||||
, Tuple.Create(Tuple.Create("", 4121), Tuple.Create("Options_", 4121), true)
|
||||
|
||||
#line 68 "..\..\Views\Device\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 4129), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 4129), false)
|
||||
);
|
||||
|
||||
WriteAttribute("name", Tuple.Create(" name=\"", 4154), Tuple.Create("\"", 4193)
|
||||
, Tuple.Create(Tuple.Create("", 4161), Tuple.Create("Options.", 4161), true)
|
||||
|
||||
#line 68 "..\..\Views\Device\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 4169), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 4169), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" value=\"true\"");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 68 "..\..\Views\Device\Export.cshtml"
|
||||
Write(((bool)optionItem.Model) ? "checked " : null);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" /><label");
|
||||
|
||||
WriteAttribute("for", Tuple.Create(" for=\"", 4264), Tuple.Create("\"", 4302)
|
||||
, Tuple.Create(Tuple.Create("", 4270), Tuple.Create("Options_", 4270), true)
|
||||
|
||||
#line 68 "..\..\Views\Device\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 4278), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 4278), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 68 "..\..\Views\Device\Export.cshtml"
|
||||
Write(optionItem.DisplayName);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</label>\r\n </li>\r\n");
|
||||
|
||||
|
||||
#line 70 "..\..\Views\Device\Export.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" </ul>\r\n " +
|
||||
" </td>\r\n <td");
|
||||
|
||||
WriteLiteral(" style=\"width: 50%\"");
|
||||
|
||||
WriteLiteral(">\r\n <ul");
|
||||
|
||||
WriteLiteral(" class=\"none\"");
|
||||
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 75 "..\..\Views\Device\Export.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 75 "..\..\Views\Device\Export.cshtml"
|
||||
foreach (var optionItem in optionFields.Skip(itemsPerColumn))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <li");
|
||||
|
||||
WriteAttribute("title", Tuple.Create(" title=\"", 4891), Tuple.Create("\"", 4922)
|
||||
|
||||
#line 77 "..\..\Views\Device\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 4899), Tuple.Create<System.Object, System.Int32>(optionItem.Description
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 4899), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">\r\n <input");
|
||||
|
||||
WriteLiteral(" type=\"checkbox\"");
|
||||
|
||||
WriteAttribute("id", Tuple.Create(" id=\"", 5004), Tuple.Create("\"", 5041)
|
||||
, Tuple.Create(Tuple.Create("", 5009), Tuple.Create("Options_", 5009), true)
|
||||
|
||||
#line 78 "..\..\Views\Device\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 5017), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 5017), false)
|
||||
);
|
||||
|
||||
WriteAttribute("name", Tuple.Create(" name=\"", 5042), Tuple.Create("\"", 5081)
|
||||
, Tuple.Create(Tuple.Create("", 5049), Tuple.Create("Options.", 5049), true)
|
||||
|
||||
#line 78 "..\..\Views\Device\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 5057), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 5057), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" value=\"true\"");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 78 "..\..\Views\Device\Export.cshtml"
|
||||
Write(((bool)optionItem.Model) ? "checked " : null);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" /><label");
|
||||
|
||||
WriteAttribute("for", Tuple.Create(" for=\"", 5152), Tuple.Create("\"", 5190)
|
||||
, Tuple.Create(Tuple.Create("", 5158), Tuple.Create("Options_", 5158), true)
|
||||
|
||||
#line 78 "..\..\Views\Device\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 5166), Tuple.Create<System.Object, System.Int32>(optionItem.PropertyName
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 5166), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 78 "..\..\Views\Device\Export.cshtml"
|
||||
Write(optionItem.DisplayName);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</label>\r\n </li>\r\n");
|
||||
|
||||
|
||||
#line 80 "..\..\Views\Device\Export.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(@" </ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
");
|
||||
|
||||
|
||||
#line 88 "..\..\Views\Device\Export.cshtml"
|
||||
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" </table>\r\n </div>\r\n");
|
||||
|
||||
WriteLiteral(" <script>\r\n $(function () {\r\n var exportDefaultF" +
|
||||
"ields = [\'DeviceSerialNumber\', \'ModelId\', \'ProfileId\', \'BatchId\', \'AssignedUserI" +
|
||||
"d\', \'DeviceLocation\', \'DeviceAssetNumber\'];\r\n var $exportFields =" +
|
||||
" $(\'#Devices_Export_Fields\');\r\n var $exportType = $(\'#Options_Exp" +
|
||||
"ortType\');\r\n var $exportTypeTargetContainers = $(\'#Devices_Export" +
|
||||
"_Type\').find(\'.Devices_Export_Type_Target\');\r\n var $form = $expor" +
|
||||
"tType.closest(\'form\');\r\n var $exportingDialog = null;\r\n\r\n " +
|
||||
" function exportTypeChange() {\r\n $exportTypeTargetCont" +
|
||||
"ainers.hide();\r\n $exportTypeTargetContainers.find(\'select\').p" +
|
||||
"rop(\'disabled\', true);\r\n\r\n switch ($exportType.val()) {\r\n " +
|
||||
" case \'Batch\':\r\n $(\'#Devices_Expor" +
|
||||
"t_Type_Target_Batch\').show().find(\'select\').prop(\'disabled\', false);\r\n " +
|
||||
" break;\r\n case \'Profile\':\r\n " +
|
||||
" $(\'#Devices_Export_Type_Target_Profile\').show().find(\'select\').pr" +
|
||||
"op(\'disabled\', false);\r\n break;\r\n " +
|
||||
" case \'Model\':\r\n $(\'#Devices_Export_Type_Target_Mo" +
|
||||
"del\').show().find(\'select\').prop(\'disabled\', false);\r\n " +
|
||||
" break;\r\n }\r\n }\r\n $exportType." +
|
||||
"change(exportTypeChange);\r\n exportTypeChange();\r\n\r\n " +
|
||||
" $exportFields.on(\'click\', \'a.selectAll,a.selectNone\', function () {\r\n " +
|
||||
" var $this = $(this);\r\n\r\n $this.closest(\'tr\').find(" +
|
||||
"\'input\').prop(\'checked\', $this.is(\'.selectAll\'));\r\n\r\n return " +
|
||||
"false;\r\n });\r\n\r\n $(\'#Devices_Export_Fields_Default" +
|
||||
"s\').click(function () {\r\n\r\n $exportFields.find(\'input\').prop(" +
|
||||
"\'checked\', false);\r\n\r\n $.each(exportDefaultFields, function (" +
|
||||
"index, value) {\r\n $(\'#Options_\' + value).prop(\'checked\', " +
|
||||
"true);\r\n });\r\n\r\n return false;\r\n " +
|
||||
" });\r\n\r\n // Submit Validation\r\n function subm" +
|
||||
"itHandler() {\r\n var exportFieldCount = $exportFields.find(\'in" +
|
||||
"put:checked\').length;\r\n\r\n if (exportFieldCount > 0) {\r\n\r\n " +
|
||||
" if ($exportingDialog == null) {\r\n " +
|
||||
" $exportingDialog = $(\'#Devices_Export_Exporting\').dialog({\r\n " +
|
||||
" width: 400,\r\n height: 164,\r\n " +
|
||||
" resizable: false,\r\n modal" +
|
||||
": true,\r\n autoOpen: false\r\n " +
|
||||
" });\r\n }\r\n $exportingDialog.d" +
|
||||
"ialog(\'open\');\r\n\r\n $form[0].submit();\r\n " +
|
||||
" }\r\n else\r\n alert(\'Select at least on" +
|
||||
"e field to export.\');\r\n }\r\n $.validator.unobtrusiv" +
|
||||
"e.parse($form);\r\n $form.data(\"validator\").settings.submitHandler " +
|
||||
"= submitHandler;\r\n\r\n $(\'#Devices_Export_Download_Dialog\').dialog(" +
|
||||
"{\r\n width: 400,\r\n height: 164,\r\n " +
|
||||
" resizable: false,\r\n modal: true,\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[0].dataset.saveaction);\r\n " +
|
||||
" $form.submit();\r\n });\r\n });\r\n </script>\r\n");
|
||||
|
||||
|
||||
#line 180 "..\..\Views\Device\Export.cshtml"
|
||||
#line 96 "..\..\Views\Device\Export.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -584,7 +257,7 @@ WriteLiteral(" <script>\r\n $(function () {\r\n
|
||||
WriteLiteral("</div>\r\n");
|
||||
|
||||
|
||||
#line 182 "..\..\Views\Device\Export.cshtml"
|
||||
#line 98 "..\..\Views\Device\Export.cshtml"
|
||||
if (Model.ExportId.HasValue)
|
||||
{
|
||||
|
||||
@@ -593,7 +266,7 @@ WriteLiteral("</div>\r\n");
|
||||
#line hidden
|
||||
WriteLiteral(" <div");
|
||||
|
||||
WriteLiteral(" id=\"Devices_Export_Download_Dialog\"");
|
||||
WriteLiteral(" id=\"Export_Download_Dialog\"");
|
||||
|
||||
WriteLiteral(" class=\"dialog\"");
|
||||
|
||||
@@ -602,13 +275,13 @@ WriteLiteral(" title=\"Export Devices\"");
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 185 "..\..\Views\Device\Export.cshtml"
|
||||
#line 101 "..\..\Views\Device\Export.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 185 "..\..\Views\Device\Export.cshtml"
|
||||
#line 101 "..\..\Views\Device\Export.cshtml"
|
||||
if (Model.ExportResult.RecordCount == 0)
|
||||
{
|
||||
|
||||
@@ -618,7 +291,7 @@ WriteLiteral(">\r\n");
|
||||
WriteLiteral(" <h4>No records matched the filter criteria</h4>\r\n");
|
||||
|
||||
|
||||
#line 188 "..\..\Views\Device\Export.cshtml"
|
||||
#line 104 "..\..\Views\Device\Export.cshtml"
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -629,7 +302,7 @@ WriteLiteral(" <h4>No records matched the filter criteria</h4>\r\n");
|
||||
WriteLiteral(" <h4>");
|
||||
|
||||
|
||||
#line 191 "..\..\Views\Device\Export.cshtml"
|
||||
#line 107 "..\..\Views\Device\Export.cshtml"
|
||||
Write(Model.ExportResult.RecordCount);
|
||||
|
||||
|
||||
@@ -638,7 +311,7 @@ WriteLiteral(" <h4>");
|
||||
WriteLiteral(" record");
|
||||
|
||||
|
||||
#line 191 "..\..\Views\Device\Export.cshtml"
|
||||
#line 107 "..\..\Views\Device\Export.cshtml"
|
||||
Write(Model.ExportResult.RecordCount != 1 ? "s" : null);
|
||||
|
||||
|
||||
@@ -648,14 +321,14 @@ WriteLiteral(" were successfully exported.</h4>\r\n");
|
||||
|
||||
WriteLiteral(" <a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 9958), Tuple.Create("\"", 10029)
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 5389), Tuple.Create("\"", 5460)
|
||||
|
||||
#line 192 "..\..\Views\Device\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 9965), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Device.ExportRetrieve(Model.ExportId.Value))
|
||||
#line 108 "..\..\Views\Device\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 5396), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Device.ExportRetrieve(Model.ExportId.Value))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 9965), false)
|
||||
, 5396), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" class=\"button\"");
|
||||
@@ -667,7 +340,7 @@ WriteLiteral(" class=\"fa fa-download fa-lg\"");
|
||||
WriteLiteral("></i>Download Device Export</a>\r\n");
|
||||
|
||||
|
||||
#line 193 "..\..\Views\Device\Export.cshtml"
|
||||
#line 109 "..\..\Views\Device\Export.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -677,7 +350,7 @@ WriteLiteral(" </div>\r\n");
|
||||
|
||||
WriteLiteral(@" <script>
|
||||
$(function () {
|
||||
$('#Devices_Export_Download_Dialog')
|
||||
$('#Export_Download_Dialog')
|
||||
.dialog({
|
||||
width: 400,
|
||||
height: 164,
|
||||
@@ -690,7 +363,7 @@ WriteLiteral(@" <script>
|
||||
");
|
||||
|
||||
|
||||
#line 207 "..\..\Views\Device\Export.cshtml"
|
||||
#line 123 "..\..\Views\Device\Export.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -698,7 +371,7 @@ WriteLiteral(@" <script>
|
||||
#line hidden
|
||||
WriteLiteral("<div");
|
||||
|
||||
WriteLiteral(" id=\"Devices_Export_Exporting\"");
|
||||
WriteLiteral(" id=\"Export_Exporting\"");
|
||||
|
||||
WriteLiteral(" class=\"dialog\"");
|
||||
|
||||
@@ -717,13 +390,13 @@ WriteLiteral(" class=\"actionBar\"");
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 212 "..\..\Views\Device\Export.cshtml"
|
||||
#line 128 "..\..\Views\Device\Export.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 212 "..\..\Views\Device\Export.cshtml"
|
||||
#line 128 "..\..\Views\Device\Export.cshtml"
|
||||
if (Authorization.Has(Claims.Config.ManageSavedExports))
|
||||
{
|
||||
|
||||
@@ -741,7 +414,7 @@ WriteLiteral(" class=\"button\"");
|
||||
WriteLiteral(">Save Export</button>\r\n");
|
||||
|
||||
|
||||
#line 215 "..\..\Views\Device\Export.cshtml"
|
||||
#line 131 "..\..\Views\Device\Export.cshtml"
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -762,7 +435,7 @@ WriteLiteral(" title=\"Requires Manage Saved Exports Permission\"");
|
||||
WriteLiteral(">Save Export</button>\r\n");
|
||||
|
||||
|
||||
#line 219 "..\..\Views\Device\Export.cshtml"
|
||||
#line 135 "..\..\Views\Device\Export.cshtml"
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -225,7 +225,7 @@
|
||||
|
||||
if (exportFieldCount > 0) {
|
||||
|
||||
const $exportingDialog = $('#Devices_Export_Exporting').dialog({
|
||||
const $exportingDialog = $('#Export_Exporting').dialog({
|
||||
width: 400,
|
||||
height: 164,
|
||||
resizable: false,
|
||||
@@ -239,13 +239,6 @@
|
||||
alert('Select at least one field to export.');
|
||||
};
|
||||
|
||||
$('#Devices_Export_Download_Dialog').dialog({
|
||||
width: 400,
|
||||
height: 164,
|
||||
resizable: false,
|
||||
modal: true,
|
||||
autoOpen: true
|
||||
});
|
||||
$('#Jobs_Export_Button').click(function () {
|
||||
$form.submit();
|
||||
});
|
||||
@@ -259,7 +252,7 @@
|
||||
</div>
|
||||
@if (Model.ExportId.HasValue)
|
||||
{
|
||||
<div id="Jobs_Export_Download_Dialog" class="dialog" title="Export Jobs">
|
||||
<div id="Export_Download_Dialog" class="dialog" title="Export Jobs">
|
||||
@if (Model.ExportResult.RecordCount == 0)
|
||||
{
|
||||
<h4>No records matched the filter criteria</h4>
|
||||
@@ -272,7 +265,7 @@
|
||||
</div>
|
||||
<script>
|
||||
$(function () {
|
||||
$('#Jobs_Export_Download_Dialog')
|
||||
$('#Export_Download_Dialog')
|
||||
.dialog({
|
||||
width: 400,
|
||||
height: 164,
|
||||
@@ -283,7 +276,7 @@
|
||||
});
|
||||
</script>
|
||||
}
|
||||
<div id="Jobs_Export_Exporting" class="dialog" title="Exporting Jobs...">
|
||||
<div id="Export_Exporting" class="dialog" title="Exporting Jobs...">
|
||||
<h4><i class="fa fa-lg fa-cog fa-spin" title="Please Wait"></i>Exporting jobs...</h4>
|
||||
</div>
|
||||
<div class="actionBar">
|
||||
|
||||
@@ -936,24 +936,20 @@ WriteLiteral(" <script>\r\n $(function () {\r\n
|
||||
"e($form);\r\n $form.data(\"validator\").settings.submitHandler = func" +
|
||||
"tion () {\r\n var exportFieldCount = $exportFields.find(\'input:" +
|
||||
"checked\').length;\r\n\r\n if (exportFieldCount > 0) {\r\n\r\n " +
|
||||
" const $exportingDialog = $(\'#Devices_Export_Exporting\').dialog({" +
|
||||
"\r\n width: 400,\r\n height: 1" +
|
||||
"64,\r\n resizable: false,\r\n " +
|
||||
"modal: true,\r\n autoOpen: true\r\n " +
|
||||
" });\r\n\r\n $form[0].submit();\r\n }\r\n " +
|
||||
" else\r\n alert(\'Select at least one field t" +
|
||||
"o export.\');\r\n };\r\n\r\n $(\'#Devices_Export_Download_" +
|
||||
"Dialog\').dialog({\r\n width: 400,\r\n height: " +
|
||||
"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 $(\'#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");
|
||||
" const $exportingDialog = $(\'#Export_Exporting\').dialog({\r\n " +
|
||||
" width: 400,\r\n height: 164,\r\n " +
|
||||
" resizable: false,\r\n modal: t" +
|
||||
"rue,\r\n autoOpen: true\r\n });\r\n\r" +
|
||||
"\n $form[0].submit();\r\n }\r\n " +
|
||||
" else\r\n alert(\'Select at least one field to export" +
|
||||
".\');\r\n };\r\n\r\n $(\'#Jobs_Export_Button\').click(funct" +
|
||||
"ion () {\r\n $form.submit();\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 258 "..\..\Views\Job\Export.cshtml"
|
||||
#line 251 "..\..\Views\Job\Export.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -962,7 +958,7 @@ WriteLiteral(" <script>\r\n $(function () {\r\n
|
||||
WriteLiteral("</div>\r\n");
|
||||
|
||||
|
||||
#line 260 "..\..\Views\Job\Export.cshtml"
|
||||
#line 253 "..\..\Views\Job\Export.cshtml"
|
||||
if (Model.ExportId.HasValue)
|
||||
{
|
||||
|
||||
@@ -971,7 +967,7 @@ WriteLiteral("</div>\r\n");
|
||||
#line hidden
|
||||
WriteLiteral(" <div");
|
||||
|
||||
WriteLiteral(" id=\"Jobs_Export_Download_Dialog\"");
|
||||
WriteLiteral(" id=\"Export_Download_Dialog\"");
|
||||
|
||||
WriteLiteral(" class=\"dialog\"");
|
||||
|
||||
@@ -980,13 +976,13 @@ WriteLiteral(" title=\"Export Jobs\"");
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 263 "..\..\Views\Job\Export.cshtml"
|
||||
#line 256 "..\..\Views\Job\Export.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 263 "..\..\Views\Job\Export.cshtml"
|
||||
#line 256 "..\..\Views\Job\Export.cshtml"
|
||||
if (Model.ExportResult.RecordCount == 0)
|
||||
{
|
||||
|
||||
@@ -996,7 +992,7 @@ WriteLiteral(">\r\n");
|
||||
WriteLiteral(" <h4>No records matched the filter criteria</h4>\r\n");
|
||||
|
||||
|
||||
#line 266 "..\..\Views\Job\Export.cshtml"
|
||||
#line 259 "..\..\Views\Job\Export.cshtml"
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1007,7 +1003,7 @@ WriteLiteral(" <h4>No records matched the filter criteria</h4>\r\n");
|
||||
WriteLiteral(" <h4>");
|
||||
|
||||
|
||||
#line 269 "..\..\Views\Job\Export.cshtml"
|
||||
#line 262 "..\..\Views\Job\Export.cshtml"
|
||||
Write(Model.ExportResult.RecordCount);
|
||||
|
||||
|
||||
@@ -1016,7 +1012,7 @@ WriteLiteral(" <h4>");
|
||||
WriteLiteral(" record");
|
||||
|
||||
|
||||
#line 269 "..\..\Views\Job\Export.cshtml"
|
||||
#line 262 "..\..\Views\Job\Export.cshtml"
|
||||
Write(Model.ExportResult.RecordCount != 1 ? "s" : null);
|
||||
|
||||
|
||||
@@ -1026,14 +1022,14 @@ WriteLiteral(" were successfully exported.</h4>\r\n");
|
||||
|
||||
WriteLiteral(" <a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 14696), Tuple.Create("\"", 14764)
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 14423), Tuple.Create("\"", 14491)
|
||||
|
||||
#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 263 "..\..\Views\Job\Export.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 14430), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.Job.ExportRetrieve(Model.ExportId.Value))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 14703), false)
|
||||
, 14430), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" class=\"button\"");
|
||||
@@ -1045,7 +1041,7 @@ WriteLiteral(" class=\"fa fa-download fa-lg\"");
|
||||
WriteLiteral("></i>Download Job Export</a>\r\n");
|
||||
|
||||
|
||||
#line 271 "..\..\Views\Job\Export.cshtml"
|
||||
#line 264 "..\..\Views\Job\Export.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -1055,7 +1051,7 @@ WriteLiteral(" </div>\r\n");
|
||||
|
||||
WriteLiteral(@" <script>
|
||||
$(function () {
|
||||
$('#Jobs_Export_Download_Dialog')
|
||||
$('#Export_Download_Dialog')
|
||||
.dialog({
|
||||
width: 400,
|
||||
height: 164,
|
||||
@@ -1068,7 +1064,7 @@ WriteLiteral(@" <script>
|
||||
");
|
||||
|
||||
|
||||
#line 285 "..\..\Views\Job\Export.cshtml"
|
||||
#line 278 "..\..\Views\Job\Export.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -1076,7 +1072,7 @@ WriteLiteral(@" <script>
|
||||
#line hidden
|
||||
WriteLiteral("<div");
|
||||
|
||||
WriteLiteral(" id=\"Jobs_Export_Exporting\"");
|
||||
WriteLiteral(" id=\"Export_Exporting\"");
|
||||
|
||||
WriteLiteral(" class=\"dialog\"");
|
||||
|
||||
@@ -1095,13 +1091,13 @@ WriteLiteral(" class=\"actionBar\"");
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 290 "..\..\Views\Job\Export.cshtml"
|
||||
#line 283 "..\..\Views\Job\Export.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 290 "..\..\Views\Job\Export.cshtml"
|
||||
#line 283 "..\..\Views\Job\Export.cshtml"
|
||||
if (Authorization.Has(Claims.Config.ManageSavedExports))
|
||||
{
|
||||
|
||||
@@ -1119,7 +1115,7 @@ WriteLiteral(" class=\"button\"");
|
||||
WriteLiteral(">Save Export</button>\r\n");
|
||||
|
||||
|
||||
#line 293 "..\..\Views\Job\Export.cshtml"
|
||||
#line 286 "..\..\Views\Job\Export.cshtml"
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1140,7 +1136,7 @@ WriteLiteral(" title=\"Requires Manage Saved Exports Permission\"");
|
||||
WriteLiteral(">Save Export</button>\r\n");
|
||||
|
||||
|
||||
#line 297 "..\..\Views\Job\Export.cshtml"
|
||||
#line 290 "..\..\Views\Job\Export.cshtml"
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
@using Disco.Models.Services.Exporting;
|
||||
@using System.Collections.Generic;
|
||||
@model List<ExportOptionGroup>
|
||||
@{
|
||||
var optionId = 0;
|
||||
}
|
||||
<div id="Export_Fields" class="form" style="width: 570px; margin-top: 15px;">
|
||||
<h2>Export Fields <a id="Export_Fields_Defaults" href="#">(Defaults)</a></h2>
|
||||
<table>
|
||||
@foreach (var optionGroup in Model)
|
||||
{
|
||||
var optionFields = optionGroup.ToList();
|
||||
var itemsPerColumn = (int)Math.Ceiling((double)optionFields.Count / 2);
|
||||
<tr>
|
||||
<th style="width: 120px;">
|
||||
@optionGroup.Name
|
||||
@if (optionFields.Count > 2)
|
||||
{
|
||||
<span style="display: block;" class="select"><a class="selectAll" href="#">ALL</a> | <a class="selectNone" href="#">NONE</a></span>
|
||||
}
|
||||
</th>
|
||||
<td>
|
||||
<div class="Export_Fields_Group">
|
||||
<table class="none">
|
||||
<tr>
|
||||
<td style="width: 50%">
|
||||
<ul class="none">
|
||||
@foreach (var optionItem in optionFields.Take(itemsPerColumn))
|
||||
{
|
||||
<li title="@optionItem.Description">
|
||||
<input type="checkbox" id="Export_Field_Option_@optionId" name="Options.@(optionItem.CustomKey ?? optionItem.Name)" value="@(optionItem.CustomValue ?? "true")" @(optionItem.IsDefault ? " data-default" : null) @((optionItem.IsChecked) ? " checked " : null) /><label for="Export_Field_Option_@optionId">@optionItem.DisplayName</label>
|
||||
</li>
|
||||
optionId++;
|
||||
}
|
||||
</ul>
|
||||
</td>
|
||||
<td style="width: 50%">
|
||||
<ul class="none">
|
||||
@foreach (var optionItem in optionFields.Skip(itemsPerColumn))
|
||||
{
|
||||
<li title="@optionItem.Description">
|
||||
<input type="checkbox" id="Export_Field_Option_@optionId" name="Options.@(optionItem.CustomKey ?? optionItem.Name)" value="@(optionItem.CustomValue ?? "true")" @(optionItem.IsDefault ? " data-default" : null) @((optionItem.IsChecked) ? " checked " : null) /><label for="Export_Field_Option_@optionId">@optionItem.DisplayName</label>
|
||||
</li>
|
||||
optionId++;
|
||||
}
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
}
|
||||
</table>
|
||||
</div>
|
||||
<script>
|
||||
$(function () {
|
||||
var $exportFields = $('#Export_Fields');
|
||||
var $form = $exportFields.closest('form');
|
||||
var $exportingDialog = null;
|
||||
|
||||
$exportFields.on('click', 'a.selectAll,a.selectNone', function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
const $this = $(this);
|
||||
$this.closest('tr').find('input').prop('checked', $this.is('.selectAll'));
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
$('#Export_Fields_Defaults').click(function (e) {
|
||||
e.preventDefault();
|
||||
$exportFields.find('input').prop('checked', false);
|
||||
$exportFields.find('input[data-default]').prop('checked', true);
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,450 @@
|
||||
#pragma warning disable 1591
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Disco.Web.Views.Shared
|
||||
{
|
||||
using System;
|
||||
|
||||
#line 2 "..\..\Views\Shared\_ExportFields.cshtml"
|
||||
using System.Collections.Generic;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.Helpers;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Mvc.Ajax;
|
||||
using System.Web.Mvc.Html;
|
||||
using System.Web.Routing;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.WebPages;
|
||||
using Disco;
|
||||
using Disco.Models.Repository;
|
||||
|
||||
#line 1 "..\..\Views\Shared\_ExportFields.cshtml"
|
||||
using Disco.Models.Services.Exporting;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
using Disco.Services;
|
||||
using Disco.Services.Authorization;
|
||||
using Disco.Services.Web;
|
||||
using Disco.Web;
|
||||
using Disco.Web.Extensions;
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
|
||||
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/Shared/_ExportFields.cshtml")]
|
||||
public partial class _ExportFields : Disco.Services.Web.WebViewPage<List<ExportOptionGroup>>
|
||||
{
|
||||
public _ExportFields()
|
||||
{
|
||||
}
|
||||
public override void Execute()
|
||||
{
|
||||
|
||||
#line 4 "..\..\Views\Shared\_ExportFields.cshtml"
|
||||
|
||||
var optionId = 0;
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n<div");
|
||||
|
||||
WriteLiteral(" id=\"Export_Fields\"");
|
||||
|
||||
WriteLiteral(" class=\"form\"");
|
||||
|
||||
WriteLiteral(" style=\"width: 570px; margin-top: 15px;\"");
|
||||
|
||||
WriteLiteral(">\r\n <h2>Export Fields <a");
|
||||
|
||||
WriteLiteral(" id=\"Export_Fields_Defaults\"");
|
||||
|
||||
WriteLiteral(" href=\"#\"");
|
||||
|
||||
WriteLiteral(">(Defaults)</a></h2>\r\n <table>\r\n");
|
||||
|
||||
|
||||
#line 10 "..\..\Views\Shared\_ExportFields.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 10 "..\..\Views\Shared\_ExportFields.cshtml"
|
||||
foreach (var optionGroup in Model)
|
||||
{
|
||||
var optionFields = optionGroup.ToList();
|
||||
var itemsPerColumn = (int)Math.Ceiling((double)optionFields.Count / 2);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <tr>\r\n <th");
|
||||
|
||||
WriteLiteral(" style=\"width: 120px;\"");
|
||||
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 16 "..\..\Views\Shared\_ExportFields.cshtml"
|
||||
Write(optionGroup.Name);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n");
|
||||
|
||||
|
||||
#line 17 "..\..\Views\Shared\_ExportFields.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 17 "..\..\Views\Shared\_ExportFields.cshtml"
|
||||
if (optionFields.Count > 2)
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <span");
|
||||
|
||||
WriteLiteral(" style=\"display: block;\"");
|
||||
|
||||
WriteLiteral(" class=\"select\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteLiteral(" class=\"selectAll\"");
|
||||
|
||||
WriteLiteral(" href=\"#\"");
|
||||
|
||||
WriteLiteral(">ALL</a> | <a");
|
||||
|
||||
WriteLiteral(" class=\"selectNone\"");
|
||||
|
||||
WriteLiteral(" href=\"#\"");
|
||||
|
||||
WriteLiteral(">NONE</a></span>\r\n");
|
||||
|
||||
|
||||
#line 20 "..\..\Views\Shared\_ExportFields.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" </th>\r\n <td>\r\n <div");
|
||||
|
||||
WriteLiteral(" class=\"Export_Fields_Group\"");
|
||||
|
||||
WriteLiteral(">\r\n <table");
|
||||
|
||||
WriteLiteral(" class=\"none\"");
|
||||
|
||||
WriteLiteral(">\r\n <tr>\r\n <td");
|
||||
|
||||
WriteLiteral(" style=\"width: 50%\"");
|
||||
|
||||
WriteLiteral(">\r\n <ul");
|
||||
|
||||
WriteLiteral(" class=\"none\"");
|
||||
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 28 "..\..\Views\Shared\_ExportFields.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 28 "..\..\Views\Shared\_ExportFields.cshtml"
|
||||
foreach (var optionItem in optionFields.Take(itemsPerColumn))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <li");
|
||||
|
||||
WriteAttribute("title", Tuple.Create(" title=\"", 1349), Tuple.Create("\"", 1380)
|
||||
|
||||
#line 30 "..\..\Views\Shared\_ExportFields.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1357), Tuple.Create<System.Object, System.Int32>(optionItem.Description
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1357), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">\r\n <input");
|
||||
|
||||
WriteLiteral(" type=\"checkbox\"");
|
||||
|
||||
WriteAttribute("id", Tuple.Create(" id=\"", 1454), Tuple.Create("\"", 1488)
|
||||
, Tuple.Create(Tuple.Create("", 1459), Tuple.Create("Export_Field_Option_", 1459), true)
|
||||
|
||||
#line 31 "..\..\Views\Shared\_ExportFields.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1479), Tuple.Create<System.Object, System.Int32>(optionId
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1479), false)
|
||||
);
|
||||
|
||||
WriteAttribute("name", Tuple.Create(" name=\"", 1489), Tuple.Create("\"", 1546)
|
||||
, Tuple.Create(Tuple.Create("", 1496), Tuple.Create("Options.", 1496), true)
|
||||
|
||||
#line 31 "..\..\Views\Shared\_ExportFields.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1504), Tuple.Create<System.Object, System.Int32>(optionItem.CustomKey ?? optionItem.Name
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1504), false)
|
||||
);
|
||||
|
||||
WriteAttribute("value", Tuple.Create(" value=\"", 1547), Tuple.Create("\"", 1590)
|
||||
|
||||
#line 31 "..\..\Views\Shared\_ExportFields.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1555), Tuple.Create<System.Object, System.Int32>(optionItem.CustomValue ?? "true"
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1555), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 31 "..\..\Views\Shared\_ExportFields.cshtml"
|
||||
Write(optionItem.IsDefault ? " data-default" : null);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 31 "..\..\Views\Shared\_ExportFields.cshtml"
|
||||
Write((optionItem.IsChecked) ? " checked " : null);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" /><label");
|
||||
|
||||
WriteAttribute("for", Tuple.Create(" for=\"", 1696), Tuple.Create("\"", 1731)
|
||||
, Tuple.Create(Tuple.Create("", 1702), Tuple.Create("Export_Field_Option_", 1702), true)
|
||||
|
||||
#line 31 "..\..\Views\Shared\_ExportFields.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1722), Tuple.Create<System.Object, System.Int32>(optionId
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1722), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 31 "..\..\Views\Shared\_ExportFields.cshtml"
|
||||
Write(optionItem.DisplayName);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</label>\r\n </li>\r\n");
|
||||
|
||||
|
||||
#line 33 "..\..\Views\Shared\_ExportFields.cshtml"
|
||||
optionId++;
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" </ul>\r\n </td>\r" +
|
||||
"\n <td");
|
||||
|
||||
WriteLiteral(" style=\"width: 50%\"");
|
||||
|
||||
WriteLiteral(">\r\n <ul");
|
||||
|
||||
WriteLiteral(" class=\"none\"");
|
||||
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 39 "..\..\Views\Shared\_ExportFields.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 39 "..\..\Views\Shared\_ExportFields.cshtml"
|
||||
foreach (var optionItem in optionFields.Skip(itemsPerColumn))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <li");
|
||||
|
||||
WriteAttribute("title", Tuple.Create(" title=\"", 2305), Tuple.Create("\"", 2336)
|
||||
|
||||
#line 41 "..\..\Views\Shared\_ExportFields.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 2313), Tuple.Create<System.Object, System.Int32>(optionItem.Description
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 2313), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">\r\n <input");
|
||||
|
||||
WriteLiteral(" type=\"checkbox\"");
|
||||
|
||||
WriteAttribute("id", Tuple.Create(" id=\"", 2410), Tuple.Create("\"", 2444)
|
||||
, Tuple.Create(Tuple.Create("", 2415), Tuple.Create("Export_Field_Option_", 2415), true)
|
||||
|
||||
#line 42 "..\..\Views\Shared\_ExportFields.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 2435), Tuple.Create<System.Object, System.Int32>(optionId
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 2435), false)
|
||||
);
|
||||
|
||||
WriteAttribute("name", Tuple.Create(" name=\"", 2445), Tuple.Create("\"", 2502)
|
||||
, Tuple.Create(Tuple.Create("", 2452), Tuple.Create("Options.", 2452), true)
|
||||
|
||||
#line 42 "..\..\Views\Shared\_ExportFields.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 2460), Tuple.Create<System.Object, System.Int32>(optionItem.CustomKey ?? optionItem.Name
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 2460), false)
|
||||
);
|
||||
|
||||
WriteAttribute("value", Tuple.Create(" value=\"", 2503), Tuple.Create("\"", 2546)
|
||||
|
||||
#line 42 "..\..\Views\Shared\_ExportFields.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 2511), Tuple.Create<System.Object, System.Int32>(optionItem.CustomValue ?? "true"
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 2511), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 42 "..\..\Views\Shared\_ExportFields.cshtml"
|
||||
Write(optionItem.IsDefault ? " data-default" : null);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 42 "..\..\Views\Shared\_ExportFields.cshtml"
|
||||
Write((optionItem.IsChecked) ? " checked " : null);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" /><label");
|
||||
|
||||
WriteAttribute("for", Tuple.Create(" for=\"", 2652), Tuple.Create("\"", 2687)
|
||||
, Tuple.Create(Tuple.Create("", 2658), Tuple.Create("Export_Field_Option_", 2658), true)
|
||||
|
||||
#line 42 "..\..\Views\Shared\_ExportFields.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 2678), Tuple.Create<System.Object, System.Int32>(optionId
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 2678), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 42 "..\..\Views\Shared\_ExportFields.cshtml"
|
||||
Write(optionItem.DisplayName);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</label>\r\n </li>\r\n");
|
||||
|
||||
|
||||
#line 44 "..\..\Views\Shared\_ExportFields.cshtml"
|
||||
optionId++;
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" </ul>\r\n </td>\r" +
|
||||
"\n </tr>\r\n </table>\r\n " +
|
||||
" </div>\r\n </td>\r\n </tr>\r\n");
|
||||
|
||||
|
||||
#line 53 "..\..\Views\Shared\_ExportFields.cshtml"
|
||||
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(@" </table>
|
||||
</div>
|
||||
<script>
|
||||
$(function () {
|
||||
var $exportFields = $('#Export_Fields');
|
||||
var $form = $exportFields.closest('form');
|
||||
var $exportingDialog = null;
|
||||
|
||||
$exportFields.on('click', 'a.selectAll,a.selectNone', function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
const $this = $(this);
|
||||
$this.closest('tr').find('input').prop('checked', $this.is('.selectAll'));
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
$('#Export_Fields_Defaults').click(function (e) {
|
||||
e.preventDefault();
|
||||
$exportFields.find('input').prop('checked', false);
|
||||
$exportFields.find('input[data-default]').prop('checked', true);
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore 1591
|
||||
@@ -17,7 +17,7 @@
|
||||
<div class="page">
|
||||
<header>
|
||||
<div id="heading">
|
||||
<a href="@Url.Action(MVC.Job.Index())"><i title="Disco ICT - Jobs"></i></a>
|
||||
<a href="@Url.Action(MVC.Job.Index())"><i title="Disco ICT"></i></a>
|
||||
</div>
|
||||
<nav>
|
||||
<ul id="menu">
|
||||
|
||||
@@ -135,7 +135,7 @@ WriteAttribute("href", Tuple.Create(" href=\"", 688), Tuple.Create("\"", 723)
|
||||
|
||||
WriteLiteral("><i");
|
||||
|
||||
WriteLiteral(" title=\"Disco ICT - Jobs\"");
|
||||
WriteLiteral(" title=\"Disco ICT\"");
|
||||
|
||||
WriteLiteral("></i></a>\r\n </div>\r\n <nav>\r\n <ul");
|
||||
|
||||
@@ -143,15 +143,15 @@ WriteLiteral(" id=\"menu\"");
|
||||
|
||||
WriteLiteral(">\r\n <li");
|
||||
|
||||
WriteAttribute("class", Tuple.Create(" class=\"", 857), Tuple.Create("\"", 947)
|
||||
, Tuple.Create(Tuple.Create("", 865), Tuple.Create("d-sm", 865), true)
|
||||
WriteAttribute("class", Tuple.Create(" class=\"", 850), Tuple.Create("\"", 940)
|
||||
, Tuple.Create(Tuple.Create("", 858), Tuple.Create("d-sm", 858), true)
|
||||
|
||||
#line 24 "..\..\Views\Shared\_Layout.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 869), Tuple.Create<System.Object, System.Int32>((string)ViewContext.ViewData["MenuArea"] == MVC.Job.Name ? " active" : null
|
||||
, Tuple.Create(Tuple.Create("", 862), Tuple.Create<System.Object, System.Int32>((string)ViewContext.ViewData["MenuArea"] == MVC.Job.Name ? " active" : null
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 869), false)
|
||||
, 862), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
@@ -208,37 +208,37 @@ WriteLiteral("></i><a>Queues</a>\r\n <ul>\r\n
|
||||
#line hidden
|
||||
WriteLiteral(" <li><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1688), Tuple.Create("\"", 1745)
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1681), Tuple.Create("\"", 1738)
|
||||
|
||||
#line 35 "..\..\Views\Shared\_Layout.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1695), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.Job.Queue(queueToken.JobQueue.Id))
|
||||
, Tuple.Create(Tuple.Create("", 1688), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.Job.Queue(queueToken.JobQueue.Id))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1695), false)
|
||||
, 1688), false)
|
||||
);
|
||||
|
||||
WriteLiteral("><i");
|
||||
|
||||
WriteAttribute("class", Tuple.Create(" class=\"", 1749), Tuple.Create("\"", 1832)
|
||||
, Tuple.Create(Tuple.Create("", 1757), Tuple.Create("fa", 1757), true)
|
||||
, Tuple.Create(Tuple.Create(" ", 1759), Tuple.Create("fa-", 1760), true)
|
||||
WriteAttribute("class", Tuple.Create(" class=\"", 1742), Tuple.Create("\"", 1825)
|
||||
, Tuple.Create(Tuple.Create("", 1750), Tuple.Create("fa", 1750), true)
|
||||
, Tuple.Create(Tuple.Create(" ", 1752), Tuple.Create("fa-", 1753), true)
|
||||
|
||||
#line 35 "..\..\Views\Shared\_Layout.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1763), Tuple.Create<System.Object, System.Int32>(queueToken.JobQueue.Icon
|
||||
, Tuple.Create(Tuple.Create("", 1756), Tuple.Create<System.Object, System.Int32>(queueToken.JobQueue.Icon
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1763), false)
|
||||
, Tuple.Create(Tuple.Create(" ", 1790), Tuple.Create("fa-fw", 1791), true)
|
||||
, Tuple.Create(Tuple.Create(" ", 1796), Tuple.Create("d-", 1797), true)
|
||||
, 1756), false)
|
||||
, Tuple.Create(Tuple.Create(" ", 1783), Tuple.Create("fa-fw", 1784), true)
|
||||
, Tuple.Create(Tuple.Create(" ", 1789), Tuple.Create("d-", 1790), true)
|
||||
|
||||
#line 35 "..\..\Views\Shared\_Layout.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1799), Tuple.Create<System.Object, System.Int32>(queueToken.JobQueue.IconColour
|
||||
, Tuple.Create(Tuple.Create("", 1792), Tuple.Create<System.Object, System.Int32>(queueToken.JobQueue.IconColour
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1799), false)
|
||||
, 1792), false)
|
||||
);
|
||||
|
||||
WriteLiteral("></i>");
|
||||
@@ -718,14 +718,14 @@ WriteLiteral(" </ul>\r\n </li>\r\n");
|
||||
#line hidden
|
||||
WriteLiteral(" <li");
|
||||
|
||||
WriteAttribute("class", Tuple.Create(" class=\"", 6912), Tuple.Create("\"", 7000)
|
||||
WriteAttribute("class", Tuple.Create(" class=\"", 6905), Tuple.Create("\"", 6993)
|
||||
|
||||
#line 111 "..\..\Views\Shared\_Layout.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 6920), Tuple.Create<System.Object, System.Int32>((string)ViewContext.ViewData["MenuArea"] == MVC.Device.Name ? "active" : null
|
||||
, Tuple.Create(Tuple.Create("", 6913), Tuple.Create<System.Object, System.Int32>((string)ViewContext.ViewData["MenuArea"] == MVC.Device.Name ? "active" : null
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 6920), false)
|
||||
, 6913), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
@@ -758,14 +758,14 @@ WriteLiteral(" ");
|
||||
#line hidden
|
||||
WriteLiteral(" <li");
|
||||
|
||||
WriteAttribute("class", Tuple.Create(" class=\"", 7213), Tuple.Create("\"", 7299)
|
||||
WriteAttribute("class", Tuple.Create(" class=\"", 7206), Tuple.Create("\"", 7292)
|
||||
|
||||
#line 115 "..\..\Views\Shared\_Layout.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 7221), Tuple.Create<System.Object, System.Int32>((string)ViewContext.ViewData["MenuArea"] == MVC.User.Name ? "active" : null
|
||||
, Tuple.Create(Tuple.Create("", 7214), Tuple.Create<System.Object, System.Int32>((string)ViewContext.ViewData["MenuArea"] == MVC.User.Name ? "active" : null
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 7221), false)
|
||||
, 7214), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
@@ -788,15 +788,15 @@ WriteLiteral("</li>\r\n");
|
||||
#line hidden
|
||||
WriteLiteral(" <li");
|
||||
|
||||
WriteAttribute("class", Tuple.Create(" class=\"", 7413), Tuple.Create("\"", 7511)
|
||||
, Tuple.Create(Tuple.Create("", 7421), Tuple.Create("moveRight", 7421), true)
|
||||
WriteAttribute("class", Tuple.Create(" class=\"", 7406), Tuple.Create("\"", 7504)
|
||||
, Tuple.Create(Tuple.Create("", 7414), Tuple.Create("moveRight", 7414), true)
|
||||
|
||||
#line 117 "..\..\Views\Shared\_Layout.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 7430), Tuple.Create<System.Object, System.Int32>((string)ViewContext.ViewData["MenuArea"] == MVC.Public.Name ? " active" : null
|
||||
, Tuple.Create(Tuple.Create("", 7423), Tuple.Create<System.Object, System.Int32>((string)ViewContext.ViewData["MenuArea"] == MVC.Public.Name ? " active" : null
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 7430), false)
|
||||
, 7423), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
@@ -826,14 +826,14 @@ WriteLiteral("</li>\r\n");
|
||||
#line hidden
|
||||
WriteLiteral(" <li");
|
||||
|
||||
WriteAttribute("class", Tuple.Create(" class=\"", 7689), Tuple.Create("\"", 7777)
|
||||
WriteAttribute("class", Tuple.Create(" class=\"", 7682), Tuple.Create("\"", 7770)
|
||||
|
||||
#line 120 "..\..\Views\Shared\_Layout.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 7697), Tuple.Create<System.Object, System.Int32>((string)ViewContext.ViewData["MenuArea"] == MVC.Config.Name ? "active" : null
|
||||
, Tuple.Create(Tuple.Create("", 7690), Tuple.Create<System.Object, System.Int32>((string)ViewContext.ViewData["MenuArea"] == MVC.Config.Name ? "active" : null
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 7697), false)
|
||||
, 7690), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
Reference in New Issue
Block a user