mirror of https://github.com/MISP/MISP
28 lines
1009 B
PHP
28 lines
1009 B
PHP
<div id="genericModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="genericModalLabel" aria-hidden="true">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
<h3 id="genericModalLabel"><?= h($title) ?></h3>
|
|
</div>
|
|
<div class="modal-body modal-body-long">
|
|
<p><?= h($question) ?></p>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<?= $this->Form->postLink(
|
|
h($actionName),
|
|
$this->request->here(),
|
|
['class' => 'btn btn-primary button-execute']
|
|
)
|
|
?>
|
|
<button type="button" class="btn btn-secondary cancel-button" data-dismiss="modal"><?= __('Cancel') ?></button>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(document).keydown(function(e) {
|
|
if(e.which === 13 && e.ctrlKey) {
|
|
$('.button-execute').click();
|
|
}
|
|
});
|
|
</script>
|