diff options
Diffstat (limited to 'app/Template/config/webhook.php')
-rw-r--r-- | app/Template/config/webhook.php | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/app/Template/config/webhook.php b/app/Template/config/webhook.php new file mode 100644 index 00000000..73ca3598 --- /dev/null +++ b/app/Template/config/webhook.php @@ -0,0 +1,35 @@ +<div class="page-header"> + <h2><?= t('Webhook settings') ?></h2> +</div> +<section> +<form method="post" action="<?= $this->url->href('config', 'webhook') ?>" autocomplete="off"> + + <?= $this->form->csrf() ?> + + <?= $this->form->label(t('Webhook URL'), 'webhook_url') ?> + <?= $this->form->text('webhook_url', $values, $errors) ?> + + <div class="form-actions"> + <input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/> + </div> +</form> +</section> + +<div class="page-header"> + <h2><?= t('URL and token') ?></h2> +</div> +<section class="listing"> + <ul> + <li> + <?= t('Webhook token:') ?> + <strong><?= $this->e($values['webhook_token']) ?></strong> + </li> + <li> + <?= t('URL for task creation:') ?> + <input type="text" class="auto-select" readonly="readonly" value="<?= $this->url->base().$this->url->href('webhook', 'task', array('token' => $values['webhook_token'])) ?>"> + </li> + <li> + <?= $this->url->link(t('Reset token'), 'config', 'token', array('type' => 'webhook'), true) ?> + </li> + </ul> +</section>
\ No newline at end of file |