mirror of
https://github.com/itflow-org/itflow
synced 2026-03-08 06:44:51 +00:00
Add Function Select2 Multiple Capabilities to add ticket watchers in create client ticket
This commit is contained in:
@@ -305,7 +305,7 @@
|
|||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<span class="input-group-text"><i class="fa fa-fw fa-tags"></i></span>
|
<span class="input-group-text"><i class="fa fa-fw fa-tags"></i></span>
|
||||||
</div>
|
</div>
|
||||||
<select class="form-control select2" name="tags[]" data-tags="true" data-placeholder="Add some tags" multiple>
|
<select class="form-control select2" name="tags[]" data-placeholder="Add some tags" multiple>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$sql_tags_select = mysqli_query($mysqli, "SELECT * FROM tags WHERE tag_type = 1 ORDER BY tag_name ASC");
|
$sql_tags_select = mysqli_query($mysqli, "SELECT * FROM tags WHERE tag_type = 1 ORDER BY tag_name ASC");
|
||||||
|
|||||||
@@ -200,7 +200,7 @@
|
|||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<span class="input-group-text"><i class="fa fa-fw fa-tags"></i></span>
|
<span class="input-group-text"><i class="fa fa-fw fa-tags"></i></span>
|
||||||
</div>
|
</div>
|
||||||
<select class="form-control select2" name="tags[]" data-tags="true" data-placeholder="Add some tags" multiple>
|
<select class="form-control select2" name="tags[]" data-placeholder="Add some tags" multiple>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$sql_tags_select = mysqli_query($mysqli, "SELECT * FROM tags WHERE tag_type = 1 ORDER BY tag_name ASC");
|
$sql_tags_select = mysqli_query($mysqli, "SELECT * FROM tags WHERE tag_type = 1 ORDER BY tag_name ASC");
|
||||||
|
|||||||
@@ -169,8 +169,22 @@
|
|||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>Watchers</label>
|
<label>Watchers</label>
|
||||||
<div class="watchers"></div>
|
<div class="input-group">
|
||||||
<button type="button" class="btn btn-primary" onclick="addWatcher(this)"><i class="fas fa-fw fa-plus"></i> Add Watcher</button>
|
<div class="input-group-prepend">
|
||||||
|
<span class="input-group-text"><i class="fa fa-fw fa-envelope"></i></span>
|
||||||
|
</div>
|
||||||
|
<select class="form-control select2" name="watchers[]" data-tags="true" data-placeholder="Enter or select email address" multiple>
|
||||||
|
<option value="">aa</option>
|
||||||
|
<?php
|
||||||
|
$sql = mysqli_query($mysqli, "SELECT * FROM contacts WHERE contact_client_id = $client_id AND contact_archived_at IS NULL AND contact_email IS NOT NULL ORDER BY contact_email ASC");
|
||||||
|
while ($row = mysqli_fetch_array($sql)) {
|
||||||
|
$contact_email = nullable_htmlentities($row['contact_email']);
|
||||||
|
?>
|
||||||
|
<option><?php echo $contact_email; ?></option>
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user