File: AgentDashboardTicketQueueOverview.tt

package info (click to toggle)
otrs2 5.0.16-1%2Bdeb9u6
  • links: PTS
  • area: non-free
  • in suites: stretch
  • size: 141,108 kB
  • sloc: perl: 746,356; xml: 54,469; sql: 10,505; sh: 430; makefile: 64
file content (67 lines) | stat: -rw-r--r-- 4,203 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# --
# Copyright (C) 2001-2017 OTRS AG, http://otrs.com/
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

<table class="DataTable">
    <thead>
        <tr>
[% RenderBlockStart("ContentLargeTicketQueueOverviewHeaderStatus") %]
            <th>[% Translate(Data.Text) | html %]</th>
[% RenderBlockEnd("ContentLargeTicketQueueOverviewHeaderStatus") %]
            <th class="QueueOverviewTotals">[% Translate("Totals") | html %]</th>
        </tr>
    </thead>
    <tbody>
[% RenderBlockStart("ContentLargeTicketQueueOverviewQueueName") %]
        <tr class="Row">
            <td><a class="AsBlock" href="[% Env("Baselink") %]Action=AgentTicketQueue;QueueID=[% Data.QueueID | uri %]">[% Data.QueueName | html %]</a></td>
[% RenderBlockStart("ContentLargeTicketQueueOverviewQueueResults") %]
            <td><a class="AsBlock" href="[% Env("Baselink") %]Action=AgentTicketSearch;Subaction=Search;[% Env("ChallengeTokenParam") | html %];StateIDs=[% Data.StateID | uri %];QueueIDs=[% Data.QueueID | uri %];[% Data.Sort | html %]">[% Translate(Data.Number) | html %]</a></td>
[% RenderBlockEnd("ContentLargeTicketQueueOverviewQueueResults") %]
[% RenderBlockStart("ContentLargeTicketQueueOverviewQueueTotal") %]
            <td><a class="QueueOverviewTotals AsBlock" href="[% Env("Baselink") %]Action=AgentTicketSearch;Subaction=Search;[% Env("ChallengeTokenParam") | html %];QueueIDs=[% Data.QueueID | uri %];[% Data.StateIDs | html %];[% Data.Sort | html %]">[% Translate(Data.Number) | html %]</a></td>
[% RenderBlockEnd("ContentLargeTicketQueueOverviewQueueTotal") %]
        </tr>
[% RenderBlockEnd("ContentLargeTicketQueueOverviewQueueName") %]
[% RenderBlockStart("ContentLargeTicketQueueOverviewStatusTotalRow") %]
        <tr class="Row">
            <td class="QueueOverviewTotals">[% Translate("Totals") | html %]</td>
[% RenderBlockStart("ContentLargeTicketQueueOverviewStatusTotal") %]
            <td class="QueueOverviewTotals"><a class="AsBlock" href="[% Env("Baselink") %]Action=AgentTicketSearch;Subaction=Search;[% Env("ChallengeTokenParam") | html %];StateIDs=[% Data.StateID | uri %];[% Data.QueueIDs | html %];[% Data.Sort | html %]">[% Translate(Data.Number) | html %]</a></td>
[% RenderBlockEnd("ContentLargeTicketQueueOverviewStatusTotal") %]
            <td class="QueueOverviewTotals"></td>
        </tr>
[% RenderBlockEnd("ContentLargeTicketQueueOverviewStatusTotalRow") %]
[% RenderBlockStart("ContentLargeTicketQueueOverviewNone") %]
        <tr>
            <td colspan="[% Data.ColumnCount | html %]">
                [% Translate("none") | html %]
            </td>
        </tr>
[% RenderBlockEnd("ContentLargeTicketQueueOverviewNone") %]
    </tbody>
</table>

[% RenderBlockStart("ContentLargeTicketQueueOverviewRefresh") %]
[% WRAPPER JSOnDocumentComplete %]
<script type="text/javascript">//<![CDATA[
Core.Config.Set('RefreshSeconds_[% Data.NameHTML | html %]', parseInt("[% Data.RefreshTime | html %]", 10) || 0);
if (Core.Config.Get('RefreshSeconds_[% Data.NameHTML | html %]')) {
    Core.Config.Set('Timer_[% Data.NameHTML | html %]', window.setTimeout(function() {

        // get active filter
        var Filter = $('#Dashboard' + Core.App.EscapeSelector('[% Data.Name | html %]') + '-box').find('.Tab.Actions li.Selected a').attr('data-filter');
        $('#Dashboard' + Core.App.EscapeSelector('[% Data.Name | html %]') + '-box').addClass('Loading');
        Core.AJAX.ContentUpdate($('#Dashboard' + Core.App.EscapeSelector('[% Data.Name | html %]')), '[% Env("Baselink") %]Action=[% Env("Action") %];Subaction=Element;Name=[% Data.Name | html %];Filter=' + Filter + ';CustomerID=[% Data.CustomerID | html %]', function () {
            $('#Dashboard' + Core.App.EscapeSelector('[% Data.Name | html %]') + '-box').removeClass('Loading');
        });
        clearTimeout(Core.Config.Get('Timer_[% Data.NameHTML | html %]'));
    }, Core.Config.Get('RefreshSeconds_[% Data.NameHTML | html %]') * 1000));
}
//]]></script>
[% END %]
[% RenderBlockEnd("ContentLargeTicketQueueOverviewRefresh") %]