File: AdminUserGroup.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 (261 lines) | stat: -rw-r--r-- 13,593 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
# --
# 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.
# --

[% RenderBlockStart("Overview") %]
<div class="MainBox ARIARoleMain LayoutFixedSidebar SidebarFirst">
    <h1>[% Translate("Manage Agent-Group Relations") | html %]</h1>

    <div class="SidebarColumn">

[% RenderBlockStart("ActionList") %]
        <div class="WidgetSimple">
            <div class="Header">
                <h2>[% Translate("Actions") | html %]</h2>
            </div>
            <div class="Content">
                <ul class="ActionList">
[% RenderBlockStart("ActionOverview") %]
                    <li>
                        <a href="[% Env("Baselink") %]Action=[% Env("Action") %]" class="CallForAction Fullsize Center"><span><i class="fa fa-caret-left"></i>[% Translate("Go to overview") | html %]</span></a>
                    </li>
[% RenderBlockEnd("ActionOverview") %]
[% RenderBlockStart("NewActions") %]
                    <li>
                        <a href="[% Env("Baselink") %]Action=AdminUser;Subaction=Add" class="CallForAction Fullsize Center"><span><i class="fa fa-plus-square"></i>[% Translate("Add agent") | html %]</span></a>
                    </li>
                    <li>
                        <a href="[% Env("Baselink") %]Action=AdminGroup;Subaction=Add" class="CallForAction Fullsize Center"><span><i class="fa fa-plus-square"></i>[% Translate("Add group") | html %]</span></a>
                    </li>
[% RenderBlockEnd("NewActions") %]
                </ul>
            </div>
        </div>
[% RenderBlockEnd("ActionList") %]

[% RenderBlockStart("UserFilter") %]
        <div class="WidgetSimple">
            <div class="Header">
                <h2><label for="FilterUsers">[% Translate("Filter for Agents") | html %]</label></h2>
            </div>
            <div class="Content">
                <input type="text" id="FilterUsers" class="FilterBox" placeholder="[% Translate("Just start typing to filter...") | html %]" name="FilterUser" value="" title="[% Translate("Filter for Agents") | html %]" />
            </div>
        </div>
[% RenderBlockEnd("UserFilter") %]
[% RenderBlockStart("GroupFilter") %]
        <div class="WidgetSimple">
            <div class="Header">
                <h2><label for="FilterGroups">[% Translate("Filter for Groups") | html %]</label></h2>
            </div>
            <div class="Content">
                <input type="text" id="FilterGroups" class="FilterBox" placeholder="[% Translate("Just start typing to filter...") | html %]" name="FilterGroups" value=""  title="[% Translate("Filter for Groups") | html %]"/>
            </div>
        </div>
[% RenderBlockEnd("GroupFilter") %]
    </div>

    <div class="ContentColumn">
        <div class="WidgetSimple">

[% RenderBlockStart("OverviewResult") %]
            <div class="Header">
                <h2>[% Translate("Overview") | html %]</h2>
            </div>
            <div class="Content LayoutGrid ColumnsWithSpacing">
                <div class="Size1of2">
                    <ul class="Tablelike" id="Users">
                        <li class="Header">[% Translate("Agents") | html %]</li>
                        <li class="FilterMessage Hidden">[% Translate("No matches found.") | html %]</li>
[% RenderBlockStart("List1n") %]
                        <li><a href="[% Env("Baselink") %]Action=[% Env("Action") %];Subaction=[% Data.Subaction | uri %];ID=[% Data.ID | uri %]" class="AsBlock">[% Data.Name | html %]</a></li>
[% RenderBlockEnd("List1n") %]
                    </ul>
                </div>
                <div class="Size1of2">
                    <ul class="Tablelike" id="Groups">
                        <li class="Header">[% Translate("Groups") | html %]</li>
                        <li class="FilterMessage Hidden">[% Translate("No matches found.") | html %]</li>
[% RenderBlockStart("NoDataFoundMsg") %]
                        <li>[% Translate("No data found.") | html %]</li>
[% RenderBlockEnd("NoDataFoundMsg") %]
[% RenderBlockStart("Listn1") %]
                        <li><a href="[% Env("Baselink") %]Action=[% Env("Action") %];Subaction=[% Data.Subaction | uri %];ID=[% Data.ID | uri %]" class="AsBlock">[% Data.Name | html %]</a></li>
[% RenderBlockEnd("Listn1") %]
                    </ul>
                </div>
                <div class="Clear"></div>
            </div>
[% RenderBlockEnd("OverviewResult") %]


[% WRAPPER JSOnDocumentComplete %]
<script type="text/javascript">//<![CDATA[
    Core.UI.Table.InitTableFilter($('#FilterUsers'), $('#Users'));
    Core.UI.Table.InitTableFilter($('#FilterGroups'), $('#Groups'));
//]]></script>
[% END %]
[% RenderBlockEnd("Overview") %]
[% RenderBlockStart("Change") %]
            <div class="MainBox ARIARoleMain LayoutFixedSidebar SidebarFirst">
                <h1>[% Translate("Manage Agent-Group Relations") | html %]</h1>
                <div class="SidebarColumn">
                    <div class="WidgetSimple">
                        <div class="Header">
                            <h2>[% Translate("Actions") | html %]</h2>
                        </div>
                        <div class="Content">
                            <ul class="ActionList">
                                <li>
                                    <a href="[% Env("Baselink") %]Action=[% Env("Action") %]" class="CallForAction Fullsize Center"><span><i class="fa fa-caret-left"></i>[% Translate("Go to overview") | html %]</span></a>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="WidgetSimple">
                        <div class="Header">
                            <h2>
                                <label for="Filter">[% Translate("Filter") | html %]</label>
                            </h2>
                        </div>
                        <div class="Content">
                            <input type="text" id="Filter" class="FilterBox" placeholder="[% Translate("Just start typing to filter...") | html %]" name="Filter" value="" title="[% Translate("Filter") | html %]" />
                        </div>
                    </div>
                </div>

                <div class="ContentColumn">
                    <div class="WidgetSimple">
                        <div class="Header">
                            <h2>
[% RenderBlockStart("ChangeHeaderGroup") %]
                    [% Translate("Change Group Relations for Agent") | html %]
[% RenderBlockEnd("ChangeHeaderGroup") %]
[% RenderBlockStart("ChangeHeaderAgent") %]
                    [% Translate("Change Agent Relations for Group") | html %]
[% RenderBlockEnd("ChangeHeaderAgent") %]
                                <a href="[% Env("Baselink") %]Action=[% Data.ActionHome | uri %];Subaction=Change;ID=[% Data.ID | uri %]">[% Data.Name | html %]</a>
                            </h2>
                        </div>
                        <div class="Content ">
                            <form action="[% Env("CGIHandle") %]" method="post" name="matrix">
                                <input type="hidden" name="Action" value="[% Env("Action") %]"/>
                                <input type="hidden" name="Subaction" value="Change[% Data.Type | html %]"/>
                                <input type="hidden" name="ID" value="[% Data.ID | html %]"/>
                                <table class="DataTable VariableWidth" id="UserGroups">
                                    <thead>
                                        <tr>
                                            <th>[% Translate(Data.VisibleNeType) | html %]</th>
[% RenderBlockStart("ChangeHeader") %]
                                            <th class="[% Data.Mark | html %]">
                                                <input type="checkbox" name="[% Data.Type | html %]" id="SelectAll[% Data.Type | html %]" title="[% Translate("Toggle %s permission for all", Data.Type) | html %]" value="" />
                                    [% Translate(Data.Type) | html %]
                                            </th>
[% WRAPPER JSOnDocumentComplete %]
<script type="text/javascript">//<![CDATA[
    Core.Form.InitSelectAllCheckboxes($('table td input[type="checkbox"][name=[% Data.Type | html %]]'), $('#SelectAll[% Data.Type | html %]'));
    $('input[type="checkbox"][name=[% Data.Type | html %]]').bind('click', function () {
        Core.Form.SelectAllCheckboxes($(this), $('#SelectAll[% Data.Type | html %]'));
    });
//]]></script>
[% END %]
[% RenderBlockEnd("ChangeHeader") %]
                                        </tr>
                                    </thead>
                                    <tbody>
[% RenderBlockStart("NoDataFoundMsgList") %]
                                        <tr>
                                            <td colspan="[% Data.ColSpan | html %]">
                                    [% Translate("No data found.") | html %]
                                            </td>
                                        </tr>
[% RenderBlockEnd("NoDataFoundMsgList") %]
[% RenderBlockStart("ChangeRow") %]
                                        <tr>
                                            <td><a href="[% Env("Baselink") %]Action=Admin[% Data.NeType | uri %];Subaction=Change;ID=[% Data.ID | uri %]">[% Data.Name | html %]</a></td>
[% RenderBlockStart("ChangeRowItem") %]
                                            <td class="[% Data.Mark | html %]">
                                                <input type="checkbox" name="[% Data.Type | html %]" title="[% Translate("Toggle %s permission for %s", Data.Type, Data.Name) | html %]" value="[% Data.ID | html %]" [% Data.Selected %]/>
                                            </td>
[% RenderBlockEnd("ChangeRowItem") %]
                                        </tr>
[% RenderBlockEnd("ChangeRow") %]
                                        <tr class="FilterMessage Hidden">
                                            <td colspan="8">[% Translate("No matches found.") | html %]</td>
                                        </tr>
                                    </tbody>
                                </table>
                                <div class="Field SpacingTop">
                                    <button class="Primary CallForAction" type="submit" value="[% Translate("Submit") | html %]"><span>[% Translate("Submit") | html %]</span></button>
                        [% Translate("or") | html %]
                                    <a href="[% Env("Baselink") %]Action=[% Env("Action") %]">[% Translate("Cancel") | html %]</a>
                                </div>
                                <div class="Clear"></div>
                            </form>
                        </div>
[% RenderBlockEnd("Change") %]

                    </div>

[% RenderBlockStart("ChangeReference") %]
                    <div class="WidgetSimple SpacingTop">
                        <div class="Header">
                            <h2>[% Translate("Reference") | html %]</h2>
                        </div>
                        <div class="Content">

                            <dl>
                                <dt>[% Translate("ro") | html %]</dt>
                                <dd>
                        [% Translate("Read only access to the ticket in this group/queue.") | html %]
                                </dd>

                                <dt>[% Translate("move_into") | html %]</dt>
                                <dd>
                        [% Translate("Permissions to move tickets into this group/queue.") | html %]
                                </dd>

                                <dt>[% Translate("create") | html %]</dt>
                                <dd>
                        [% Translate("Permissions to create tickets in this group/queue.") | html %]
                                </dd>

                                <dt>[% Translate("note") | html %]</dt>
                                <dd>
                        [% Translate("Permissions to add notes to tickets in this group/queue.") | html %]
                                </dd>

                                <dt>[% Translate("owner") | html %]</dt>
                                <dd>
                        [% Translate("Permissions to change the owner of tickets in this group/queue.") | html %]
                                </dd>

                                <dt>[% Translate("priority") | html %]</dt>
                                <dd>
                        [% Translate("Permissions to change the ticket priority in this group/queue.") | html %]
                                </dd>

                                <dt>[% Translate("rw") | html %]</dt>
                                <dd>
                        [% Translate("Full read and write access to the tickets in this group/queue.") | html %]
                                </dd>
                            </dl>

                        </div>
                    </div>

[% RenderBlockEnd("ChangeReference") %]

[% WRAPPER JSOnDocumentComplete %]
<script type="text/javascript">//<![CDATA[
    Core.UI.Table.InitTableFilter($('#Filter'), $('#UserGroups'));
//]]></script>
[% END %]

                </div>
                <div class="Clear"></div>
            </div>