File: AdminSysConfig.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 (173 lines) | stat: -rw-r--r-- 7,985 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
# --
# 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.
# --

<div class="MainBox ARIARoleMain LayoutFixedSidebar SidebarFirst">
    <h1>[% Translate("SysConfig") | 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("SearchBox") %]
                    <li>
                        <form action="[% Env("CGIHandle") %]" method="post" class="SearchBox">
                            <input type="hidden" name="Action" value="[% Env("Action") %]"/>
                            <input type="hidden" name="Subaction" value="Search"/>
                            <input type="hidden" name="DontWriteDefault" value="1"/>
                            <input type="text" name="Search" id="SysConfigSearch" value="[% Data.Search | html %]" title="[% Translate("Search") | html %]" />
                            <button title="[% Translate("Navigate by searching in %s settings", Data.ConfigCounter) | html %]" type="submit" title="[% Translate("Search") | html %]" value="[% Translate("Search") | html %]">
                                <span><i class="fa fa-search"></i></span>
                            </button>
                            <p class="FieldExplanation">
                                <label for="SysConfigSearch">
                                    [% Translate("Navigate by searching in %s settings", Data.ConfigCounter) | html %]
                                </label>
                            </p>
                        </form>
                    </li>
[% RenderBlockEnd("SearchBox") %]

[% RenderBlockStart("ConfigGroups") %]
                    <li>
                        <form action="[% Env("CGIHandle") %]" method="post" id="SysConfigGroupForm">
                            <input type="hidden" name="Action" value="[% Env("Action") %]"/>
                            <input type="hidden" name="Subaction" value="SelectGroup"/>
                            <input type="hidden" name="DontWriteDefault" value="1"/>
                            <div>
                                [% Data.List %]
                            </div>
[% WRAPPER JSOnDocumentComplete %]
<script type="text/javascript">//<![CDATA[
$('#SysConfigGroup').bind('change', function(){
    $('#SysConfigGroupForm').submit();
});
//]]></script>
[% END %]
                            <p class="FieldExplanation">
                                <label for="SysConfigGroup">
                                    [% Translate("Navigate by selecting config groups") | html %]
                                </label>
                            </p>
                        </form>
                    </li>
[% RenderBlockEnd("ConfigGroups") %]

[% RenderBlockStart("Download") %]
                    <li>
                        <a title="[% Translate("Download all system config changes") | html %]" href="[% Env("Baselink") %]Action=[% Env("Action") %];Subaction=Download;DontWriteDefault=1" class="CallForAction Fullsize Center">
                            <span><i class="fa fa-download"></i> [% Translate("Export settings") | html %]</span>
                        </a>
                    </li>
[% RenderBlockEnd("Download") %]

[% RenderBlockStart("ActionImport") %]
    [% IF Config('ConfigImportAllowed') %]
                    <li>
                        <a title="[% Translate("Load SysConfig settings from file") | html %]" href="[% Env("Baselink") %]Action=[% Env("Action") %];Subaction=Import" class="CallForAction Fullsize Center">
                            <span><i class="fa fa-upload"></i> [% Translate("Import settings") | html %]</span>
                        </a>
                    </li>
    [% END %]
[% RenderBlockEnd("ActionImport") %]

                </ul>
            </div>
        </div>
[% RenderBlockEnd("ActionList") %]

    </div>

    <div class="ContentColumn">

[% RenderBlockStart("Import") %]
        <div class="WidgetSimple">
            <div class="Header">
                <h2>[% Translate("Import Settings") | html %]</h2>
            </div>
            <div class="Content">
                <form action="[% Env("CGIHandle") %]" method="post" enctype="multipart/form-data">
                    <input type="hidden" name="Action" value="[% Env("Action") %]"/>
                    <input type="hidden" name="Subaction" value="Upload"/>
                    <fieldset class="TableLike">
                        <div class="Field">
                            <input name="file_upload" type="file" />
                        </div>
                        <div class="Field">
                            <button title="[% Translate("Load SysConfig settings from file") | html %]" class="Primary" type="submit" value="[% Translate("Import") | html %]">
                                [% Translate("Import") | html %]
                            </button>
                            [% Translate("or") | html %]
                            <a href="[% Env("Baselink") %]Action=[% Env("Action") %]">[% Translate("Cancel") | html %]</a>

                        </div>
                    </fieldset>
                </form>
            </div>
        </div>
[% RenderBlockEnd("Import") %]

[% RenderBlockStart("ContentOverview") %]
        <div class="WidgetSimple">
            <div class="Header">
                <h2>[% Translate("Result") | html %]</h2>
            </div>
            <div class="Content">
[% RenderBlockStart("NoSearchTerms") %]
                <div class="Content">
                    <p>[% Translate("Please enter a search term to look for settings.") | html %]</p>
                </div>
[% RenderBlockEnd("NoSearchTerms") %]
[% RenderBlockStart("OverviewResult") %]
                <table class="DataTable">
                    <thead>
                        <tr>
                            <th>[% Translate("Subgroup") | html %]</th>
                            <th>[% Translate("Elements") | html %]</th>
                            <th>[% Translate("Group") | html %]</th>
                        </tr>
                    </thead>
                    <tbody>
[% RenderBlockStart("NoDataFoundMsg") %]
                        <tr>
                            <td colspan="3">
                                [% Translate("No data found.") | html %]
                            </td>
                        </tr>
[% RenderBlockEnd("NoDataFoundMsg") %]
[% RenderBlockStart("Row") %]
                        <tr>
                            <td>
                                <a class="AsBlock" href="[% Env("Baselink") %]Action=[% Env("Action") %];Subaction=Edit;SysConfigSubGroup=[% Data.SubGroup | uri %];SysConfigGroup=[% Data.Group | uri %]">
                                    [% Data.SubGroup | html %]
                                </a>
                            </td>
                            <td>[% Data.SubGroupCount | html %]</td>
                            <td>[% Data.Group | html %]</td>
                        </tr>
[% RenderBlockEnd("Row") %]
                    </tbody>
                </table>
[% RenderBlockEnd("OverviewResult") %]
            </div>
        </div>
[% RenderBlockEnd("ContentOverview") %]

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