2020-06-21 21:31:30 +02:00
< ? php
2020-09-28 01:25:07 +02:00
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.' ),
2020-09-28 01:25:07 +02:00
'fields' => [
[
2020-06-21 21:31:30 +02:00
'field' => 'user_id' ,
'label' => __ ( 'User' ),
'options' => $dropdownData [ 'user' ],
'type' => 'dropdown'
2020-09-28 01:25:07 +02:00
],
[
2020-06-21 21:31:30 +02:00
'field' => 'comment'
2020-09-28 01:25:07 +02:00
],
[
2020-08-07 21:47:04 +02:00
'field' => 'expiration' ,
2023-02-23 14:22:00 +01:00
'label' => __ ( 'Expiration' ),
'type' => 'datetime' ,
2024-06-07 14:04:24 +02:00
'required' => false
2020-09-28 01:25:07 +02:00
]
],
'submit' => [
2020-06-21 21:31:30 +02:00
'action' => $this -> request -> getParam ( 'action' )
2020-09-28 01:25:07 +02:00
]
]
]);