2020-05-29 13:41:58 +02:00
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
2021-03-18 09:26:01 +01:00
|
|
|
<h5 class="modal-title">
|
|
|
|
<?php if (empty($deletionTitle)): ?>
|
|
|
|
<p><?= __('Delete {0}', h(Cake\Utility\Inflector::singularize(Cake\Utility\Inflector::humanize($this->request->getParam('controller'))))) ?></p>
|
|
|
|
<?php else: ?>
|
|
|
|
<p><?= h($deletionTitle) ?></p>
|
|
|
|
<?php endif; ?>
|
|
|
|
</h5>
|
2020-05-29 13:41:58 +02:00
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2021-01-18 17:25:18 +01:00
|
|
|
<?php if (empty($deletionText)): ?>
|
|
|
|
<p><?= __('Are you sure you want to delete {0} #{1}?', h(Cake\Utility\Inflector::singularize($this->request->getParam('controller'))), h($id)) ?></p>
|
|
|
|
<?php else: ?>
|
|
|
|
<p><?= h($deletionText) ?></p>
|
|
|
|
<?php endif; ?>
|
2020-05-29 13:41:58 +02:00
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<?= $this->Form->postLink(
|
2021-03-18 09:26:01 +01:00
|
|
|
!empty($deletionConfirm) ? h($deletionConfirm) : __('Delete'),
|
2021-01-18 17:25:18 +01:00
|
|
|
(empty($postLinkParameters) ? ['action' => 'delete', $id] : $postLinkParameters),
|
2021-03-15 22:47:13 +01:00
|
|
|
['class' => 'btn btn-danger button-execute', 'id' => 'submitButton']
|
2020-05-29 13:41:58 +02:00
|
|
|
)
|
|
|
|
?>
|
|
|
|
<button type="button" class="btn btn-secondary cancel-button" data-dismiss="modal"><?= __('Cancel') ?></button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).keydown(function(e) {
|
|
|
|
if(e.which === 13 && e.ctrlKey) {
|
|
|
|
$('.button-execute').click();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|