2013-10-25 10:42:11 +02:00
<div class="events form">
<?php echo $this->Form->create('Event', array('type' => 'file'));?>
2018-07-20 09:29:50 +02:00
<fieldset>
<legend><?php echo __('Import from MISP Export File'); ?></legend>
2013-10-25 10:42:11 +02:00
<?php
2018-07-20 09:29:50 +02:00
echo $this->Form->input('Event.submittedfile', array(
'label' => '<b>' . __('MISP XML or JSON file') . '</b>',
'type' => 'file',
));
?>
<div class="input clear"></div>
<?php
if (Configure::read('MISP.take_ownership_xml_import')):
echo $this->Form->input('Event.takeownership', array(
'checked' => false,
'label' => __('Take ownership of the event'),
'title' => __('Warning: This will change the creator organisation of the event, tampering with the event\'s ownership and releasability and can lead to unexpected behaviour when synchronising the event with instances that have another creator for the same event.)'
)));
endif;
echo $this->Form->input('publish', array(
'checked' => false,
'label' => __('Publish imported events'),
));
2013-10-25 10:42:11 +02:00
?>
2018-07-20 09:29:50 +02:00
</fieldset>
2013-10-25 10:42:11 +02:00
<?php
2018-07-20 09:29:50 +02:00
echo $this->Form->button(__('Upload'), array('class' => 'btn btn-primary'));
echo $this->Form->end();
2013-10-25 10:42:11 +02:00
?>
</div>
2016-06-04 01:10:45 +02:00
<?php
2019-02-13 14:45:01 +01:00
echo $this->element('/genericElements/SideMenu/side_menu', array('menuList' => 'event-collection', 'menuItem' => 'addMISPExport'));
2013-10-25 10:42:11 +02:00
?>