mirror of https://github.com/itflow-org/itflow
UI/UX Draggables now switch to a hand on hover, updated the UI in invoice quote and reccuring invoice so buttons do not wrap and are grouped. Seperated the Dragable button using a button link, did the same for tasks in tickets
This commit is contained in:
parent
eeef63d1c3
commit
a00f26d8a4
|
|
@ -45,7 +45,7 @@ $sql_task_templates = mysqli_query($mysqli, "SELECT * FROM task_templates WHERE
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-8">
|
<div class="col-9">
|
||||||
|
|
||||||
<div class="card card-dark">
|
<div class="card card-dark">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
|
|
@ -72,7 +72,7 @@ $sql_task_templates = mysqli_query($mysqli, "SELECT * FROM task_templates WHERE
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-4">
|
<div class="col-3">
|
||||||
|
|
||||||
<div class="card card-dark">
|
<div class="card card-dark">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
|
|
@ -82,10 +82,7 @@ $sql_task_templates = mysqli_query($mysqli, "SELECT * FROM task_templates WHERE
|
||||||
<form action="post.php" method="post" autocomplete="off">
|
<form action="post.php" method="post" autocomplete="off">
|
||||||
<input type="hidden" name="ticket_template_id" value="<?php echo $ticket_template_id; ?>">
|
<input type="hidden" name="ticket_template_id" value="<?php echo $ticket_template_id; ?>">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="input-group">
|
<div class="input-group input-group-sm">
|
||||||
<div class="input-group-prepend">
|
|
||||||
<span class="input-group-text"><i class="fa fa-fw fa-tasks"></i></span>
|
|
||||||
</div>
|
|
||||||
<input type="text" class="form-control" name="task_name" placeholder="Create a task" required maxlength="200">
|
<input type="text" class="form-control" name="task_name" placeholder="Create a task" required maxlength="200">
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<button type="submit" name="add_ticket_template_task" class="btn btn-primary"><i class="fas fa-fw fa-check"></i></button>
|
<button type="submit" name="add_ticket_template_task" class="btn btn-primary"><i class="fas fa-fw fa-check"></i></button>
|
||||||
|
|
@ -103,15 +100,14 @@ $sql_task_templates = mysqli_query($mysqli, "SELECT * FROM task_templates WHERE
|
||||||
?>
|
?>
|
||||||
<tr data-task-id="<?php echo $task_id; ?>">
|
<tr data-task-id="<?php echo $task_id; ?>">
|
||||||
<td>
|
<td>
|
||||||
<a href="#" class="drag-handle"><i class="fas fa-bars text-muted mr-1"></i></a>
|
<a href="#" class="drag-handle"><i class="fas fa-bars text-muted mr-2"></i></a>
|
||||||
<span class="text-secondary"><?php echo $task_completion_estimate; ?>m</span>
|
<span class="text-dark"><?php echo $task_name; ?></span>
|
||||||
<span class="text-dark"> - <?php echo $task_name; ?></span>
|
|
||||||
</td>
|
</td>
|
||||||
<td class="text-right">
|
<td class="text-right">
|
||||||
<div class="float-right">
|
<div class="float-right">
|
||||||
<div class="dropdown dropleft text-center">
|
<div class="dropdown dropleft text-center">
|
||||||
<button class="btn btn-link text-secondary btn-sm" type="button" data-toggle="dropdown">
|
<button class="btn btn-light text-secondary btn-sm" type="button" data-toggle="dropdown">
|
||||||
<i class="fas fa-fw fa-ellipsis-v"></i>
|
<i class="fas fa-ellipsis-v"></i>
|
||||||
</button>
|
</button>
|
||||||
<div class="dropdown-menu">
|
<div class="dropdown-menu">
|
||||||
<a class="dropdown-item" href="#"
|
<a class="dropdown-item" href="#"
|
||||||
|
|
|
||||||
|
|
@ -21,10 +21,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.drag-handle {
|
.drag-handle {
|
||||||
cursor: grab;
|
cursor: grab !important;
|
||||||
touch-action: none;
|
|
||||||
user-select: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.drag-handle:active {
|
.drag-handle:active {
|
||||||
cursor: grabbing;
|
cursor: grabbing !important;
|
||||||
}
|
}
|
||||||
11
invoice.php
11
invoice.php
|
|
@ -384,13 +384,12 @@ if (isset($_GET['invoice_id'])) {
|
||||||
<tr data-item-id="<?php echo $item_id; ?>">
|
<tr data-item-id="<?php echo $item_id; ?>">
|
||||||
<td class="d-print-none">
|
<td class="d-print-none">
|
||||||
<?php if ($invoice_status !== "Paid" && $invoice_status !== "Cancelled") { ?>
|
<?php if ($invoice_status !== "Paid" && $invoice_status !== "Cancelled") { ?>
|
||||||
<div class="row">
|
|
||||||
<div class="col">
|
<div class="btn-group">
|
||||||
<button type="button" class="btn btn-sm btn-light drag-handle">
|
<button type="button" class="btn btn-sm btn-link drag-handle">
|
||||||
<i class="fas fa-bars text-muted"></i>
|
<i class="fas fa-bars text-muted"></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
|
||||||
<div class="col">
|
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
<button class="btn btn-sm btn-light" type="button" data-toggle="dropdown">
|
<button class="btn btn-sm btn-light" type="button" data-toggle="dropdown">
|
||||||
<i class="fas fa-ellipsis-v"></i>
|
<i class="fas fa-ellipsis-v"></i>
|
||||||
|
|
@ -408,7 +407,7 @@ if (isset($_GET['invoice_id'])) {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</td>
|
</td>
|
||||||
<td><?php echo $item_name; ?></td>
|
<td><?php echo $item_name; ?></td>
|
||||||
|
|
|
||||||
|
|
@ -271,7 +271,7 @@ if (isset($_GET['project_id'])) {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-8">
|
<div class="col-md-9">
|
||||||
|
|
||||||
<!-- Tickets card -->
|
<!-- Tickets card -->
|
||||||
<?php if (mysqli_num_rows($sql_tickets) > 0) { ?>
|
<?php if (mysqli_num_rows($sql_tickets) > 0) { ?>
|
||||||
|
|
@ -419,7 +419,7 @@ if (isset($_GET['project_id'])) {
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-4">
|
<div class="col-md-3">
|
||||||
|
|
||||||
<!-- Tasks Card -->
|
<!-- Tasks Card -->
|
||||||
<?php if (mysqli_num_rows($sql_tasks) > 0) { ?>
|
<?php if (mysqli_num_rows($sql_tasks) > 0) { ?>
|
||||||
|
|
@ -435,10 +435,10 @@ if (isset($_GET['project_id'])) {
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<?php if ($task_completed_at) { ?>
|
<?php if ($task_completed_at) { ?>
|
||||||
<i class="far fa-fw fa-check-square text-primary mr-3"></i>
|
<i class="far fa-check-square text-primary mr-2"></i>
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<a href="post.php?complete_task=<?php echo $task_id; ?>">
|
<a href="post.php?complete_task=<?php echo $task_id; ?>">
|
||||||
<i class="far fa-fw fa-square text-secondary mr-3"></i>
|
<i class="far fa-square text-secondary mr-2"></i>
|
||||||
</a>
|
</a>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php echo $task_name; ?>
|
<?php echo $task_name; ?>
|
||||||
|
|
|
||||||
|
|
@ -344,13 +344,10 @@ if (isset($_GET['quote_id'])) {
|
||||||
<tr data-item-id="<?php echo $item_id; ?>">
|
<tr data-item-id="<?php echo $item_id; ?>">
|
||||||
<td class="d-print-none">
|
<td class="d-print-none">
|
||||||
<?php if ($quote_status !== "Invoiced" && $quote_status !== "Accepted" && $quote_status !== "Declined" && lookupUserPermission("module_sales") >= 2) { ?>
|
<?php if ($quote_status !== "Invoiced" && $quote_status !== "Accepted" && $quote_status !== "Declined" && lookupUserPermission("module_sales") >= 2) { ?>
|
||||||
<div class="row">
|
<div class="btn-group">
|
||||||
<div class="col">
|
<button type="button" class="btn btn-sm btn-link drag-handle">
|
||||||
<button type="button" class="btn btn-sm btn-light drag-handle">
|
|
||||||
<i class="fas fa-bars text-muted"></i>
|
<i class="fas fa-bars text-muted"></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
|
||||||
<div class="col">
|
|
||||||
|
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
<button class="btn btn-sm btn-light" type="button" data-toggle="dropdown">
|
<button class="btn btn-sm btn-light" type="button" data-toggle="dropdown">
|
||||||
|
|
@ -371,7 +368,6 @@ if (isset($_GET['quote_id'])) {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</td>
|
</td>
|
||||||
<td><?php echo $item_name; ?></td>
|
<td><?php echo $item_name; ?></td>
|
||||||
|
|
|
||||||
|
|
@ -274,14 +274,10 @@ if (isset($_GET['recurring_invoice_id'])) {
|
||||||
|
|
||||||
<tr data-item-id="<?php echo $item_id; ?>">
|
<tr data-item-id="<?php echo $item_id; ?>">
|
||||||
<td class="d-print-none">
|
<td class="d-print-none">
|
||||||
<div class="row">
|
<div class="btn-group">
|
||||||
<div class="col">
|
<button type="button" class="btn btn-sm btn-link drag-handle">
|
||||||
<button type="button" class="btn btn-sm btn-light drag-handle">
|
|
||||||
<i class="fas fa-bars text-muted"></i>
|
<i class="fas fa-bars text-muted"></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
|
||||||
<div class="col">
|
|
||||||
|
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
<button class="btn btn-sm btn-light" type="button" data-toggle="dropdown">
|
<button class="btn btn-sm btn-light" type="button" data-toggle="dropdown">
|
||||||
<i class="fas fa-ellipsis-v"></i>
|
<i class="fas fa-ellipsis-v"></i>
|
||||||
|
|
@ -299,7 +295,6 @@ if (isset($_GET['recurring_invoice_id'])) {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
<td><?php echo $item_name; ?></td>
|
<td><?php echo $item_name; ?></td>
|
||||||
<td><?php echo nl2br($item_description); ?></td>
|
<td><?php echo nl2br($item_description); ?></td>
|
||||||
|
|
|
||||||
20
ticket.php
20
ticket.php
|
|
@ -953,25 +953,26 @@ if (isset($_GET['ticket_id'])) {
|
||||||
<tr data-task-id="<?php echo $task_id; ?>">
|
<tr data-task-id="<?php echo $task_id; ?>">
|
||||||
<td>
|
<td>
|
||||||
<?php if ($task_completed_at) { ?>
|
<?php if ($task_completed_at) { ?>
|
||||||
<i class="far fa-fw fa-check-square text-primary"></i>
|
<i class="far fa-check-square text-primary"></i>
|
||||||
<?php } elseif (lookupUserPermission("module_support") >= 2) { ?>
|
<?php } elseif (lookupUserPermission("module_support") >= 2) { ?>
|
||||||
<a href="post.php?complete_task=<?php echo $task_id; ?>">
|
<a href="post.php?complete_task=<?php echo $task_id; ?>">
|
||||||
<i class="far fa-fw fa-square text-secondary"></i>
|
<i class="far fa-square text-secondary"></i>
|
||||||
</a>
|
</a>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</td>
|
<span class="text-dark ml-2"><?php echo $task_name; ?></span>
|
||||||
<td>
|
|
||||||
<a href="#" class="drag-handle"><i class="fas fa-bars text-muted mr-1"></i></a>
|
|
||||||
<span class="text-secondary"><?php echo $task_completion_estimate; ?>m</span>
|
|
||||||
<span class="text-dark"> - <?php echo $task_name; ?></span>
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<div class="float-right">
|
<div class="float-right">
|
||||||
|
|
||||||
|
<div class="btn-group">
|
||||||
|
|
||||||
|
<button class="btn btn-sm btn-link drag-handle"><i class="fas fa-bars text-muted mr-1"></i></button>
|
||||||
|
|
||||||
<?php if (empty($ticket_resolved_at) && lookupUserPermission("module_support") >= 2) { ?>
|
<?php if (empty($ticket_resolved_at) && lookupUserPermission("module_support") >= 2) { ?>
|
||||||
|
|
||||||
<div class="dropdown dropleft text-center">
|
<div class="dropdown dropleft text-center">
|
||||||
<button class="btn btn-link text-secondary btn-sm" type="button" data-toggle="dropdown">
|
<button class="btn btn-light text-secondary btn-sm" type="button" data-toggle="dropdown">
|
||||||
<i class="fas fa-fw fa-ellipsis-v"></i>
|
<i class="fas fa-ellipsis-v"></i>
|
||||||
</button>
|
</button>
|
||||||
<div class="dropdown-menu">
|
<div class="dropdown-menu">
|
||||||
<a class="dropdown-item" href="#"
|
<a class="dropdown-item" href="#"
|
||||||
|
|
@ -995,6 +996,7 @@ if (isset($_GET['ticket_id'])) {
|
||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue