File: AdminSystemConfiguration.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 (90 lines) | stat: -rw-r--r-- 4,269 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
# --
# Copyright (C) 2001-2021 OTRS AG, https://otrs.com/
# Copyright (C) 2012-2021 Znuny GmbH, http://znuny.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.
# --

[%
    SET DocumentationLinkText  = Translate('online administrator documentation');
    SET DocumentationLink      = "<a href='https://doc.otrs.com/doc/manual/admin/" _ Data.ManualVersion _ ".0/en/html/configuration.html#sysconfig' target='_blank'>" _ DocumentationLinkText.html() _ "</a>";
%]

<div class="MainBox ARIARoleMain LayoutFixedSidebar SidebarFirst">

    <h1 class="InvisibleText">[% Translate("System configuration") | html %]</h1>

    [% BreadcrumbPath = [
            {
                Name => Translate('System Configuration'),
                Link => 'AdminSystemConfiguration',
            },
        ]
    %]

    [% FOREACH Item IN Data.Path %]
        [% BreadcrumbPath.push({ Name => Item.Name, Link => 'AdminSystemConfigurationGroup;RootNavigation=' _ Item.Value }) %]
    [% END %]

    [% FOREACH Item IN Data.Parameters %]
        [% BreadcrumbPath.push({ Name => Item.Name, Link => 'AdminSystemConfiguration;Subaction=' _ Item.Value }) %]
    [% END %]

    [% INCLUDE "Breadcrumb.tt" Path = BreadcrumbPath %]
    <div class="SidebarColumn">
        [% INCLUDE "SystemConfiguration/Sidebar/Actions.tt" %]
        [% IF Data.SettingCount %]
        [% INCLUDE "SystemConfiguration/Sidebar/Navigation.tt" %]
        [% END %]
        [% INCLUDE "SystemConfiguration/Sidebar/Help.tt" %]
        [% INCLUDE "SystemConfiguration/Sidebar/DynamicActions.tt" %]
    </div>

    <div class="ContentColumn">
        <div class="WidgetSimple">
            <div class="Content">
                [% IF Data.SettingCount %]
                <ul class="GettingStarted">
                    <li>
                        <i class="fa fa-code-fork"></i>
                        <p>
                            [% Translate("Navigate through the available settings by using the tree in the navigation box on the left side.") | html %]
                        </p>
                    </li>
                    <li>
                        <i class="fa fa-search"></i>
                        <p>
                            [% Translate("Find certain settings by using the search field below or from search icon from the top navigation.") | html %]
                        </p>
                    </li>
                    <li>
                        <i class="fa fa-lightbulb-o"></i>
                        <p>
                            [% Translate("Find out how to use the system configuration by reading the %s.") | html | ReplacePlaceholders(DocumentationLink) %]
                        </p>
                    </li>
                </ul>
                <form action="[% Env("CGIHandle") %]" method="post" class="SearchBox" id="SearchBoxAutoComplete">
                    <input type="hidden" name="Action" value="AdminSystemConfiguration"/>
                    <input type="hidden" name="Subaction" value="Search"/>
                    <input type="hidden" name="Category" value="All"/>
                    <span>
                        <input type="text" autofocus autocomplete="off" placeholder="[% Translate("Search in all settings...") | html %]" name="Search" id="SysConfigSearch" value="[% Data.Search | html %]" title="[% Translate("Search") | html %]" />
                        <button type="submit" title="[% Translate("Search") | html %]" value="[% Translate("Search") | html %]">
                            <span><i class="fa fa-search"></i></span>
                        </button>
                    </span>
                </form>
                [% ELSE %]
                    <p class="Center NoItemsInfo">
                        <i class="fa fa-exclamation-triangle"></i>
                        [% Translate("There are currently no settings available. Please make sure to run 'otrs.Console.pl Maint::Config::Rebuild' before using the software.") | html %]
                    </p>
                [% END %]
            </div>
        </div>
    </div>
    <div class="Clear"></div>
</div>