summaryrefslogtreecommitdiff
path: root/app/Template/config/webhook.php
blob: d4f06d3ffb8506a516d2979be27f0e84d2022858 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<div class="page-header">
    <h2><?= t('Webhook settings') ?></h2>
</div>
<section>
<form method="post" action="<?= $this->u('config', 'webhook') ?>" autocomplete="off">

    <?= $this->formCsrf() ?>

    <?= $this->formLabel(t('Webhook URL for task creation'), 'webhook_url_task_creation') ?>
    <?= $this->formText('webhook_url_task_creation', $values, $errors) ?><br/>

    <?= $this->formLabel(t('Webhook URL for task modification'), 'webhook_url_task_modification') ?>
    <?= $this->formText('webhook_url_task_modification', $values, $errors) ?><br/>

    <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->getCurrentBaseUrl().$this->u('webhook', 'task', array('token' => $values['webhook_token'])) ?>">
        </li>
        <li>
            <?= $this->a(t('Reset token'), 'config', 'token', array('type' => 'webhook'), true) ?>
        </li>
    </ul>
</section>