2021-01-13 14:30:44 +01:00
< ? php
echo $this -> element ( 'genericElements/Form/genericForm' , array (
'data' => array (
2024-11-10 12:11:22 +01:00
'description' => __ ( 'Cerebrate can connect to other Cerebrate instances to exchange trust information and to instrument interconnectivity between connected local tools. Each such Cerebrate instance with its connected tools is considered to be a brood.' ),
2021-01-13 14:30:44 +01:00
'model' => 'Organisations' ,
'fields' => array (
array (
'field' => 'name'
),
array (
'field' => 'url' ,
'label' => __ ( 'URL' )
),
array (
'field' => 'authkey' ,
'label' => 'Authkey' ,
'type' => 'authkey' ,
'default' => ''
),
array (
'field' => 'description' ,
'type' => 'textarea'
),
array (
'field' => 'organisation_id' ,
'label' => __ ( 'Owner organisation' ),
'options' => $dropdownData [ 'organisation' ],
2021-06-30 12:24:34 +02:00
'type' => 'dropdown' ,
'empty' => __ ( '-- pick one --' )
2021-01-13 14:30:44 +01:00
),
array (
'field' => 'trusted' ,
'label' => __ ( 'Trusted upstream source' ),
'type' => 'checkbox'
),
array (
'field' => 'pull' ,
'label' => __ ( 'Enable pulling of trust information' ),
'type' => 'checkbox'
),
array (
'field' => 'skip_proxy' ,
'label' => 'Skip proxy' ,
'type' => 'checkbox'
)
),
'submit' => array (
'action' => $this -> request -> getParam ( 'action' )
)
)
));
?>
</ div >