- View/TemplateElements -> __(' to be completed

pull/2791/head
Steve Clement 2018-01-12 10:03:40 +01:00
parent 54330d3ede
commit 70567655e3
9 changed files with 65 additions and 65 deletions

View File

@ -1,5 +1,5 @@
<div id="ajaxTemplateElementsIndex">
<h2>Template Elements</h2>
<h2><?php echo __('Template Elements');?></h2>
<ul <?php if ($mayModify): ?> id="sortable" <?php endif; ?> style="list-style:none; margin:0px;">
<?php
foreach ($elements as $k => $element):
@ -8,7 +8,7 @@
?>
</ul>
<?php if ($mayModify): ?>
<div id="AddTemplateElementDiv" role="button" tabindex="0" aria-label="Add a new template element" title="Add a new template element" class="addTemplateElement useCursorPointer" onClick="templateAddElementClicked(<?php echo $id; ?>);">+</div>
<div id="AddTemplateElementDiv" role="button" tabindex="0" aria-label="<?php echo __('Add a new template element');?>" title="<?php echo __('Add a new template element');?>" class="addTemplateElement useCursorPointer" onClick="templateAddElementClicked(<?php echo $id; ?>);">+</div>
<?php endif; ?>
</div>
<script type="text/javascript">

View File

@ -2,18 +2,18 @@
<?php
echo $this->Form->create('TemplateElement', array('style' => 'margin:0px;', 'id' => 'PromptForm'));
?>
<legend>Template Element Deletion</legend>
<legend><?php echo __('Template Element Deletion');?></legend>
<div style="padding-left:5px;padding-right:5px;padding-bottom:5px;">
<p>Are you sure you want to delete Template Element #<?php echo $id?>?</p>
<p><?php echo __('Are you sure you want to delete Template Element #%s?', $id);?></p>
<table>
<tr>
<td style="vertical-align:top">
<span id="PromptYesButton" class="btn btn-primary" onClick="submitDeletion(<?php echo $template_id; ?>, 'delete', 'template_elements', <?php echo $id;?>)">Yes</span>
<span id="PromptYesButton" class="btn btn-primary" onClick="submitDeletion(<?php echo $template_id; ?>, 'delete', 'template_elements', <?php echo $id;?>)"><?php echo __('Yes');?></span>
</td>
<td style="width:540px;">
</td>
<td style="vertical-align:top;">
<span class="btn btn-inverse" id="PromptNoButton" onClick="cancelPrompt();">No</span>
<span class="btn btn-inverse" id="PromptNoButton" onClick="cancelPrompt();"><?php echo __('No');?></span>
</td>
</tr>
</table>

View File

@ -25,26 +25,26 @@
<?php
echo $this->Form->input('category', array(
'options' => array($categories),
'label' => 'Category',
'empty' => 'Select Category'
'label' => __('Category'),
'empty' => __('Select Category')
));
?>
<div id='typeToggle'>
<?php
echo $this->Form->input('type', array(
'options' => array(),
'label' => 'Type',
'empty' => 'Select Type'
'label' => __('Type'),
'empty' => __('Select Type')
));
?>
</div>
<div class="input clear"></div>
<div id='complexToggle' style="display:none;" title="Some categories can use complex types. A complex type can define attributes that can be described by various different types, the system will parse the user's entry and determine the most suitable type for the found attributes. The list of valid types for the chosen complex type is shown below.">
<div id='complexToggle' style="display:none;" title="<?php echo __('Some categories can use complex types. A complex type can define attributes that can be described by various different types, the system will parse the user\'s entry and determine the most suitable type for the found attributes. The list of valid types for the chosen complex type is shown below.');?>">
<?php
echo $this->Form->input('complex', array(
'checked' => false,
'label' => 'Use complex types',
'label' => __('Use complex types'),
));
?>
@ -52,33 +52,33 @@
<div class="input clear"></div>
<div id="typeJSON" style="display:none"></div>
<div class="input clear" style="width:100%;display:none" id="outerTypes">
Types allowed based on the above setting:
<?php echo __('Types allowed based on the above setting');?>:
<div class="templateTypeContainerInner" id="innerTypes">&nbsp;</div>
</div>
<div class="input clear"></div>
<div title="When checked, attributes created using this element will automatically be marked for IDSes.">
<div title="<?php echo __('When checked, attributes created using this element will automatically be marked for IDSes.');?>">
<?php
echo $this->Form->input('to_ids', array(
'checked' => false,
'label' => 'Automatically mark for IDS',
'label' => __('Automatically mark for IDS'),
));
?>
</div>
<div class="input clear"></div>
<div title="This setting will make this element mandatory.">
<div title="<?php echo __('This setting will make this element mandatory.');?>">
<?php
echo $this->Form->input('mandatory', array(
'checked' => false,
'label' => 'Mandatory element',
'label' => __('Mandatory element'),
));
?>
<div>
<div class="input clear"></div>
<div title="If this checkbox is checked, then the resulting field in the form will allow several values to be entered (separated by a linebreak).">
<div title="<?php echo __('If this checkbox is checked, then the resulting field in the form will allow several values to be entered (separated by a linebreak).');?>">
<?php
echo $this->Form->input('batch', array(
'checked' => false,
'label' => 'Batch import element',
'label' => __('Batch import element'),
));
?>
</div>
@ -88,13 +88,13 @@
<table>
<tr>
<td style="vertical-align:top">
<span id="submitButton" role="span" tabindex="0" aria-label="Add attribute element" title="Add attribute element" class="btn btn-primary" onClick="return submitPopoverForm('<?php echo $id;?>', 'addAttributeElement')">Submit</span>
<span id="submitButton" role="span" tabindex="0" aria-label="<?php echo __('Add attribute element');?>" title="<?php echo __('Add attribute element');?>" class="btn btn-primary" onClick="return submitPopoverForm('<?php echo $id;?>', 'addAttributeElement')"><?php echo __('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>
<p style="color:red;font-weight:bold;display:none;text-align:center" id="warning-message"><?php echo __('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 role="span" tabindex="0" aria-label="Cancel" title="Cancel" class="btn btn-inverse" id="cancel_attribute_add" onClick="cancelPopoverForm();">Cancel</span>
<span role="span" tabindex="0" aria-label="<?php echo __('Cancel');?>" title="<?php echo __('Cancel');?>" class="btn btn-inverse" id="cancel_attribute_add" onClick="cancelPopoverForm();"><?php echo __('Cancel');?></span>
</td>
</tr>
</table>

View File

@ -1,7 +1,7 @@
<div class="popover_choice">
<legend><?php echo __('Choose element type'); ?></legend>
<div role="button" tabindex="0" aria-label="Add an attribute element" title="Add an attribute element" class="templateChoiceButton" onClick="templateAddElement('attribute', '<?php echo $id;?>');">Attribute</div>
<div role="button" tabindex="0" aria-label="Add a file element" title="Add a file element" class="templateChoiceButton" onClick="templateAddElement('file', '<?php echo $id;?>');">File</div>
<div role="button" tabindex="0" aria-label="Add a text description to the elements that follow" title="Add a text description to the elements that follow" class="templateChoiceButton" onClick="templateAddElement('text', '<?php echo $id;?>');">Text</div>
<div role="button" tabindex="0" aria-label="Cancel" title="Cancel" class="templateChoiceButton templateChoiceButtonLast" onClick="cancelPopoverForm();">Cancel</div>
<div role="button" tabindex="0" aria-label="<?php echo __('Add an attribute element');?>" title="<?php echo __('Add an attribute element');?>" class="templateChoiceButton" onClick="templateAddElement('attribute', '<?php echo $id;?>');"><?php echo __('Attribute');?></div>
<div role="button" tabindex="0" aria-label="<?php echo __('Add a file element');?>" title="Add a file element" class="templateChoiceButton" onClick="templateAddElement('file', '<?php echo $id;?>');"><?php echo __('File');?></div>
<div role="button" tabindex="0" aria-label="<?php echo __('Add a text description to the elements that follow');?>" title="<?php echo __('Add a text description to the elements that follow');?>" class="templateChoiceButton" onClick="templateAddElement('text', '<?php echo $id;?>');"><?php echo __('Text');?></div>
<div role="button" tabindex="0" aria-label="<?php echo __('Cancel');?>" title="<?php echo __('Cancel');?>" class="templateChoiceButton templateChoiceButtonLast" onClick="cancelPopoverForm();"><?php echo __('Cancel');?></div>
</div>

View File

@ -25,36 +25,36 @@
<?php
echo $this->Form->input('category', array(
'options' => array($categories),
'label' => 'Category',
'empty' => 'Select Category'
'label' => __('Category'),
'empty' => __('Select Category')
));
?>
<div class="input clear"></div>
<div id='malwareToggle' title="If a file is flagged as malicious then it will automatically be encrypted.">
<div id='malwareToggle' title="<?php echo __('If a file is flagged as malicious then it will automatically be encrypted.');?>">
<?php
echo $this->Form->input('malware', array(
'checked' => false,
'label' => 'Malware',
'label' => __('Malware'),
));
?>
</div>
<div class="input clear"></div>
<div title="This setting will make this element mandatory.">
<div title="<?php echo __('This setting will make this element mandatory.');?>">
<?php
echo $this->Form->input('mandatory', array(
'checked' => false,
'label' => 'Mandatory element',
'label' => __('Mandatory element'),
));
?>
<div>
<div class="input clear"></div>
<div title="If this checkbox is checked, then the resulting field in the form will allow several files to be uploaded.">
<div title="<?php echo __('If this checkbox is checked, then the resulting field in the form will allow several files to be uploaded.');?>">
<?php
echo $this->Form->input('batch', array(
'checked' => false,
'label' => 'Batch import element',
'label' => __('Batch import element'),
));
?>
</div>
@ -64,13 +64,13 @@
<table>
<tr>
<td style="vertical-align:top">
<span title="Submit the file element" id="submitButton" class="btn btn-primary" onClick="return submitPopoverForm('<?php echo $id;?>', 'addFileElement');">Submit</span>
<span title="<?php echo __('Submit the file element');?>" id="submitButton" class="btn btn-primary" onClick="return submitPopoverForm('<?php echo $id;?>', 'addFileElement');"><?php echo __('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>
<p style="color:red;font-weight:bold;display:none;text-align:center" id="warning-message"><?php echo __('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>
<span class="btn btn-inverse" id="cancel_attribute_add" onClick="cancelPopoverForm();"><?php echo __('Cancel');?></span>
</td>
</tr>
</table>

View File

@ -26,13 +26,13 @@
<table>
<tr>
<td style="vertical-align:top">
<span id="submitButton" title="Add text description element" class="btn btn-primary" onClick="return submitPopoverForm('<?php echo $id;?>', 'addTextElement');">Submit</span>
<span id="submitButton" title="<?php echo __('Add text description element');?>" class="btn btn-primary" onClick="return submitPopoverForm('<?php echo $id;?>', 'addTextElement');"><?php echo __('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>
<p style="color:red;font-weight:bold;display:none;text-align:center" id="warning-message"><?php echo __('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="return cancelPopoverForm();">Cancel</span>
<span class="btn btn-inverse" id="cancel_attribute_add" onClick="return cancelPopoverForm();"><?php echo __('Cancel');?></span>
</td>
</tr>
</table>

View File

@ -25,8 +25,8 @@
<?php
echo $this->Form->input('category', array(
'options' => array($categories),
'label' => 'Category',
'empty' => 'Select Category'
'label' => __('Category'),
'empty' => __('Select Category')
));
?>
<div id='typeToggle'>
@ -39,7 +39,7 @@
?>
</div>
<div class="input clear"></div>
<div id='complexToggle' <?php if (!$initialValues['complex']) echo 'style="display:none;"'; ?> title="Some categories can use complex types. A complex type can define attributes that can be described by various different types, the system will parse the user's entry and determine the most suitable type for the found attributes. The list of valid types for the chosen complex type is shown below.">
<div id='complexToggle' <?php if (!$initialValues['complex']) echo 'style="display:none;"'; ?> title="<?php echo __('Some categories can use complex types. A complex type can define attributes that can be described by various different types, the system will parse the user\'s entry and determine the most suitable type for the found attributes. The list of valid types for the chosen complex type is shown below.');?>">
<?php
echo $this->Form->input('complex', array(
'checked' => $initialValues['complex'],
@ -50,19 +50,19 @@
<div class="input clear"></div>
<div id="typeJSON" style="display:none"></div>
<div class="input clear" style="width:100%;display:none" id="outerTypes">
Types allowed based on the above setting:
<?php echo __('Types allowed based on the above setting');?>:
<div class="templateTypeContainerInner" id="innerTypes">&nbsp;</div>
</div>
<div class="input clear"></div>
<div title="When checked, attributes created using this element will automatically be marked for IDSes.">
<div title="<?php echo __('When checked, attributes created using this element will automatically be marked for IDSes.');?>">
<?php
echo $this->Form->input('to_ids', array(
'label' => 'Automatically mark for IDS',
'label' => __('Automatically mark for IDS'),
));
?>
</div>
<div class="input clear"></div>
<div title="This setting will make this element mandatory.">
<div title="<?php echo __('This setting will make this element mandatory.');?>">
<?php
echo $this->Form->input('mandatory', array(
'label' => 'Mandatory element',
@ -70,10 +70,10 @@
?>
<div>
<div class="input clear"></div>
<div title="If this checkbox is checked, then the resulting field in the form will allow several values to be entered (separated by a linebreak).">
<div title="<?php echo __('If this checkbox is checked, then the resulting field in the form will allow several values to be entered (separated by a linebreak).');?>">
<?php
echo $this->Form->input('batch', array(
'label' => 'Batch import element',
'label' => __('Batch import element'),
));
?>
</div>
@ -83,13 +83,13 @@
<table>
<tr>
<td style="vertical-align:top">
<span id="submitButton" aria-label="Submit attribute element changes" title="Submit attribute element changes" class="btn btn-primary" onClick="return submitPopoverForm('<?php echo $id;?>', 'editAttributeElement', '<?php echo $template_id; ?>')">Submit</span>
<span id="submitButton" aria-label="<?php echo __('Submit attribute element changes');?>" title="<?php echo __('Submit attribute element changes');?>" class="btn btn-primary" onClick="return submitPopoverForm('<?php echo $id;?>', 'editAttributeElement', '<?php echo $template_id; ?>')"><?php echo __('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>
<p style="color:red;font-weight:bold;display:none;text-align:center" id="warning-message"><?php echo __('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 title="Cancel" class="btn btn-inverse" id="cancel_attribute_add" onClick="cancelPopoverForm();">Cancel</span>
<span title="<?php echo __('Cancel');?>" class="btn btn-inverse" id="cancel_attribute_add" onClick="cancelPopoverForm();"><?php echo __('Cancel');?></span>
</td>
</tr>
</table>

View File

@ -25,36 +25,36 @@
<?php
echo $this->Form->input('category', array(
'options' => array($categories),
'label' => 'Category',
'label' => __('Category'),
'empty' => 'Select Category'
));
?>
<div class="input clear"></div>
<div id='malwareToggle' title="If a file is flagged as malicious then it will automatically be encrypted.">
<div id='malwareToggle' title="<?php echo __('If a file is flagged as malicious then it will automatically be encrypted.');?>">
<?php
echo $this->Form->input('malware', array(
'checked' => false,
'label' => 'Malware',
'label' => __('Malware'),
));
?>
</div>
<div class="input clear"></div>
<div title="This setting will make this element mandatory.">
<div title="<?php echo __('This setting will make this element mandatory.');?>">
<?php
echo $this->Form->input('mandatory', array(
'checked' => false,
'label' => 'Mandatory element',
'label' => __('Mandatory element'),
));
?>
<div>
<div class="input clear"></div>
<div title="If this checkbox is checked, then the resulting field in the form will allow several files to be uploaded.">
<div title="<?php echo __('If this checkbox is checked, then the resulting field in the form will allow several files to be uploaded.');?>">
<?php
echo $this->Form->input('batch', array(
'checked' => false,
'label' => 'Batch import element',
'label' => __('Batch import element'),
));
?>
</div>
@ -64,13 +64,13 @@
<table>
<tr>
<td style="vertical-align:top">
<span title="Submit file element changes" id="submitButton" class="btn btn-primary" onClick="return submitPopoverForm('<?php echo $id;?>', 'editFileElement', '<?php echo $template_id; ?>');">Submit</span>
<span title="<?php echo __('Submit file element changes');?>" id="submitButton" class="btn btn-primary" onClick="return submitPopoverForm('<?php echo $id;?>', 'editFileElement', '<?php echo $template_id; ?>');"><?php echo __('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>
<p style="color:red;font-weight:bold;display:none;text-align:center" id="warning-message"><?php echo __('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 title="Cancel" class="btn btn-inverse" id="cancel_attribute_add" onClick="cancelPopoverForm();">Cancel</span>
<span title="<?php echo __('Cancel');?>" class="btn btn-inverse" id="cancel_attribute_add" onClick="cancelPopoverForm();"><?php echo __('Cancel');?></span>
</td>
</tr>
</table>

View File

@ -26,13 +26,13 @@
<table>
<tr>
<td style="vertical-align:top">
<span id="submitButton" title="Submit description changes" class="btn btn-primary" onClick="return submitPopoverForm('<?php echo $id;?>', 'editTextElement', '<?php echo $template_id; ?>')">Submit</span>
<span id="submitButton" title="<?php echo __('Submit description changes');?>" class="btn btn-primary" onClick="return submitPopoverForm('<?php echo $id;?>', 'editTextElement', '<?php echo $template_id; ?>')"><?php echo __('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>
<p style="color:red;font-weight:bold;display:none;text-align:center" id="warning-message"><?php echo __('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>
<span class="btn btn-inverse" id="cancel_attribute_add" onClick="cancelPopoverForm();"><?php echo __('Cancel');?></span>
</td>
</tr>
</table>