File: GeneralSpecificationsWidget.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 (151 lines) | stat: -rw-r--r-- 5,372 bytes parent folder | download
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
# --
# Copyright (C) 2001-2021 OTRS AG, https://otrs.com/
# --
# 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.
# --

<fieldset class="TableLike">

    <label class="Mandatory" for="Title">
        <span class="Marker">*</span>
        [% Translate("Title") | html %]:
    </label>
    <div class="Value">
        <input type="text" name="Title" id="Title" class="W90pc Validate_Required [% Data.TitleServerError | html %]" value="[% Data.Title | html %]"/>
        <div id="TitleError" class="TooltipErrorMessage">
            <p>[% Translate("This field is required.") | html %]</p>
        </div>
    </div>
    <div class="Clear"></div>

    <label class="Mandatory" for="Description">
        <span class="Marker">*</span>
        [% Translate("Description") | html %]:
    </label>
    <div class="Value">
        <textarea name="Description" id="Description" rows="4" cols="60" class="W90pc Validate_Required [% Data.DescriptionServerError | html %]">[% Data.Description | html %]</textarea>
        <div id="DescriptionError" class="TooltipErrorMessage">
            <p>[% Translate("This field is required.") | html %]</p>
        </div>
    </div>
    <div class="Clear"></div>

[% IF !Data.StatID %]
    <input type="hidden" name="StatisticPreselection" value="[% Data.StatisticPreselection | html %]" />
    <label class="Mandatory" for="ObjectModule">
        <span class="Marker">*</span>
        [% Translate("Object type") | html %]:
    </label>
    <div class="Value">
        <input type="hidden" name="StatType" value="[% Data.StatType | html %]" />
        [% Data.SelectObjectType %]
    </div>
    <div class="Clear"></div>
[% END %]

    <label class="Mandatory" for="Permission">
        <span class="Marker">*</span>
        [% Translate("Permissions") | html %]:
    </label>
    <div class="Value">
        [% Data.SelectPermission %]
        <p class="FieldExplanation">
            [% Translate("You can select one or more groups to define access for different agents.") | html %]
        </p>
        <div id="ValueError" class="TooltipErrorMessage">
            <p>[% Translate("This field is required.") | html %]</p>
        </div>
    </div>
    <div class="Clear"></div>

    <label class="Mandatory" for="Format">
        <span class="Marker">*</span>
        [% Translate("Result formats") | html %]:
    </label>
    <div class="Value">
        [% Data.SelectFormat %]
        <div id="FormatError" class="TooltipErrorMessage">
            <p>[% Translate("This field is required.") | html %]</p>
        </div>
    </div>
    <div class="Clear"></div>

[% IF Data.SelectTimeZone %]
    <label class="Mandatory" for="TimeZone">
        <span class="Marker">*</span>
        [% Translate("Time Zone") | html %]:
    </label>
    <div class="Value">
        [% Data.SelectTimeZone %]
        <p class="FieldExplanation">
            [% Translate('The selected time periods in the statistic are time zone neutral.') | html %]
        </p>
        <div id="TimeZoneError" class="TooltipErrorMessage">
            <p>[% Translate("This field is required.") | html %]</p>
        </div>
    </div>
    <div class="Clear"></div>
[% END %]

    <label for="SumRow">
        [% Translate("Create summation row") | html %]:
    </label>
    <div class="Value">
        [% Data.SelectSumRow %]
        <p class="FieldExplanation">
            [% Translate('Generate an additional row containing sums for all data rows.') | html %]
        </p>
    </div>
    <div class="Clear"></div>

    <label for="SumCol">
        [% Translate("Create summation column") | html %]:
    </label>
    <div class="Value">
        [% Data.SelectSumCol %]
        <p class="FieldExplanation">
            [% Translate('Generate an additional column containing sums for all data columns.') | html %]
        </p>
    </div>
    <div class="Clear"></div>

[% IF Data.StatID %]
    <label for="Cache">
        [% Translate("Cache results") | html %]:
    </label>
    <div class="Value">
        [% Data.SelectCache %]
        <p class="FieldExplanation">
            [% Translate("Stores statistics result data in a cache to be used in subsequent views with the same configuration (requires at least one selected time field).") | html %]
        </p>
    </div>
    <div class="Clear"></div>
[% END %]

[% IF Data.StatID %]
    <label for="ShowAsDashboardWidget">
        [% Translate("Show as dashboard widget") | html %]:
    </label>
    <div class="Value">
        [% Data.SelectShowAsDashboardWidget %]
        <p class="FieldExplanation">
            [% Translate("Provide the statistic as a widget that agents can activate in their dashboard.") | html %]
            [% Translate("Please note that enabling the dashboard widget will activate caching for this statistic in the dashboard.") | html %]
        </p>
    </div>
    <div class="Clear"></div>
[% END %]

    <label for="Valid">
        [% Translate("Validity") | html %]:
    </label>
    <div class="Value">
        [% Data.SelectValid %]
        <p class="FieldExplanation">
            [% Translate("If set to invalid end users can not generate the stat.") | html %]
        </p>
    </div>
    <div class="Clear"></div>
</fieldset>