mirror of https://github.com/itflow-org/itflow
Cleaned up the watchers Modals
This commit is contained in:
parent
427ed8e57b
commit
cc80d41964
|
|
@ -14,6 +14,7 @@ function addWatcher(button) {
|
|||
textField.type = "email";
|
||||
textField.className = "form-control";
|
||||
textField.name = "watchers[]";
|
||||
textField.placeholder = "Enter an email";
|
||||
|
||||
var removeButtonWrapper = document.createElement("div");
|
||||
removeButtonWrapper.className = "input-group-append";
|
||||
|
|
|
|||
|
|
@ -330,7 +330,7 @@ if (isset($_POST['add_ticket_reply'])) {
|
|||
|
||||
// Also Email all the watchers
|
||||
$sql_watchers = mysqli_query($mysqli, "SELECT watcher_email FROM ticket_watchers WHERE watcher_ticket_id = $ticket_id");
|
||||
$body .= "<br><br>----------------------------------------<br>YOU ARE RECEIVING THIS EMAIL BECAUSE YOU ARE A WATCHER";
|
||||
$body .= "<br><br>----------------------------------------<br>DO NOT REPLY - YOU ARE RECEIVING THIS EMAIL BECAUSE YOU ARE A WATCHER";
|
||||
while ($row = mysqli_fetch_array($sql_watchers)) {
|
||||
$watcher_email = sanitizeInput($row['watcher_email']);
|
||||
|
||||
|
|
|
|||
|
|
@ -161,8 +161,8 @@
|
|||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Watchers <span class="text-danger">Work in Progress</span></label>
|
||||
<div class="text-fields"></div>
|
||||
<label>Watchers</label>
|
||||
<div class="watchers"></div>
|
||||
<button type="button" class="btn btn-primary" onclick="addWatcher(this)"><i class="fas fa-fw fa-plus"></i> Add Watcher</button>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -135,9 +135,10 @@
|
|||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Watchers <span class="text-danger">Work in Progress</span></label>
|
||||
<label>Watchers</label>
|
||||
|
||||
<div class="text-fields">
|
||||
<div class="watchers">
|
||||
|
||||
<?php
|
||||
$sql_watchers = mysqli_query($mysqli, "SELECT * FROM ticket_watchers WHERE watcher_ticket_id = $ticket_id");
|
||||
while ($row = mysqli_fetch_array($sql_watchers)) {
|
||||
|
|
@ -156,6 +157,7 @@
|
|||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
<button class="btn btn-primary" type="button" onclick="addWatcher(this)"><i class="fas fa-fw fa-plus"></i> Add Watcher</button>
|
||||
|
|
|
|||
Loading…
Reference in New Issue