cerebrate/templates/AuthKeys/add.php

25 lines
845 B
PHP

<?php
echo $this->element('genericElements/Form/genericForm', [
'data' => [
'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' => [
[
'field' => 'user_id',
'label' => __('User'),
'options' => $dropdownData['user'],
'type' => 'dropdown'
],
[
'field' => 'comment'
],
[
'field' => 'expiration',
'label' => 'Expiration'
]
],
'submit' => [
'action' => $this->request->getParam('action')
]
]
]);