mirror of
https://github.com/itflow-org/itflow
synced 2026-03-01 11:24:52 +00:00
Cleaned up the watchers Modals
This commit is contained in:
@@ -14,6 +14,7 @@ function addWatcher(button) {
|
|||||||
textField.type = "email";
|
textField.type = "email";
|
||||||
textField.className = "form-control";
|
textField.className = "form-control";
|
||||||
textField.name = "watchers[]";
|
textField.name = "watchers[]";
|
||||||
|
textField.placeholder = "Enter an email";
|
||||||
|
|
||||||
var removeButtonWrapper = document.createElement("div");
|
var removeButtonWrapper = document.createElement("div");
|
||||||
removeButtonWrapper.className = "input-group-append";
|
removeButtonWrapper.className = "input-group-append";
|
||||||
|
|||||||
@@ -330,7 +330,7 @@ if (isset($_POST['add_ticket_reply'])) {
|
|||||||
|
|
||||||
// Also Email all the watchers
|
// Also Email all the watchers
|
||||||
$sql_watchers = mysqli_query($mysqli, "SELECT watcher_email FROM ticket_watchers WHERE watcher_ticket_id = $ticket_id");
|
$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)) {
|
while ($row = mysqli_fetch_array($sql_watchers)) {
|
||||||
$watcher_email = sanitizeInput($row['watcher_email']);
|
$watcher_email = sanitizeInput($row['watcher_email']);
|
||||||
|
|
||||||
|
|||||||
@@ -161,8 +161,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>Watchers <span class="text-danger">Work in Progress</span></label>
|
<label>Watchers</label>
|
||||||
<div class="text-fields"></div>
|
<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>
|
<button type="button" class="btn btn-primary" onclick="addWatcher(this)"><i class="fas fa-fw fa-plus"></i> Add Watcher</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -135,9 +135,10 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>Watchers <span class="text-danger">Work in Progress</span></label>
|
<label>Watchers</label>
|
||||||
|
|
||||||
|
<div class="watchers">
|
||||||
|
|
||||||
<div class="text-fields">
|
|
||||||
<?php
|
<?php
|
||||||
$sql_watchers = mysqli_query($mysqli, "SELECT * FROM ticket_watchers WHERE watcher_ticket_id = $ticket_id");
|
$sql_watchers = mysqli_query($mysqli, "SELECT * FROM ticket_watchers WHERE watcher_ticket_id = $ticket_id");
|
||||||
while ($row = mysqli_fetch_array($sql_watchers)) {
|
while ($row = mysqli_fetch_array($sql_watchers)) {
|
||||||
@@ -156,6 +157,7 @@
|
|||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button class="btn btn-primary" type="button" onclick="addWatcher(this)"><i class="fas fa-fw fa-plus"></i> Add Watcher</button>
|
<button class="btn btn-primary" type="button" onclick="addWatcher(this)"><i class="fas fa-fw fa-plus"></i> Add Watcher</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user