diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-06-05 14:53:46 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-06-05 14:53:46 -0400 |
commit | cd4c09c10aabb133efa0ef5e0566630941178a4a (patch) | |
tree | 2f3f56617c90ce8c907f46324fa2dde26e91e79d /app/Template/config | |
parent | a08339059b06bcfb673b13a380b6f199abfb5983 (diff) |
Conifgure email settings through user interface
Diffstat (limited to 'app/Template/config')
-rw-r--r-- | app/Template/config/application.php | 3 | ||||
-rw-r--r-- | app/Template/config/email.php | 18 | ||||
-rw-r--r-- | app/Template/config/sidebar.php | 3 |
3 files changed, 21 insertions, 3 deletions
diff --git a/app/Template/config/application.php b/app/Template/config/application.php index b66d0633..0f842f6e 100644 --- a/app/Template/config/application.php +++ b/app/Template/config/application.php @@ -9,9 +9,6 @@ <?= $this->form->text('application_url', $values, $errors, array('placeholder="http://example.kanboard.net/"')) ?> <p class="form-help"><?= t('Example: http://example.kanboard.net/ (used to generate absolute URLs)') ?></p> - <?= $this->form->label(t('Email sender address'), 'mail_sender_address') ?> - <?= $this->form->text('mail_sender_address', $values, $errors, array('placeholder="'.MAIL_FROM.'"')) ?> - <?= $this->form->label(t('Language'), 'application_language') ?> <?= $this->form->select('application_language', $languages, $values, $errors) ?> diff --git a/app/Template/config/email.php b/app/Template/config/email.php new file mode 100644 index 00000000..6ff76eca --- /dev/null +++ b/app/Template/config/email.php @@ -0,0 +1,18 @@ +<div class="page-header"> + <h2><?= t('Email settings') ?></h2> +</div> +<form method="post" action="<?= $this->url->href('ConfigController', 'save', array('redirect' => 'email')) ?>" autocomplete="off"> + <?= $this->form->csrf() ?> + + <?= $this->form->label(t('Email sender address'), 'mail_sender_address') ?> + <?= $this->form->text('mail_sender_address', $values, $errors, array('placeholder="'.MAIL_FROM.'"')) ?> + + <?= $this->form->label(t('Email transport'), 'mail_transport') ?> + <?= $this->form->select('mail_transport', $mail_transports, $values, $errors) ?> + + <?= $this->hook->render('template:config:email', array('values' => $values, 'errors' => $errors)) ?> + + <div class="form-actions"> + <button type="submit" class="btn btn-blue"><?= t('Save') ?></button> + </div> +</form> diff --git a/app/Template/config/sidebar.php b/app/Template/config/sidebar.php index 187ecd93..29caa0ef 100644 --- a/app/Template/config/sidebar.php +++ b/app/Template/config/sidebar.php @@ -7,6 +7,9 @@ <li <?= $this->app->checkMenuSelection('ConfigController', 'application') ?>> <?= $this->url->link(t('Application settings'), 'ConfigController', 'application') ?> </li> + <li <?= $this->app->checkMenuSelection('ConfigController', 'email') ?>> + <?= $this->url->link(t('Email settings'), 'ConfigController', 'email') ?> + </li> <li <?= $this->app->checkMenuSelection('ConfigController', 'project') ?>> <?= $this->url->link(t('Project settings'), 'ConfigController', 'project') ?> </li> |