chg: [warninglists:index] Moved views to factory - WiP

pull/7386/head
mokaddem 2021-04-30 08:35:17 +02:00
parent dc93212ec5
commit aaae08cab4
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
2 changed files with 6 additions and 36 deletions

View File

@ -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>

View File

@ -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'],
),
)
)