renamed settings alerts to notifications and reworked the notification UI to allow for future growth

This commit is contained in:
johnnyq
2023-12-28 19:52:24 -05:00
parent db4fd095d6
commit 7759f54260
5 changed files with 124 additions and 74 deletions

View File

@@ -10,7 +10,6 @@ require_once "inc_all_settings.php";
<form action="post.php" method="post" autocomplete="off">
<input type="hidden" name="csrf_token" value="<?php echo $_SESSION['csrf_token'] ?>">
<input type="hidden" name="config_ticket_email_parse" value="0">
<input type="hidden" name="config_ticket_client_general_notifications" value="0">
<input type="hidden" name="config_ticket_autoclose" value="0">
<div class="form-group">
@@ -40,13 +39,6 @@ require_once "inc_all_settings.php";
</div>
</div>
<div class="form-group">
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" name="config_ticket_client_general_notifications" <?php if($config_ticket_client_general_notifications == 1){ echo "checked"; } ?> value="1" id="ticketNotificationSwitch">
<label class="custom-control-label" for="ticketNotificationSwitch">Send clients general notification emails <small class="text-secondary">(Should clients receive automatic emails when tickets are raised/closed?)</small></label>
</div>
</div>
<div class="form-group">
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" name="config_ticket_autoclose" <?php if($config_ticket_autoclose == 1){ echo "checked"; } ?> value="1" id="ticketAutoCloseSwitch">