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

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss (-8 lines)
Lines 360-373 tr { Link Here
360
            font-weight: bold;
360
            font-weight: bold;
361
        }
361
        }
362
    }
362
    }
363
364
    &.debug {
365
        td {
366
            color: #CC0000;
367
            font-style: italic;
368
            font-weight: bold;
369
        }
370
    }
371
}
363
}
372
364
373
.selections-table {
365
.selections-table {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smtp_servers.tt (-17 / +20 lines)
Lines 255-260 Link Here
255
255
256
    [% IF servers_count > 0 %]
256
    [% IF servers_count > 0 %]
257
        <div class="page-section">
257
        <div class="page-section">
258
            <h3>All SMTP servers</h3>
258
            <table id="smtp_servers">
259
            <table id="smtp_servers">
259
                <thead>
260
                <thead>
260
                    <tr>
261
                    <tr>
Lines 404-410 Link Here
404
                                return _("On");
405
                                return _("On");
405
                            }
406
                            }
406
                            else {
407
                            else {
407
                                return _("Off");
408
                                return _("");
408
                            }
409
                            }
409
                        },
410
                        },
410
                        "searchable": false,
411
                        "searchable": false,
Lines 413-422 Link Here
413
                    {
414
                    {
414
                        "data": function( row, type, val, meta ) {
415
                        "data": function( row, type, val, meta ) {
415
                            if ( row.is_default ) {
416
                            if ( row.is_default ) {
416
                                return _("Yes");
417
                                return _("Default");
417
                            }
418
                            } else {
418
                            else {
419
                                return "";
419
                                return _("No");
420
                            }
420
                            }
421
                        },
421
                        },
422
                        "searchable": false,
422
                        "searchable": false,
Lines 434-440 Link Here
434
                ],
434
                ],
435
                createdRow: function (row, data, dataIndex) {
435
                createdRow: function (row, data, dataIndex) {
436
                    if ( data.is_default ) {
436
                    if ( data.is_default ) {
437
                        $(row).addClass('default warn');
437
                        $(row).addClass('default');
438
                    }
438
                    }
439
                    if ( data.debug ) {
439
                    if ( data.debug ) {
440
                        $(row).addClass('debug');
440
                        $(row).addClass('debug');
Lines 488-503 Link Here
488
[% END %]
488
[% END %]
489
489
490
[% BLOCK default_server_info %]
490
[% BLOCK default_server_info %]
491
    <div class="alert alert-info" id="default_server_message">
491
    <div class="page-section">
492
        <p>Current default configuration:</p>
492
        <div class="rows" id="default_server_message">
493
493
            <h2>Current default configuration</h2>
494
        <ul>
494
            <ul>
495
            <li><strong>Host</strong>: [%- default_config.host | html -%]</li>
495
                <li><span class="label">Host: </span> [%- default_config.host | html -%]</li>
496
            <li><strong>Port</strong>: [%- default_config.port | html -%]</li>
496
                <li><span class="label">Port: </span> [%- default_config.port | html -%]</li>
497
            <li><strong>Timeout (secs)</strong>: [%- default_config.timeout | html -%]</li>
497
                <li><span class="label">Timeout (secs): </span> [%- default_config.timeout | html -%]</li>
498
            <li><strong>SSL</strong>: [%- IF default_config.ssl_mode == 'disabled' -%]<span>Disabled</span>[%- ELSIF default_config.ssl_mode == 'ssl' -%]<span>SSL</span>[%- ELSE -%]<span>STARTTLS</span>[%- END -%]</li>
498
                <li><span class="label">SSL: </span> [%- IF default_config.ssl_mode == 'disabled' -%]<span>Disabled</span>[%- ELSIF default_config.ssl_mode == 'ssl' -%]<span>SSL</span>[%- ELSE -%]<span>STARTTLS</span>[%- END -%]</li>
499
            <li><strong>Debug mode</strong>: [%- IF default_config.debug -%]Yes[%- ELSE -%]No[%- END -%]</li>
499
                <li><span class="label">Debug mode: </span> [%- IF default_config.debug -%]Yes[%- ELSE -%]No[%- END -%]</li>
500
        </ul>
500
                [% IF op == 'list' %]
501
                    <li><a href="/cgi-bin/koha/admin/smtp_servers.pl?op=edit_form&smtp_server_id=[% default_config.id | uri %]"><i class="fa fa-pencil"></i> Edit</a></li>
502
                [% END %]
503
            </ul>
504
        </div>
501
    </div>
505
    </div>
502
[% END %]
506
[% END %]
503
507
504
- 

Return to bug 37311