|
Lines 60-69
Link Here
|
| 60 |
[% SWITCH m.code %] |
60 |
[% SWITCH m.code %] |
| 61 |
[% CASE 'error_on_update' %] |
61 |
[% CASE 'error_on_update' %] |
| 62 |
<span>An error occurred trying to open the server for editing. The passed ID is invalid.</span> |
62 |
<span>An error occurred trying to open the server for editing. The passed ID is invalid.</span> |
|
|
63 |
[% CASE 'error_on_test' %] |
| 64 |
<span>Failed to send test email.</span> |
| 63 |
[% CASE 'error_on_insert' %] |
65 |
[% CASE 'error_on_insert' %] |
| 64 |
<span>An error occurred when adding the server. The library already has an SMTP server set.</span> |
66 |
<span>An error occurred when adding the server. The library already has an SMTP server set.</span> |
| 65 |
[% CASE 'success_on_update' %] |
67 |
[% CASE 'success_on_update' %] |
| 66 |
<span>Server updated successfully.</span> |
68 |
<span>Server updated successfully.</span> |
|
|
69 |
[% CASE 'success_on_test' %] |
| 70 |
<span>Test email sent successfully to <em>KohaAdminEmailAddress</em>.</span> |
| 67 |
[% CASE 'success_on_insert' %] |
71 |
[% CASE 'success_on_insert' %] |
| 68 |
<span>Server added successfully.</span> |
72 |
<span>Server added successfully.</span> |
| 69 |
[% CASE %] |
73 |
[% CASE %] |
|
Lines 241-247
Link Here
|
| 241 |
</form> |
245 |
</form> |
| 242 |
[% END %] |
246 |
[% END %] |
| 243 |
|
247 |
|
| 244 |
[% IF op == 'list' %] |
248 |
[% IF op == 'list' || op == 'test_email' %] |
| 245 |
<div id="toolbar" class="btn-toolbar"> |
249 |
<div id="toolbar" class="btn-toolbar"> |
| 246 |
<a class="btn btn-default" id="new_smtp_server" href="/cgi-bin/koha/admin/smtp_servers.pl?op=add_form"><i class="fa fa-plus"></i> New SMTP server</a> |
250 |
<a class="btn btn-default" id="new_smtp_server" href="/cgi-bin/koha/admin/smtp_servers.pl?op=add_form"><i class="fa fa-plus"></i> New SMTP server</a> |
| 247 |
</div> |
251 |
</div> |
|
Lines 435-440
Link Here
|
| 435 |
encodeURIComponent(row.name.escapeHtml()) + |
439 |
encodeURIComponent(row.name.escapeHtml()) + |
| 436 |
'"><i class="fa fa-trash-can" aria-hidden="true"></i> ' + |
440 |
'"><i class="fa fa-trash-can" aria-hidden="true"></i> ' + |
| 437 |
_("Delete") + |
441 |
_("Delete") + |
|
|
442 |
"</a>" + |
| 443 |
"\n"; |
| 444 |
result += |
| 445 |
'<a class="btn btn-default btn-xs" role="button" href="/cgi-bin/koha/admin/smtp_servers.pl?op=test_email&smtp_server_id=' + |
| 446 |
encodeURIComponent(row.smtp_server_id) + |
| 447 |
'"><i class="fa fa-check-square" aria-hidden="true"></i> ' + |
| 448 |
_("Send test email") + |
| 438 |
"</a>"; |
449 |
"</a>"; |
| 439 |
return result; |
450 |
return result; |
| 440 |
}, |
451 |
}, |
| 441 |
- |
|
|