mirror of https://github.com/MISP/MISP
40 lines
1.3 KiB
PHP
Executable File
40 lines
1.3 KiB
PHP
Executable File
<div class="news form">
|
|
<?php
|
|
echo $this->Form->create('News');
|
|
?>
|
|
<fieldset>
|
|
<legend><?php echo __('Add News Item'); ?></legend>
|
|
<?php
|
|
echo $this->Form->input('title', array(
|
|
'type' => 'text',
|
|
'error' => array('escape' => false),
|
|
'div' => 'input clear',
|
|
'class' => 'input-xxlarge'
|
|
));
|
|
?>
|
|
<div class="input clear"></div>
|
|
<?php
|
|
echo $this->Form->input('message', array(
|
|
'type' => 'textarea',
|
|
'error' => array('escape' => false),
|
|
'div' => 'input clear',
|
|
'class' => 'input-xxlarge'
|
|
));
|
|
?>
|
|
<div class="input clear"></div>
|
|
<?php
|
|
echo $this->Form->input('anonymise', array(
|
|
'checked' => false,
|
|
'label' => __('Create anonymously'),
|
|
));
|
|
?>
|
|
</fieldset>
|
|
<?php
|
|
echo $this->Form->button(__('Submit'), array('class' => 'btn btn-primary'));
|
|
echo $this->Form->end();
|
|
?>
|
|
</div>
|
|
<?php
|
|
echo $this->element('/genericElements/SideMenu/side_menu', array('menuList' => 'news', 'menuItem' => 'add'));
|
|
?>
|