mirror of https://github.com/MISP/MISP
36 lines
1.1 KiB
PHP
36 lines
1.1 KiB
PHP
<?php
|
|
echo $this->element('genericElements/Form/genericForm', [
|
|
'form' => $this->Form,
|
|
'formOptions' => [
|
|
'enctype' => 'multipart/form-data',
|
|
],
|
|
'data' => [
|
|
'model' => 'WorkflowBlueprint',
|
|
'title' => __('Import Workflow Blueprint'),
|
|
'description' => __('Paste a JSON of a Workflow blueprint to import it or provide a JSON file below.'),
|
|
'fields' => [
|
|
[
|
|
'field' => 'json',
|
|
'type' => 'text',
|
|
'class' => 'input span6',
|
|
'div' => 'input clear',
|
|
'label' => __('JSON'),
|
|
'placeholder' => __('Workflow Blueprint JSON'),
|
|
'rows' => 18
|
|
],
|
|
[
|
|
'field' => 'submittedjson',
|
|
'label' => __('JSON file'),
|
|
'type' => 'file',
|
|
],
|
|
],
|
|
'submit' => [
|
|
'action' => $this->request->params['action'],
|
|
]
|
|
]
|
|
]);
|
|
|
|
if (!$ajax) {
|
|
echo $this->element('/genericElements/SideMenu/side_menu', ['menuList' => 'workflowBlueprints', 'menuItem' => 'import']);
|
|
}
|