chg: [galaxies:export] Added form entry to specify the export format -

WiP
pull/6120/head
mokaddem 2020-11-09 15:41:20 +01:00
parent 6c20213fd8
commit beaf9ce281
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 11 additions and 2 deletions

View File

@ -25,12 +25,21 @@ echo $this->element('genericElements/Form/genericForm', array(
'label' => __("Include Default Clusters"),
'checked' => true
),
array(
'field' => 'format',
'type' => 'radio',
'legend' => __('Export format'),
'options' => array(
'misp' => sprintf('<b>%s</b>: %s', __('MISP Format'), __('To re-import to another MISP')),
'misp-galaxy' => sprintf('<b>%s</b>: %s', __('misp-galaxy format'), __('Usable to be integrated into the official repository')),
),
'default' => 'raw',
),
'<br />',
array(
'field' => 'download',
'type' => 'radio',
'label' => __('Export type'),
'legend' => false,
'legend' => __('Export type'),
'options' => array(
'download' => __('Download'),
'raw' => __('Raw'),