diff options
Diffstat (limited to 'app/Template/project/integrations.php')
-rw-r--r-- | app/Template/project/integrations.php | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/app/Template/project/integrations.php b/app/Template/project/integrations.php index d4fab23b..698e438c 100644 --- a/app/Template/project/integrations.php +++ b/app/Template/project/integrations.php @@ -2,53 +2,53 @@ <h2><?= t('Integration with third-party services') ?></h2> </div> -<form method="post" action="<?= $this->u('project', 'integration', array('project_id' => $project['id'])) ?>" autocomplete="off"> - <?= $this->formCsrf() ?> +<form method="post" action="<?= $this->url->href('project', 'integration', array('project_id' => $project['id'])) ?>" autocomplete="off"> + <?= $this->form->csrf() ?> <h3><i class="fa fa-github fa-fw"></i> <?= t('Github webhooks') ?></h3> <div class="listing"> - <input type="text" class="auto-select" readonly="readonly" value="<?= $this->getCurrentBaseUrl().$this->u('webhook', 'github', array('token' => $webhook_token, 'project_id' => $project['id'])) ?>"/><br/> + <input type="text" class="auto-select" readonly="readonly" value="<?= $this->url->base().$this->url->href('webhook', 'github', array('token' => $webhook_token, 'project_id' => $project['id'])) ?>"/><br/> <p class="form-help"><a href="http://kanboard.net/documentation/github-webhooks" target="_blank"><?= t('Help on Github webhooks') ?></a></p> </div> <h3><img src="assets/img/gitlab-icon.png"/> <?= t('Gitlab webhooks') ?></h3> <div class="listing"> - <input type="text" class="auto-select" readonly="readonly" value="<?= $this->getCurrentBaseUrl().$this->u('webhook', 'gitlab', array('token' => $webhook_token, 'project_id' => $project['id'])) ?>"/><br/> + <input type="text" class="auto-select" readonly="readonly" value="<?= $this->url->base().$this->url->href('webhook', 'gitlab', array('token' => $webhook_token, 'project_id' => $project['id'])) ?>"/><br/> <p class="form-help"><a href="http://kanboard.net/documentation/gitlab-webhooks" target="_blank"><?= t('Help on Gitlab webhooks') ?></a></p> </div> <h3><i class="fa fa-bitbucket fa-fw"></i> <?= t('Bitbucket webhooks') ?></h3> <div class="listing"> - <input type="text" class="auto-select" readonly="readonly" value="<?= $this->getCurrentBaseUrl().$this->u('webhook', 'bitbucket', array('token' => $webhook_token, 'project_id' => $project['id'])) ?>"/><br/> + <input type="text" class="auto-select" readonly="readonly" value="<?= $this->url->base().$this->url->href('webhook', 'bitbucket', array('token' => $webhook_token, 'project_id' => $project['id'])) ?>"/><br/> <p class="form-help"><a href="http://kanboard.net/documentation/bitbucket-webhooks" target="_blank"><?= t('Help on Bitbucket webhooks') ?></a></p> </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->form->checkbox('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"')) ?> + <?= $this->form->label(t('XMPP server address'), 'jabber_server') ?> + <?= $this->form->text('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->form->label(t('Jabber domain'), 'jabber_domain') ?> + <?= $this->form->text('jabber_domain', $values, $errors, array('placeholder="example.com"')) ?> - <?= $this->formLabel(t('Username'), 'jabber_username') ?> - <?= $this->formText('jabber_username', $values, $errors) ?> + <?= $this->form->label(t('Username'), 'jabber_username') ?> + <?= $this->form->text('jabber_username', $values, $errors) ?> - <?= $this->formLabel(t('Password'), 'jabber_password') ?> - <?= $this->formPassword('jabber_password', $values, $errors) ?> + <?= $this->form->label(t('Password'), 'jabber_password') ?> + <?= $this->form->password('jabber_password', $values, $errors) ?> - <?= $this->formLabel(t('Jabber nickname'), 'jabber_nickname') ?> - <?= $this->formText('jabber_nickname', $values, $errors) ?> + <?= $this->form->label(t('Jabber nickname'), 'jabber_nickname') ?> + <?= $this->form->text('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"')) ?> + <?= $this->form->label(t('Multi-user chat room'), 'jabber_room') ?> + <?= $this->form->text('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> @@ -60,16 +60,16 @@ <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) ?> + <?= $this->form->checkbox('hipchat', t('Send notifications to Hipchat'), 1, isset($values['hipchat']) && $values['hipchat'] == 1) ?> - <?= $this->formLabel(t('API URL'), 'hipchat_api_url') ?> - <?= $this->formText('hipchat_api_url', $values, $errors) ?> + <?= $this->form->label(t('API URL'), 'hipchat_api_url') ?> + <?= $this->form->text('hipchat_api_url', $values, $errors) ?> - <?= $this->formLabel(t('Room API ID or name'), 'hipchat_room_id') ?> - <?= $this->formText('hipchat_room_id', $values, $errors) ?> + <?= $this->form->label(t('Room API ID or name'), 'hipchat_room_id') ?> + <?= $this->form->text('hipchat_room_id', $values, $errors) ?> - <?= $this->formLabel(t('Room notification token'), 'hipchat_room_token') ?> - <?= $this->formText('hipchat_room_token', $values, $errors) ?> + <?= $this->form->label(t('Room notification token'), 'hipchat_room_token') ?> + <?= $this->form->text('hipchat_room_token', $values, $errors) ?> <p class="form-help"><a href="http://kanboard.net/documentation/hipchat" target="_blank"><?= t('Help on Hipchat integration') ?></a></p> @@ -81,10 +81,10 @@ <h3><i class="fa fa-slack fa-fw"></i> <?= t('Slack') ?></h3> <div class="listing"> - <?= $this->formCheckbox('slack', t('Send notifications to a Slack channel'), 1, isset($values['slack']) && $values['slack'] == 1) ?> + <?= $this->form->checkbox('slack', t('Send notifications to a Slack channel'), 1, isset($values['slack']) && $values['slack'] == 1) ?> - <?= $this->formLabel(t('Webhook URL'), 'slack_webhook_url') ?> - <?= $this->formText('slack_webhook_url', $values, $errors) ?> + <?= $this->form->label(t('Webhook URL'), 'slack_webhook_url') ?> + <?= $this->form->text('slack_webhook_url', $values, $errors) ?> <p class="form-help"><a href="http://kanboard.net/documentation/slack" target="_blank"><?= t('Help on Slack integration') ?></a></p> |