1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kanboard_ynh.git synced 2024-09-03 19:36:17 +02:00
kanboard_ynh/sources/app/Template/config/webhook.php

38 lines
1.3 KiB
PHP
Raw Normal View History

2014-11-23 20:13:38 +01:00
<div class="page-header">
<h2><?= t('Webhook settings') ?></h2>
</div>
<section>
2015-01-16 14:23:05 +01:00
<form method="post" action="<?= $this->u('config', 'webhook') ?>" autocomplete="off">
2014-11-23 20:13:38 +01:00
2015-01-16 14:23:05 +01:00
<?= $this->formCsrf() ?>
2014-11-23 20:13:38 +01:00
2015-01-16 14:23:05 +01:00
<?= $this->formLabel(t('Webhook URL for task creation'), 'webhook_url_task_creation') ?>
<?= $this->formText('webhook_url_task_creation', $values, $errors) ?><br/>
2014-11-23 20:13:38 +01:00
2015-01-16 14:23:05 +01:00
<?= $this->formLabel(t('Webhook URL for task modification'), 'webhook_url_task_modification') ?>
<?= $this->formText('webhook_url_task_modification', $values, $errors) ?><br/>
2014-11-23 20:13:38 +01:00
<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:') ?>
2015-01-16 14:23:05 +01:00
<strong><?= $this->e($values['webhook_token']) ?></strong>
2014-11-23 20:13:38 +01:00
</li>
<li>
<?= t('URL for task creation:') ?>
2015-01-16 14:23:05 +01:00
<input type="text" class="auto-select" readonly="readonly" value="<?= $this->getCurrentBaseUrl().$this->u('webhook', 'task', array('token' => $values['webhook_token'])) ?>">
2014-11-23 20:13:38 +01:00
</li>
<li>
2015-01-16 14:23:05 +01:00
<?= $this->a(t('Reset token'), 'config', 'token', array('type' => 'webhook'), true) ?>
2014-11-23 20:13:38 +01:00
</li>
</ul>
</section>