File: LinkObject.tt

package info (click to toggle)
otrs2 6.0.32-6
  • links: PTS
  • area: non-free
  • in suites: bullseye
  • size: 197,336 kB
  • sloc: perl: 1,003,018; javascript: 75,060; xml: 70,883; php: 51,819; sql: 22,361; sh: 379; makefile: 51
file content (211 lines) | stat: -rw-r--r-- 10,689 bytes parent folder | download | duplicates (6)
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
# --
# Copyright (C) 2001-2021 OTRS AG, https://otrs.com/
# Copyright (C) 2021 Znuny GmbH, https://znuny.org/
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (GPL). If you
# did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.
# --

[% RenderBlockStart("Plain") %]
[% Data.Content %]
[% RenderBlockEnd("Plain") %]

[% RenderBlockStart("Text") %]
<span title="[% Data.Content | html %]">[% Data.Content | truncate(Data.MaxLength) | html %]</span>
[% RenderBlockEnd("Text") %]

[% RenderBlockStart("TextTranslate") %]
<span title="[% Translate(Data.Content) | html %]">[% Data.Content | Translate | truncate(Data.MaxLength) | html %]</span>
[% RenderBlockEnd("TextTranslate") %]

[% RenderBlockStart("Link") %]
<a class="AsBlock LinkObjectLink" href="[% Data.Link %]" title="[% Data.Title | html %]" >[% Data.Content | truncate(Data.MaxLength) | html %]</a>
[% RenderBlockEnd("Link") %]

[% RenderBlockStart("DeleteLinkIcon") %]
<a href="#" data-delete-link-sourceobject="[% Data.SourceObject | html %]" data-delete-link-sourcekey="[% Data.SourceKey | html %]" data-delete-link-targetidentifier="[% Data.TargetIdentifier | html %]" class="InstantLinkDelete" title="[% Translate("Delete link") | html %]">
    <i class="fa fa-trash-o">
        <span class="InvisibleText">[% Translate("Delete Link") | html %]</span>
    </i>
</a>
[% RenderBlockEnd("DeleteLinkIcon") %]

[% RenderBlockStart("TimeLong") %]
<span title="[% Data.Content | Localize("TimeLong") | html %]">[% Data.Content | Localize("TimeLong") | html %]</span>
[% RenderBlockEnd("TimeLong") %]

[% RenderBlockStart("Date") %]
[% Data.Content | Localize("Date") | html %]
[% RenderBlockEnd("Date") %]

[% RenderBlockStart("Checkbox") %]
<input type="checkbox" id="[% Data.Name | html %]" name="[% Data.Name | html %]" value="[% Data.Content | html %]" alt="[% Data.Title | html %]"
    title="[% Data.Title | html %]"
[% IF Data.Checked %]
    checked="checked"
[% END %]
    />
[% RenderBlockEnd("Checkbox") %]

[% RenderBlockStart("InputText") %]
<input type="text" id="[% Data.Key | html %]" name="[% Data.Key | html %]" class="W50pc" value="[% Data.Value | html %]" />
[% RenderBlockEnd("InputText") %]

[% RenderBlockStart("TableSimpleNone") %]
[% Translate("none") | html %]
[% RenderBlockEnd("TableSimpleNone") %]

[% RenderBlockStart("TableSimple") %]
[% RenderBlockStart("TableSimpleType") %]
<h3 class="SpacingTopSmall">
    [% Translate(Data.LinkTypeName) | html %]
</h3>
<ul class="Tablelike SpacingTopSmall">
    <li class="Header">[% Translate("Object#") | html %]</li>
[% RenderBlockStart("TableSimpleTypeRow") %]
    <li class="[% Data.CssClass | html %]">[% Data.Content %]</li>
[% RenderBlockEnd("TableSimpleTypeRow") %]
</ul>
[% RenderBlockEnd("TableSimpleType") %]
[% RenderBlockEnd("TableSimple") %]

[% RenderBlockStart("TableComplex") %]
[% RenderBlockStart("TableComplexBlock") %]
[% IF !Data.AJAX.defined %]
<div class="WidgetSimple SpacingTop Expanded" id="Widget[% Data.Name | html %]">
[% END %]
    <div class="Header">
        <div class="WidgetAction Toggle"><a href="#" title="[% Translate("Show or hide the content") | html %]"><i class="fa fa-caret-right"></i><i class="fa fa-caret-down"></i></a></div>
        <div class="ActionMenu">
[% RenderBlockStart("ContentLargePreferences") %]
                <div class="WidgetAction Settings">
                    <a href="#" id="linkobject-[% Data.Name | html %]-toggle" title="[% Translate("Settings") | html %]">
                        <i class="fa fa-cog"></i>
                    </a>
                </div>
[% RenderBlockEnd("ContentLargePreferences") %]
            <div class="Clear"></div>
        </div>
        <h2>[% Translate(Data.BlockDescription) | html %]: [% Translate(Data.Blockname) | html %]</h2>
    </div>
[% RenderBlockStart("TableComplexBlockActionRow") %]
    <div class="LightRow Bottom">
        <ul class="Actions">
[% RenderBlockStart("TableComplexBlockActionRowBulk") %]
            <li class="Bulk">
                <span>
                    <input type="checkbox" class="SelectAll" title="[% Translate("Select all") | html %]" id="SelectAllLinks[% Translate(Data.TableNumber) | html %]" autocomplete="off" />
                    <label for="SelectAllLinks[% Translate(Data.TableNumber) | html %]">[% Translate("Select all") | html %]</label>
                </span>
            </li>
[% RenderBlockEnd("TableComplexBlockActionRowBulk") %]
        </ul>
        <div class="ClearLeft"></div>
    </div>
[% RenderBlockEnd("TableComplexBlockActionRow") %]
    <div class="Content AutoHeight ">
[% RenderBlockStart("ContentLargePreferencesForm") %]
        <div id="linkobject-[% Data.Name | html %]-setting" class="Hidden">
            <form action="[% Env("CGIHandle") %]" method="post" enctype="multipart/form-data" name="linkobject-[% Data.NameForm | html %]_setting_form"
                id="linkobject-[% Data.NameForm | html %]_setting_form" class="WidgetSettingsForm">

                <input type="hidden" name="Action" value="AgentLinkObject"/>
                <fieldset class="TableLike FixedLabelSmall DontPrint">

[% RenderBlockStart("ContentLargePreferencesItemAllocationList") %]
                    <input type="hidden" name="OriginalAction" value="[% Data.OriginalAction | html %]"/>
                    <input type="hidden" name="Subaction" value="UpdateComplextTablePreferences"/>
                    [% Data.SourceObjectData %]
                    <input type="hidden" name="SourceObject" value="[% Data.SourceObject | html %]"/>
                    <input type="hidden" name="DestinationObject" value="[% Data.DestinationObject | html %]"/>
                    <input type="hidden" name="AdditionalLinkListWithDataJSON" value="[% Data.AdditionalLinkListWithDataJSON | html %]"/>
                    <input type="hidden" name="[% Data.NamePref | html %]" class="ColumnsJSON" value="[% Data.Columns | html %]" />
                    <input type="hidden" class="ColumnsEnabledJSON" value="[% Data.ColumnsEnabled | html %]" />
                    <input type="hidden" class="ColumnsAvailableJSON" value="[% Data.ColumnsAvailable | html %]" />
                    <label class="DontPrint">[% Translate(Data.Desc) | html %]:</label>
                    <div class="Field DontPrint LayoutGrid AllocationListContainer">
                        <div class="Size1of2">
                            <ul class="Tablelike">
                                <li class="Header">[% Translate("Available Columns") | html %]</li>
                            </ul>
                            <div class="FilterInputContainer">
                                <input type="text" class="FilterAvailableFields" name="FilterAvailableFields" value=""
                                    title="[% Translate("Filter available fields") | html %]" placeholder="[% Translate("Filter available fields") | html %]..." />
                            </div>
                            <ul class="AllocationList Tablelike AvailableFields" id="AvailableField-linkobject-[% Data.Name | html %]"></ul>
                        </div>
                        <div class="Size1of2">
                            <ul class="Tablelike">
                                <li class="Header">[% Translate("Visible Columns (order by drag & drop)") | html %]</li>
                            </ul>
                            <ul class="AllocationList Tablelike AssignedFields OrderNumbers" id="AssignedFields-linkobject-[% Data.Name | html %]"></ul>
                        </div>
                    </div>
                    <div class="Clear"></div>

[% RenderBlockEnd("ContentLargePreferencesItemAllocationList") %]
[% RenderBlockStart("ContentLargePreferencesItemRawHTML") %]
                    [% Data.HTML %]
[% RenderBlockEnd("ContentLargePreferencesItemRawHTML") %]
                    <div class="Buttons">
                        <button id="linkobject-[% Data.Name | html %]_submit" class="CallForAction DontPrint" type="button" value="[% Translate("Submit") | html %]">
                            <span>[% Translate("Save Changes") | html %]</span>
                        </button>
                        &nbsp;[% Translate("or") | html %]&nbsp;
                        <button id="linkobject-[% Data.Name | html %]_cancel" class="CallForAction DontPrint" type="button" value="[% Translate("Cancel") | html %]">
                            <span>[% Translate("Cancel") | html %]</span>
                        </button>
                    </div>
                </fieldset>
            </form>
        </div>
[% RenderBlockEnd("ContentLargePreferencesForm") %]
        <div id="[% Data.Name | html %]">
            <table class="DataTable">
                <thead>
                    <tr>
[% RenderBlockStart("TableComplexBlockColumn") %]
                        <th> [% Translate(Data.Content) | html %] </th>
[% RenderBlockEnd("TableComplexBlockColumn") %]
                    </tr>
                </thead>
                <tbody>
[% RenderBlockStart("TableComplexBlockRow") %]
                    <tr>
[% RenderBlockStart("TableComplexBlockRowColumn") %]
                        <td class="[% Data.CssClass | html %]">
                            [% Data.Content %]
                        </td>
[% RenderBlockEnd("TableComplexBlockRowColumn") %]
                    </tr>
[% RenderBlockEnd("TableComplexBlockRow") %]
                </tbody>
            </table>
        </div>

[% RenderBlockStart("TableComplexBlockFooterNormal") %]
[% RenderBlockEnd("TableComplexBlockFooterNormal") %]

[% RenderBlockStart("TableComplexBlockFooterAdd") %]
        <div class="SpacingTopSmall">
            [% Data.LinkTypeStrg %]
            <button class="CallForAction Inline" id="AddLinks" name="AddLinks" type="submit" title="[% Translate("Add links") | html %]"><span>[% Translate("Add links") | html %]</span></button>
        </div>
        <input type="hidden" name="SubmitLink" value="[% Translate("Link") | html %]" />
[% RenderBlockEnd("TableComplexBlockFooterAdd") %]

[% RenderBlockStart("TableComplexBlockFooterDelete") %]
        <div class="SpacingTopSmall">
            <button class="CallForAction" type="submit" title="[% Translate("Delete links") | html %]"><span>[% Translate("Delete links") | html %]</span></button>
        </div>
        <input type="hidden" name="SubmitDelete" value="[% Translate("Delete") | html %]" />
[% RenderBlockEnd("TableComplexBlockFooterDelete") %]

    </div>
[% IF !Data.AJAX.defined %]
</div>
[% END %]
[% RenderBlockEnd("TableComplexBlock") %]

[% RenderBlockEnd("TableComplex") %]