2021-01-14 11:33:51 +01:00
|
|
|
<div class="modal-dialog <?= empty($class) ? '' : h($class) ?>" <?= !empty($staticBackdrop) ? 'data-backdrop="static"' : ''?> role="document">
|
2020-05-29 13:41:58 +02:00
|
|
|
<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">
|
|
|
|
<?= $body ?>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2021-01-14 11:33:51 +01:00
|
|
|
<?php if (empty($noCancel)): ?>
|
|
|
|
<button type="button" class="btn btn-secondary cancel-button" data-dismiss="modal"><?= __('Cancel') ?></button>
|
|
|
|
<?php endif; ?>
|
2021-01-12 11:59:35 +01:00
|
|
|
<?= $actionButton ?>
|
2020-05-29 13:41:58 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).keydown(function(e) {
|
|
|
|
if(e.which === 13 && e.ctrlKey) {
|
|
|
|
$('.button-execute').click();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|