mirror of https://github.com/MISP/MISP
46 lines
1.5 KiB
PHP
46 lines
1.5 KiB
PHP
<div class="template_element_add_text">
|
|
<?php
|
|
echo $this->Form->create('TemplateElementText', array('id', 'url' => '/templateElements/add/text/' . $id));
|
|
?>
|
|
<legend><?php echo __('Add Text Element To Template'); ?></legend>
|
|
<fieldset>
|
|
<div class="add_attribute_fields">
|
|
<?php
|
|
echo $this->Form->input('name', array(
|
|
'type' => 'text',
|
|
'error' => array('escape' => false),
|
|
'div' => 'input clear',
|
|
'class' => 'input-xxlarge'
|
|
));
|
|
|
|
echo $this->Form->input('text', array(
|
|
'type' => 'textarea',
|
|
'error' => array('escape' => false),
|
|
'div' => 'input clear',
|
|
'class' => 'input-xxlarge'
|
|
));
|
|
?>
|
|
</div>
|
|
</fieldset>
|
|
<div class="overlay_spacing">
|
|
<table>
|
|
<tr>
|
|
<td style="vertical-align:top">
|
|
<span id="submitButton" class="btn btn-primary" onClick="submitPopoverForm('<?php echo $id;?>', 'addTextElement')">Submit</span>
|
|
</td>
|
|
<td style="width:540px;">
|
|
<p style="color:red;font-weight:bold;display:none;text-align:center" id="warning-message">Warning: You are about to share data that is of a classified nature (Attribution / targeting data). Make sure that you are authorised to share this.</p>
|
|
</td>
|
|
<td style="vertical-align:top;">
|
|
<span class="btn btn-inverse" id="cancel_attribute_add" onClick="cancelPopoverForm();">Cancel</span>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<?php
|
|
echo $this->Form->end();
|
|
?>
|
|
</div>
|
|
<script type="text/javascript">
|
|
var fieldsArray = new Array('TemplateElementTextName', 'TemplateElementTextText');
|
|
</script>
|