cerebrate/templates/AuthKeys/add.php

26 lines
888 B
PHP
Raw Normal View History

2020-06-21 21:31:30 +02:00
<?php
echo $this->element('genericElements/Form/genericForm', [
'data' => [
2020-06-21 21:31:30 +02:00
'description' => __('Authkeys are used for API access. A user can have more than one authkey, so if you would like to use separate keys per tool that queries Cerebrate, add additional keys. Use the comment field to make identifying your keys easier.'),
'fields' => [
[
2020-06-21 21:31:30 +02:00
'field' => 'user_id',
'label' => __('User'),
'options' => $dropdownData['user'],
'type' => 'dropdown'
],
[
2020-06-21 21:31:30 +02:00
'field' => 'comment'
],
[
'field' => 'expiration',
'label' => __('Expiration'),
'type' => 'datetime',
]
],
'submit' => [
2020-06-21 21:31:30 +02:00
'action' => $this->request->getParam('action')
]
]
]);