diff --git a/module/Job/view/job/job/actions.phtml b/module/Job/view/job/job/actions.phtml index 7c2354ba..7374d08b 100644 --- a/module/Job/view/job/job/actions.phtml +++ b/module/Job/view/job/job/actions.phtml @@ -72,6 +72,7 @@ $this->headTitle($title); +
translate("Job name"); ?>translate("Status"); ?> translate("Actions"); ?>
@@ -106,13 +107,9 @@ $this->headTitle($title); "url": "basePath() . '/js/dataTables/language/'; ?>" + getLocale('') }, "columns" : [ - { - "data": null - }, - { - "orderable": false, - "data": null - } + { "data": null }, + { "data": "enabled", "orderable": true }, + { "data": null, "orderable": false } ], "paging": true, "pagingType": "full_numbers", @@ -125,16 +122,30 @@ $this->headTitle($title); "columnDefs": [ { "targets": 0, - "data": null, "render": function(data, type, full, meta) { return data.name; } }, { "targets": 1, - "data": null, "render": function(data, type, full, meta) { - return '" id="btn-1"> " id="btn-1"> " id="btn-1">'; + if(data) { + return 'translate("Enabled"); ?>'; + } + else { + return 'translate("Disabled"); ?>'; + } + } + }, + { + "targets": 2, + "render": function(data, type, full, meta) { + if(data.enabled) { + return '" id="btn-1"> " id="btn-1">'; + } + else { + return '" id="btn-1"> " id="btn-1">'; + } } } ]