cerebrate/templates/AuthKeys/add.php

27 lines
924 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'),
'type' => 'datetime',
'required' => false
]
],
'submit' => [
'action' => $this->request->getParam('action')
]
]
]);