feature: saved exports; include jobs and flags
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user