[ADD] HELPDESK: Column toggling in helpdesk view
This commit is contained in:
@@ -187,9 +187,11 @@ function tickTicketsCheckboxes() {
|
||||
$("#exportTickets").css("display", "inline-flex");
|
||||
$("#selectedShowTickets").css("display", "inline-flex");
|
||||
$("#selectedShowTickets").text(selectedCount + " -" + message);
|
||||
$('#unselectAllTickets').removeClass('d-none')
|
||||
} else {
|
||||
$("#selectedShowTickets").css("display", "none");
|
||||
$("#exportTickets").css("display", "none");
|
||||
$('#unselectAllTickets').addClass('d-none')
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -246,10 +248,12 @@ function addingTicketsIds() {
|
||||
if (selectedCount === 0) {
|
||||
$("#selectedShowTickets").css("display", "none");
|
||||
$("#exportTickets").css("display", "none");
|
||||
$('#unselectAllTickets').addClass('d-none')
|
||||
} else {
|
||||
$("#exportTickets").css("display", "inline-flex");
|
||||
$("#selectedShowTickets").css("display", "inline-flex");
|
||||
$("#selectedShowTickets").text(selectedCount + " - " + message);
|
||||
$('#unselectAllTickets').removeClass('d-none')
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -53,9 +53,12 @@
|
||||
<div class="oh-sticky-table__tbody">
|
||||
{% for ticket in my_ticket_list.list %}
|
||||
<div class="oh-sticky-table__tr" onclick="window.location.href = `{% url 'ticket-detail' ticket.id %}`">
|
||||
<div class="oh-sticky-table__sd {% if ticket.priority == 'high' %}row-status--red
|
||||
{% elif ticket.priority == 'medium' %}row-status--orange
|
||||
{% elif ticket.priority == 'low' %}row-status--blue{% endif %}"
|
||||
<div class="oh-sticky-table__sd
|
||||
{% if ticket.priority == 'high' %}row-status--red
|
||||
{% elif ticket.priority == 'medium' %}row-status--orange
|
||||
{% elif ticket.priority == 'low' %}row-status--blue{% endif %}"
|
||||
onclick="event.stopPropagation()"
|
||||
|
||||
>
|
||||
<div class="centered-div">
|
||||
<input
|
||||
@@ -343,9 +346,11 @@
|
||||
<div class="oh-sticky-table__tbody">
|
||||
{% for ticket in allocated_tickets_list.list %}
|
||||
<div class="oh-sticky-table__tr" onclick="window.location.href = `{% url 'ticket-detail' ticket.id %}`">
|
||||
<div class="oh-sticky-table__sd {% if ticket.priority == 'high' %}row-status--red
|
||||
{% elif ticket.priority == 'medium' %}row-status--orange
|
||||
{% elif ticket.priority == 'low' %}row-status--blue{% endif %}"
|
||||
<div class="oh-sticky-table__sd
|
||||
{% if ticket.priority == 'high' %}row-status--red
|
||||
{% elif ticket.priority == 'medium' %}row-status--orange
|
||||
{% elif ticket.priority == 'low' %}row-status--blue{% endif %}"
|
||||
onclick="event.stopPropagation()"
|
||||
>
|
||||
<div class="centered-div">
|
||||
<input
|
||||
@@ -632,9 +637,11 @@
|
||||
<div class="oh-sticky-table__tbody">
|
||||
{% for ticket in all_tickets_list.list %}
|
||||
<div class="oh-sticky-table__tr" onclick="window.location.href = `{% url 'ticket-detail' ticket.id %}`" >
|
||||
<div class="oh-sticky-table__sd {% if ticket.priority == 'high' %}row-status--red
|
||||
{% elif ticket.priority == 'medium' %}row-status--orange
|
||||
{% elif ticket.priority == 'low' %}row-status--blue{% endif %}"
|
||||
<div class="oh-sticky-table__sd
|
||||
{% if ticket.priority == 'high' %}row-status--red
|
||||
{% elif ticket.priority == 'medium' %}row-status--orange
|
||||
{% elif ticket.priority == 'low' %}row-status--blue{% endif %}"
|
||||
onclick="event.stopPropagation()"
|
||||
>
|
||||
<div class="centered-div">
|
||||
<input
|
||||
@@ -933,6 +940,9 @@ $(".allTicketsAll").change(function (e) {
|
||||
});
|
||||
tickTicketsCheckboxes();
|
||||
$(".my-tickets-row").change(function () {
|
||||
if ($('.myTicketsAll').is(":checked")) {
|
||||
$('.myTicketsAll').prop("checked", false);
|
||||
}
|
||||
addingTicketsIds();
|
||||
});
|
||||
$(".myTicketsAll").change(function () {
|
||||
@@ -940,13 +950,19 @@ $(".allTicketsAll").change(function (e) {
|
||||
});
|
||||
|
||||
$(".allocated-tickets-row").change(function () {
|
||||
addingTicketsIds();
|
||||
if ($('.allocatedTicketsAll').is(":checked")) {
|
||||
$('.allocatedTicketsAll').prop("checked", false);
|
||||
}
|
||||
addingTicketsIds();
|
||||
});
|
||||
$(".allocatedTicketsAll").change(function () {
|
||||
addingTicketsIds();
|
||||
});
|
||||
$(".all-tickets-row").change(function () {
|
||||
addingTicketsIds();
|
||||
if ($('.allTicketsAll').is(":checked")) {
|
||||
$('.allTicketsAll').prop("checked", false);
|
||||
}
|
||||
addingTicketsIds();
|
||||
});
|
||||
$(".allTicketsAll").change(function () {
|
||||
addingTicketsIds();
|
||||
|
||||
@@ -108,7 +108,7 @@
|
||||
{% trans "Select All Tickets" %}
|
||||
</div>
|
||||
<div
|
||||
class="oh-checkpoint-badge text-secondary mb-2"
|
||||
class="oh-checkpoint-badge text-secondary mb-2 d-none"
|
||||
id="unselectAllTickets"
|
||||
style="cursor: pointer"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user