diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-05-11 21:07:59 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-05-11 21:07:59 -0400 |
commit | 9e9410df24b1d88d4760510ab496f5fa36f24a66 (patch) | |
tree | 99ec17ed40c52618a2bbb90d72e6da272eacb38b /app/Template/project/integrations.php | |
parent | a845e3f47891eca6cdfd8082cdfddbbef0eeecd1 (diff) |
Add Jabber/XMPP integration
Diffstat (limited to 'app/Template/project/integrations.php')
-rw-r--r-- | app/Template/project/integrations.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/app/Template/project/integrations.php b/app/Template/project/integrations.php index da27e430..d4fab23b 100644 --- a/app/Template/project/integrations.php +++ b/app/Template/project/integrations.php @@ -27,6 +27,37 @@ </div> + <h3><img src="assets/img/jabber-icon.png"/> <?= t('Jabber (XMPP)') ?></h3> + <div class="listing"> + <?= $this->formCheckbox('jabber', t('Send notifications to Jabber'), 1, isset($values['jabber']) && $values['jabber'] == 1) ?> + + <?= $this->formLabel(t('XMPP server address'), 'jabber_server') ?> + <?= $this->formText('jabber_server', $values, $errors, array('placeholder="tcp://myserver:5222"')) ?> + <p class="form-help"><?= t('The server address must use this format: "tcp://hostname:5222"') ?></p> + + <?= $this->formLabel(t('Jabber domain'), 'jabber_domain') ?> + <?= $this->formText('jabber_domain', $values, $errors, array('placeholder="example.com"')) ?> + + <?= $this->formLabel(t('Username'), 'jabber_username') ?> + <?= $this->formText('jabber_username', $values, $errors) ?> + + <?= $this->formLabel(t('Password'), 'jabber_password') ?> + <?= $this->formPassword('jabber_password', $values, $errors) ?> + + <?= $this->formLabel(t('Jabber nickname'), 'jabber_nickname') ?> + <?= $this->formText('jabber_nickname', $values, $errors) ?> + + <?= $this->formLabel(t('Multi-user chat room'), 'jabber_room') ?> + <?= $this->formText('jabber_room', $values, $errors, array('placeholder="myroom@conference.example.com"')) ?> + + <p class="form-help"><a href="http://kanboard.net/documentation/jabber" target="_blank"><?= t('Help on Jabber integration') ?></a></p> + + <div class="form-actions"> + <input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/> + </div> + </div> + + <h3><img src="assets/img/hipchat-icon.png"/> <?= t('Hipchat') ?></h3> <div class="listing"> <?= $this->formCheckbox('hipchat', t('Send notifications to Hipchat'), 1, isset($values['hipchat']) && $values['hipchat'] == 1) ?> |