From 1dcac87eebe70674246739db6483615674aa122a Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Fri, 20 Sep 2019 22:05:27 +0100 Subject: Add checks/warnings to email settings page --- resources/views/admin/site-mail.phtml | 122 ++++++++++++++++++++++++---------- 1 file changed, 88 insertions(+), 34 deletions(-) (limited to 'resources/views') diff --git a/resources/views/admin/site-mail.phtml b/resources/views/admin/site-mail.phtml index 67259bbecd..f75f241b54 100644 --- a/resources/views/admin/site-mail.phtml +++ b/resources/views/admin/site-mail.phtml @@ -1,6 +1,27 @@ - - - + [route('admin-control-panel') => I18N::translate('Control panel'), $title]]) ?> @@ -15,25 +36,35 @@
- 'SMTP_ACTIVE', 'selected' => Site::getPreference('SMTP_ACTIVE'), 'options' => $mail_transport_options]) ?> + 'SMTP_ACTIVE', 'selected' => $SMTP_ACTIVE, 'options' => $mail_transport_options]) ?>

- +

- +

- +

+ + +

+ +

+
@@ -41,24 +72,28 @@
- +

- +

- +

- +

@@ -66,12 +101,14 @@
- +
- 'SMTP_AUTH', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) Site::getPreference('SMTP_AUTH')]) ?> + 'SMTP_AUTH', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $SMTP_AUTH]) ?>

- +

@@ -79,54 +116,69 @@
- +

- +

- +

- 'SMTP_SSL', 'selected' => Site::getPreference('SMTP_SSL'), 'options' => $mail_ssl_options]) ?> + 'SMTP_SSL', 'selected' => $SMTP_SSL, 'options' => $mail_ssl_options]) ?>

- +

- +

- +

+ + +

+ +

+

- +

@@ -134,7 +186,7 @@
- +
@@ -143,7 +195,7 @@
- +
@@ -152,10 +204,12 @@
- +
+
+