MISP/app/View/Regexp/admin_edit.ctp

50 lines
1.1 KiB
PHP
Executable File

<div class="regexp form">
<?php echo $this->Form->create('Regexp');?>
<fieldset>
<legend>Edit Import Regexp</legend>
<?php
echo $this->Form->input('id');
echo $this->Form->input('regexp');
echo $this->Form->input('replacement');
?>
<div class = "clear">
Types to be affected by the filter (Setting 'all' will override the other settings)
</div>
<br />
<div class="input clear">
<?php
echo $this->Form->input('all', array(
'checked' => $all,
'label' => 'All',
));
?>
</div>
<div class="input clear"> </div>
<?php
if ($all) {
foreach($types as $key => $type) {
echo $this->Form->input($key, array(
'checked' => $value[$key],
'label' => $type,
));
}
} else {
foreach($types as $key => $type) {
echo $this->Form->input($key, array(
'checked' => $value[$key],
'label' => $type,
));
}
}
?>
</fieldset>
<?php
echo $this->Form->button('Add', array('class' => 'btn btn-primary'));
echo $this->Form->end();
?>
</div>
<?php
echo $this->element('side_menu', array('menuList' => 'regexp', 'menuItem' => 'edit', 'id' => $this->Form->value('Regexp.id')));
?>