mirror of https://github.com/MISP/MISP
30 lines
1.4 KiB
PHP
30 lines
1.4 KiB
PHP
<div class="events form">
|
|
<h2 style="margin-bottom:0px;"><?php echo __('Contact %s', h($user['User']['email'])); ?></h2>
|
|
<?php
|
|
$encryptionMessage = __('WARNING: This user does not have an encryption key set. The security posture of this instance allows for the sending of clear-text e-mails, so this is what will happen if you proceed.');
|
|
$encryptionColour = 'white red-background';
|
|
if ($encryption) {
|
|
$encryptionMessage = __('%s key found for user, the e-mail will be sent encrypted using this key.', $encryption);
|
|
$encryptionColour = 'white green-background';
|
|
}
|
|
?>
|
|
<div style="width:545px;" class="bold <?php echo $encryptionColour; ?>"><?php echo $encryptionMessage; ?></div>
|
|
<br />
|
|
<?php
|
|
echo $this->Form->create('User');
|
|
echo $this->Form->input('subject', array('type' => 'text', 'label' => __('Subject'), 'style' => 'width:400px;'));
|
|
?>
|
|
<div class="clear"></div>
|
|
<?php
|
|
echo $this->Form->input('body', array('type' => 'textarea', 'class' => 'input-xxlarge'));
|
|
?>
|
|
<div class="clear"></div>
|
|
<?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' => 'admin', 'menuItem' => 'contact'));
|
|
?>
|