2021-09-17 13:04:37 +02:00
|
|
|
<div class="modal-dialog <?= empty($class) ? '' : h($class) ?>" <?= !empty($staticBackdrop) ? 'data-bs-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>
|
2021-09-17 13:04:37 +02:00
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close">
|
2020-05-29 13:41:58 +02:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<?= $body ?>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2021-01-14 11:33:51 +01:00
|
|
|
<?php if (empty($noCancel)): ?>
|
2021-09-17 13:04:37 +02:00
|
|
|
<button type="button" class="btn btn-secondary cancel-button" data-bs-dismiss="modal"><?= __('Cancel') ?></button>
|
2021-01-14 11:33:51 +01:00
|
|
|
<?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>
|