|
Lines 319-324
Link Here
|
| 319 |
[% MACRO jsinclude BLOCK %] |
319 |
[% MACRO jsinclude BLOCK %] |
| 320 |
[% Asset.js("js/admin-menu.js") | $raw %] |
320 |
[% Asset.js("js/admin-menu.js") | $raw %] |
| 321 |
[% INCLUDE 'datatables.inc' %] |
321 |
[% INCLUDE 'datatables.inc' %] |
|
|
322 |
<script> |
| 323 |
const i18n = { |
| 324 |
on: "[% tp("Active", "On") | html %]"; |
| 325 |
}; |
| 326 |
</script> |
| 327 |
|
| 322 |
<script> |
328 |
<script> |
| 323 |
$(document).ready(function() { |
329 |
$(document).ready(function() { |
| 324 |
|
330 |
|
|
Lines 396-402
Link Here
|
| 396 |
{ |
402 |
{ |
| 397 |
data: function( row, type, val, meta ) { |
403 |
data: function( row, type, val, meta ) { |
| 398 |
if ( row.debug ) { |
404 |
if ( row.debug ) { |
| 399 |
let result = '<span class="badge text-bg-warning">' + "[% tp("Active", "On") | html %]" + '</span>'; |
405 |
let result = '<span class="badge text-bg-warning">' + i18n.on + '</span>'; |
| 400 |
return result; |
406 |
return result; |
| 401 |
} |
407 |
} |
| 402 |
else { |
408 |
else { |
| 403 |
- |
|
|