make the delconfirm modal generic
This commit is contained in:
parent
48a649a132
commit
5b1d6331e4
|
@ -1,18 +1,20 @@
|
||||||
<?php
|
<?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 id="deleteConfirm" class="modal fade" class="modal" tabindex="-1">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<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">
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
<span aria-hidden="true">×</span>
|
<span aria-hidden="true">×</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<p><?php echo translate('ConfirmDeleteEvents') ?></p>
|
<p><?php echo translate($delTextKey) ?></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button id="delCancelBtn" type="button" class="btn btn-secondary" data-dismiss="modal"><?php echo translate('Cancel') ?></button>
|
<button id="delCancelBtn" type="button" class="btn btn-secondary" data-dismiss="modal"><?php echo translate('Cancel') ?></button>
|
||||||
|
|
|
@ -262,6 +262,7 @@ $SLANG = array(
|
||||||
'ConfiguredFor' => 'Configured for',
|
'ConfiguredFor' => 'Configured for',
|
||||||
'ConfigURL' => 'Config Base URL',
|
'ConfigURL' => 'Config Base URL',
|
||||||
'ConfirmDeleteEvents' => 'Are you sure you wish to delete the selected events?',
|
'ConfirmDeleteEvents' => 'Are you sure you wish to delete the selected events?',
|
||||||
|
'ConfirmDeleteTitle' => 'Delete Confirmation',
|
||||||
'ConfirmPassword' => 'Confirm Password',
|
'ConfirmPassword' => 'Confirm Password',
|
||||||
'ConjAnd' => 'and',
|
'ConjAnd' => 'and',
|
||||||
'ConjOr' => 'or',
|
'ConjOr' => 'or',
|
||||||
|
|
Loading…
Reference in New Issue