summaryrefslogtreecommitdiff
path: root/app/Template/config/webhook.php
blob: 768edf8cfcab9f5472a9ec689c97a66fc64fce75 (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
<div class="page-header">
    <h2><?= t('Webhook settings') ?></h2>
</div>
<section>
<form method="post" action="<?= $this->url->href('ConfigController', 'save', array('redirect' => '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">
        <button type="submit" class="btn btn-blue"><?= t('Save') ?></button>
    </div>
</form>
</section>

<div class="page-header">
    <h2><?= t('Webhook token') ?></h2>
</div>
<section class="panel">
    <ul>
        <li>
            <?= t('Webhook token:') ?>
            <strong><?= $this->text->e($values['webhook_token']) ?></strong>
        </li>
        <li>
            <?= $this->url->link(t('Reset token'), 'ConfigController', 'token', array('type' => 'webhook'), true) ?>
        </li>
    </ul>
</section>