mirror of
https://github.com/itflow-org/itflow
synced 2026-03-21 21:15:38 +00:00
Merge pull request #406 from wrongecho/ticket-ui
Hide edit/delete buttons for closed tickets
This commit is contained in:
@@ -184,16 +184,18 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
<td><?php echo $ticket_updated_at_display; ?></td>
|
<td><?php echo $ticket_updated_at_display; ?></td>
|
||||||
<td><?php echo $ticket_created_at; ?></td>
|
<td><?php echo $ticket_created_at; ?></td>
|
||||||
<td>
|
<td>
|
||||||
<div class="dropdown dropleft text-center">
|
<?php if($ticket_status !== "Closed") { ?>
|
||||||
<button class="btn btn-secondary btn-sm" type="button" data-toggle="dropdown">
|
<div class="dropdown dropleft text-center">
|
||||||
<i class="fas fa-ellipsis-h"></i>
|
<button class="btn btn-secondary btn-sm" type="button" data-toggle="dropdown">
|
||||||
</button>
|
<i class="fas fa-ellipsis-h"></i>
|
||||||
<div class="dropdown-menu">
|
</button>
|
||||||
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#editTicketModal<?php echo $ticket_id; ?>">Edit</a>
|
<div class="dropdown-menu">
|
||||||
<div class="dropdown-divider"></div>
|
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#editTicketModal<?php echo $ticket_id; ?>">Edit</a>
|
||||||
<a class="dropdown-item text-danger" href="post.php?delete_ticket=<?php echo $ticket_id; ?>">Delete</a>
|
<div class="dropdown-divider"></div>
|
||||||
|
<a class="dropdown-item text-danger" href="post.php?delete_ticket=<?php echo $ticket_id; ?>">Delete</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<?php } ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|||||||
@@ -317,7 +317,7 @@ if(isset($_GET['ticket_id'])){
|
|||||||
</div>
|
</div>
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<?php if($ticket_reply_type !== "Client") { ?>
|
<?php if($ticket_reply_type !== "Client" AND $ticket_status !== "Closed") { ?>
|
||||||
<div class="card-tools">
|
<div class="card-tools">
|
||||||
<div class="dropdown dropleft">
|
<div class="dropdown dropleft">
|
||||||
<button class="btn btn-tool" type="button" id="dropdownMenuButton" data-toggle="dropdown">
|
<button class="btn btn-tool" type="button" id="dropdownMenuButton" data-toggle="dropdown">
|
||||||
|
|||||||
26
tickets.php
26
tickets.php
@@ -426,18 +426,20 @@ $user_active_assigned_tickets = $row['total_tickets_assigned'];
|
|||||||
<td><?php echo $ticket_updated_at_display; ?></td>
|
<td><?php echo $ticket_updated_at_display; ?></td>
|
||||||
<td><?php echo $ticket_created_at; ?></td>
|
<td><?php echo $ticket_created_at; ?></td>
|
||||||
<td>
|
<td>
|
||||||
<div class="dropdown dropleft text-center">
|
<?php if($ticket_status !== "Closed") { ?>
|
||||||
<button class="btn btn-secondary btn-sm" type="button" data-toggle="dropdown">
|
<div class="dropdown dropleft text-center">
|
||||||
<i class="fas fa-ellipsis-h"></i>
|
<button class="btn btn-secondary btn-sm" type="button" data-toggle="dropdown">
|
||||||
</button>
|
<i class="fas fa-ellipsis-h"></i>
|
||||||
<div class="dropdown-menu">
|
</button>
|
||||||
<a class="dropdown-item" href="#" data-toggle="modal"
|
<div class="dropdown-menu">
|
||||||
data-target="#editTicketModal<?php echo $ticket_id; ?>">Edit</a>
|
<a class="dropdown-item" href="#" data-toggle="modal"
|
||||||
<div class="dropdown-divider"></div>
|
data-target="#editTicketModal<?php echo $ticket_id; ?>">Edit</a>
|
||||||
<a class="dropdown-item text-danger"
|
<div class="dropdown-divider"></div>
|
||||||
href="post.php?delete_ticket=<?php echo $ticket_id; ?>">Delete</a>
|
<a class="dropdown-item text-danger"
|
||||||
</div>
|
href="post.php?delete_ticket=<?php echo $ticket_id; ?>">Delete</a>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php } ?>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("ticket_edit_modal.php");
|
include("ticket_edit_modal.php");
|
||||||
|
|||||||
Reference in New Issue
Block a user