make the delconfirm modal generic

This commit is contained in:
Andrew Bauer 2020-09-26 07:53:22 -05:00
parent 48a649a132
commit 5b1d6331e4
2 changed files with 6 additions and 3 deletions

View File

@ -1,18 +1,20 @@
<?php
// This is the HTML representing the Delete confirmation modal on the Events page
// This is the HTML representing the Delete confirmation modal on the Events page and other pages
$delTextKey = isset($_REQUEST['key']) ? $_REQUEST['key'] : 'ConfirmDeleteEvents';
?>
<div id="deleteConfirm" class="modal fade" class="modal" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Delete Confirmation</h5>
<h5 class="modal-title"><?php echo translate('ConfirmDeleteTitle') ?></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<p><?php echo translate('ConfirmDeleteEvents') ?></p>
<p><?php echo translate($delTextKey) ?></p>
</div>
<div class="modal-footer">
<button id="delCancelBtn" type="button" class="btn btn-secondary" data-dismiss="modal"><?php echo translate('Cancel') ?></button>

View File

@ -262,6 +262,7 @@ $SLANG = array(
'ConfiguredFor' => 'Configured for',
'ConfigURL' => 'Config Base URL',
'ConfirmDeleteEvents' => 'Are you sure you wish to delete the selected events?',
'ConfirmDeleteTitle' => 'Delete Confirmation',
'ConfirmPassword' => 'Confirm Password',
'ConjAnd' => 'and',
'ConjOr' => 'or',