View | Details | Raw Unified | Return to bug 37311
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smtp_servers.tt (-11 / +4 lines)
Lines 402-408 Link Here
402
                    {
402
                    {
403
                        "data": function( row, type, val, meta ) {
403
                        "data": function( row, type, val, meta ) {
404
                            if ( row.debug ) {
404
                            if ( row.debug ) {
405
                                return "[% tp("Active", "On") | html %]";
405
                                let result = '<span class="badge text-bg-warning">' + "[% tp("Active", "On") | html %]" + '</span>';
406
                                return result;
406
                            }
407
                            }
407
                            else {
408
                            else {
408
                                return _("");
409
                                return _("");
Lines 414-420 Link Here
414
                    {
415
                    {
415
                        "data": function( row, type, val, meta ) {
416
                        "data": function( row, type, val, meta ) {
416
                            if ( row.is_default ) {
417
                            if ( row.is_default ) {
417
                                return _("Default");
418
                                let result = '<span class="badge text-bg-success">' + _("Default") + '</span>';
419
                                return result;
418
                            } else {
420
                            } else {
419
                                return "";
421
                                return "";
420
                            }
422
                            }
Lines 432-445 Link Here
432
                        "orderable": false
434
                        "orderable": false
433
                    }
435
                    }
434
                ],
436
                ],
435
                createdRow: function (row, data, dataIndex) {
436
                    if ( data.is_default ) {
437
                        $(row).addClass('default');
438
                    }
439
                    if ( data.debug ) {
440
                        $(row).addClass('debug');
441
                    }
442
                },
443
            });
437
            });
444
438
445
            $('#smtp_servers').on( "click", '.delete_server', function () {
439
            $('#smtp_servers').on( "click", '.delete_server', function () {
446
- 

Return to bug 37311