30 lines
1000 B
PHP
30 lines
1000 B
PHP
|
<div class="modal-dialog" role="document">
|
||
|
<div class="modal-content">
|
||
|
<div class="modal-header">
|
||
|
<h5 class="modal-title"><?= h($title) ?></h5>
|
||
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||
|
<span aria-hidden="true">×</span>
|
||
|
</button>
|
||
|
</div>
|
||
|
<div class="modal-body">
|
||
|
<p><?= h($question) ?></p>
|
||
|
</div>
|
||
|
<div class="modal-footer">
|
||
|
<?= $this->Form->postLink(
|
||
|
h($actionName),
|
||
|
$path,
|
||
|
['class' => 'btn btn-primary button-execute']
|
||
|
)
|
||
|
?>
|
||
|
<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>
|