mirror of https://github.com/MISP/MISP
chg: [warninglists:index] Moved views to factory - WiP
parent
dc93212ec5
commit
aaae08cab4
|
@ -1,33 +0,0 @@
|
|||
<div class="confirmation">
|
||||
<?php
|
||||
echo $this->Form->create('Warninglist', array(
|
||||
'style' => 'margin:0px;',
|
||||
'id' => 'PromptForm',
|
||||
'url' => array('controller' => 'warninglists', 'action' => 'delete', $id)
|
||||
));
|
||||
?>
|
||||
<legend><?php echo __('Warninglist Deletion');?></legend>
|
||||
<div style="padding-left:5px;padding-right:5px;padding-bottom:5px;">
|
||||
<p><?php echo __('Are you sure you want to delete Warninglist #%s<br /> Associated tags will not be removed. You can reload the warninglist at any time by updating your warninglists.', h($id));?></p>
|
||||
<table>
|
||||
<tr>
|
||||
<td style="vertical-align:top">
|
||||
<?php
|
||||
echo $this->Form->button('Yes', array(
|
||||
'type' => 'submit',
|
||||
'class' => 'btn btn-primary'
|
||||
));
|
||||
?>
|
||||
</td>
|
||||
<td style="width:540px;">
|
||||
</td>
|
||||
<td style="vertical-align:top;">
|
||||
<span role="button" tabindex="0" aria-label="<?php echo __('Cancel');?>" class="btn btn-inverse" id="PromptNoButton" onClick="cancelPrompt();"><?php echo __('No');?></span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php
|
||||
echo $this->Form->end();
|
||||
?>
|
||||
</div>
|
|
@ -138,10 +138,13 @@
|
|||
),
|
||||
array(
|
||||
'title' => __('Delete'),
|
||||
'url' => $baseurl . '/warninglists/delete',
|
||||
'url_params_data_paths' => array(
|
||||
'Warninglist.id'
|
||||
),
|
||||
'postLink' => true,
|
||||
'postLinkConfirm' => __('Are you sure you want to delete the entry?'),
|
||||
'icon' => 'trash',
|
||||
'onclick' => 'simplePopup(\'' . $baseurl . '/warninglists/delete/[onclick_params_data_path]\');',
|
||||
'onclick_params_data_path' => 'Warninglist.id',
|
||||
'requirement' => $me['Role']['perm_site_admin'],
|
||||
),
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue