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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smtp_servers.tt (-25 / +18 lines)
Lines 146-151 Link Here
146
146
147
[% IF op == 'edit_form' %]
147
[% IF op == 'edit_form' %]
148
    <h1>Edit SMTP server</h1>
148
    <h1>Edit SMTP server</h1>
149
    [% UNLESS smtp_server.is_default %]
150
        [% PROCESS default_server_info %]
151
    [% END %]
149
    <form action="/cgi-bin/koha/admin/smtp_servers.pl" id="edit_save" name="edit_save" class="validated" method="post">
152
    <form action="/cgi-bin/koha/admin/smtp_servers.pl" id="edit_save" name="edit_save" class="validated" method="post">
150
        <input type="hidden" name="op" value="edit_save" />
153
        <input type="hidden" name="op" value="edit_save" />
151
        <input type="hidden" name="smtp_server_id" value="[%- smtp_server.id | html -%]" />
154
        <input type="hidden" name="smtp_server_id" value="[%- smtp_server.id | html -%]" />
Lines 226-244 Link Here
226
                    [% END %]
229
                    [% END %]
227
                    <span>Sets this SMTP server as the default SMTP server.</span>
230
                    <span>Sets this SMTP server as the default SMTP server.</span>
228
                </li>
231
                </li>
229
                [% UNLESS smtp_server.is_default %]
230
                    <div class="dialog message" id="default_server_message">
231
                        <p>Current default configuration:</p>
232
233
                        <ul>
234
                            <li><strong>Host</strong>: [%- default_config.host | html -%]</li>
235
                            <li><strong>Port</strong>: [%- default_config.port | html -%]</li>
236
                            <li><strong>Timeout (secs)</strong>: [%- default_config.timeout | html -%]</li>
237
                            <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>
238
                            <li><strong>Debug mode</strong>: [%- IF default_config.debug -%]Yes[%- ELSE -%]No[%- END -%]</li>
239
                        </ul>
240
                    </div>
241
                [% END %]
242
            </ol>
232
            </ol>
243
        </fieldset>
233
        </fieldset>
244
        <fieldset class="action">
234
        <fieldset class="action">
Lines 256-272 Link Here
256
246
257
    <h1>SMTP servers</h1>
247
    <h1>SMTP servers</h1>
258
248
259
    <div class="dialog message" id="default_server_message">
249
    [% PROCESS default_server_info %]
260
        <p>Default configuration:</p>
261
262
        <ul>
263
            <li><strong>Host</strong>: [%- default_config.host | html -%]</li>
264
            <li><strong>Port</strong>: [%- default_config.port | html -%]</li>
265
            <li><strong>Timeout (secs)</strong>: [%- default_config.timeout | html -%]</li>
266
            <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>
267
            <li><strong>Debug mode</strong>: [%- IF default_config.debug -%]Yes[%- ELSE -%]No[%- END -%]</li>
268
        </ul>
269
    </div>
270
250
271
    [% IF servers_count > 0 %]
251
    [% IF servers_count > 0 %]
272
        <div class="page-section">
252
        <div class="page-section">
Lines 489-492 Link Here
489
    </script>
469
    </script>
490
[% END %]
470
[% END %]
491
471
472
[% BLOCK default_server_info %]
473
    <div class="dialog message" id="default_server_message">
474
        <p>Current default configuration:</p>
475
476
        <ul>
477
            <li><strong>Host</strong>: [%- default_config.host | html -%]</li>
478
            <li><strong>Port</strong>: [%- default_config.port | html -%]</li>
479
            <li><strong>Timeout (secs)</strong>: [%- default_config.timeout | html -%]</li>
480
            <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>
481
            <li><strong>Debug mode</strong>: [%- IF default_config.debug -%]Yes[%- ELSE -%]No[%- END -%]</li>
482
        </ul>
483
    </div>
484
[% END %]
485
492
[% INCLUDE 'intranet-bottom.inc' %]
486
[% INCLUDE 'intranet-bottom.inc' %]
493
- 

Return to bug 34616