This commit is contained in:
2024-10-14 00:08:40 +02:00
parent dbfba56f66
commit 1462d52e13
4572 changed files with 2658864 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
# --
# Copyright (C) 2001-2019 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.
# --
[% BLOCK Recurse %]
<ul style="display: none;">
[% FOREACH Item IN RecursionData.keys.sort %]
[% Matches = Item.match('[:]*(\w+)$'); %]
<li id="[% Item | html %]" [% IF RecursionData.$Item.Count == 0 %]data-jstree='{"disabled":true}'[% END %]>
[% Matches.0 | html %][% IF RecursionData.$Item.Count != 0 %] ([% RecursionData.$Item.Count | html %])[% END %]
[% IF RecursionData.$Item.size %]
[% INCLUDE Recurse RecursionData = RecursionData.$Item.Subitems %]
[% END %]
</li>
[% END %]
</ul>
[% END %]
[% PROCESS Recurse RecursionData = Data.Tree %]

View File

@@ -0,0 +1,149 @@
# --
# Copyright (C) 2001-2019 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.
# --
[% IF Data.SettingList.size %]
<ul class="SettingsList">
[% FOREACH Setting IN Data.SettingList %]
<li>
<div class="WidgetSimple Expanded Setting
[% IF Setting.IsReadonly OR Setting.OverriddenFileName OR Setting.HasConfigLevel < Data.ConfigLevel %]IsReadonly[% END %]
[% IF !Setting.IsValid %]IsDisabled[% END %]
[% IF Setting.IsModified %]IsModified[% END %]
[% IF Setting.IsDirty %]IsDirty[% END %]
[% IF Setting.Locked == 1 %]IsLockedByAnotherUser[% END %]
[% IF Setting.ExclusiveLockUserID == Env('UserID') %]IsLockedByMe[% END %]"
id="Setting[% Setting.DefaultID %]"
data-name="[% Setting.Name | html %]">
<div class="Header">
<h2>
<div class="Icon">
<i class="fa fa-ban [% IF Setting.IsValid || Setting.OverriddenFileName || Setting.HasConfigLevel < Data.ConfigLevel %]Hidden[% END %]" title="[% Translate("This setting is disabled.") | html %]"></i>
</div>
[% IF Env("Subaction") == 'Invalid' %]
<div class="Icon">
<i class="fa fa-check-circle-o [% IF Setting.Invalid %]Hidden[% END %]" title="[% Translate("This setting is fixed but not deployed yet!") | html %]"></i>
</div>
[% END %]
[% IF Setting.OverriddenFileName %]
<div class="Icon">
<i class="fa fa-exclamation-triangle" title="[% Translate("This setting is currently being overridden in %s and can't thus be changed here!", Setting.OverriddenFileName) | html %]"></i>
</div>
[% ELSIF Setting.HasConfigLevel < Data.ConfigLevel %]
<div class="Icon">
<i class="fa fa-exclamation-triangle" title="[% Translate("Changing this setting is only available in a higher config level!") | html %]"></i>
</div>
[% END %]
[% Setting.Name | html %]
</h2>
<p class="HeaderMessage">
<span class="Right">[% Setting.XMLFilename %]</span>&nbsp;&nbsp;
[% IF Env("Action") != 'AdminSystemConfigurationGroup' %]
<a href="[% Env("Baselink") %]Action=AdminSystemConfigurationGroup;RootNavigation=[% Setting.Navigation | uri %]" target="_blank">[% Setting.Navigation | html %] &nbsp;<i class="fa fa-external-link"></i></a>
[% END %]
[% IF Setting.Locked == 1 %]
<span>[% Translate("%s (%s) is currently working on this setting.", Setting.User.UserFullname, Setting.User.UserEmail) | html %]</span>
[% END %]
</p>
<div class="ActionMenu Visible">
<div class="WidgetAction Expand">
<a href="#" title="[% Translate("Toggle advanced options for this setting") | html %]"><i class="fa fa-bars"></i></a>
</div>
</div>
</div>
<div class="WidgetMenu">
[% IF !Setting.IsRequired %]
<a href="#" class="Button SettingEnabled [% IF Setting.IsValid == 0 %]Hidden[% END %]" title="[% Translate("Disable this setting, so it is no longer effective") | html %]"><i class="fa fa-times"></i> [% Translate("Disable") | html %]</a>
<a href="#" class="Button SettingDisabled [% IF Setting.IsValid == 1 %]Hidden[% END %]" title="[% Translate("Enable this setting, so it becomes effective") | html %]"><i class="fa fa-check"></i> [% Translate("Enable") | html %]</a>
[% END %]
<a href="[% Env("Baselink") %]Action=AdminSystemConfigurationSettingHistory;Subaction=ShowSettingHistory;SettingName=[% Setting.Name | uri %]" class="OTRSBusinessRequired SettingHistory Button"><i class="fa fa-clock-o"></i> [% Translate("History") | html %][% IF !Data.OTRSBusinessIsInstalled %] (OTRS Business Solution™)[% END %]</a>
<a href="#" class="ResetSetting Button" data-user-modification="[% Setting.UserModificationPossible %]" title="[% Translate("Reset this setting to its default state") | html %]">
<i class="fa fa-undo"></i>
[% Translate("Reset setting") | html %]
</a>
[% IF Setting.UserModificationPossible && Data.OTRSBusinessIsInstalled %]
<a href="[% Env("Baselink") %]Action=[% Env("Action") %];Subaction=UserModified;SettingName=[% Setting.Name | uri %]"
class="UserModificationNotActive Button [% IF Setting.UserModificationActive %]Hidden[% END %]" title="[% Translate("Allow users to adapt this setting from within their personal preferences") | html %]">
<i class="fa fa-users"></i>
[% Translate("Allow users to update") | html %]
</a>
<a href="[% Env("Baselink") %]Action=[% Env("Action") %];Subaction=UserModified;SettingName=[% Setting.Name | uri %]"
class="UserModificationActive Button [% IF !Setting.UserModificationActive %]Hidden[% END %]" title="[% Translate("Do not longer allow users to adapt this setting from within their personal preferences") | html %]">
<i class="fa fa-users"></i>
[% Translate("Forbid users to update") | html %]
</a>
[% END %]
[% IF Setting.UserModificationActive %]
<a href="[% Env("Baselink") %]Action=AdminSystemConfigurationUser;Subaction=ShowUsersSettingValue;SettingName=[% Setting.Name | uri %]" class="UserSettings Button" title="[% Translate("Show user specific changes for this setting") | html %]">
<i class="fa fa-user"></i>
[% Translate("Show user settings") | html %]
</a>
[% END %]
<span href="#" class="Button CopyToClipboard" data-clipboard-text="[% Config("HttpType") | html %]://[% Config("FQDN") | html %][% Env("Baselink") | html %]Action=AdminSystemConfiguration;Subaction=View;Setting=[% Setting.Name | uri %]" title="[% Translate("Copy a direct link to this setting to your clipboard") | html %]"><i class="fa fa-link"></i> [% Translate("Copy direct link") | html %]</span>
[% IF Setting.IsFavourite %]
<a href="#" class="Button RemoveFromFavourites" data-setting-name="[% Setting.Name | html %]" title="[% Translate("Remove this setting from your favorites setting") | html %]"><i class="fa fa-star"></i> <span>[% Translate("Remove from favourites") | html %]</span></a>
[% ELSE %]
<a href="#" class="Button AddToFavourites" data-setting-name="[% Setting.Name | html %]" title="[% Translate("Add this setting to your favorites") | html %]"><i class="fa fa-star-o"></i> <span>[% Translate("Add to favourites") | html %]</span></a>
[% END %]
<a href="#" class="Button Right CancelAlias" title="[% Translate("Cancel editing this setting") | html %]"><i class="fa fa-times"></i> [% Translate("Cancel") | html %]</a>
<a href="#" class="Button Right SaveAlias" title="[% Translate("Save changes on this setting") | html %]"><i class="fa fa-check"></i> [% Translate("Save") | html %]</a>
<a href="#" class="Button Right EditAlias" title="[% Translate("Edit this setting") | html %]"><i class="fa fa-pencil-square-o"></i> [% Translate("Edit this setting") | html %]</a>
</div>
<div class="Content">
[% IF Setting.Locked == 1 %]
<div class="LockedByAnotherUser"></div>
[% END %]
[% IF !Setting.OverriddenFileName %]
<a href="#" title="[% Translate("Edit this setting") | html %]" class="SettingEdit" data-name="[% Setting.Name | html %]" data-id="[% Setting.DefaultID | html %]">
<button class="CallForAction" aria-controls="fieldset[% Setting.DefaultID | html %]"><span><i class="fa fa-pencil-square-o"></i> [% Translate("Edit this setting") | html %]</span></button>
</a>
[% END %]
<a href="#" title="[% Translate("Enable this setting") | html %]" class="SettingEnable">
<button class="CallForAction" aria-controls="fieldset[% Setting.DefaultID | html %]"><span><i class="fa fa-check"></i> [% Translate("Enable this setting") | html %]</span></button>
</a>
<div class="SettingWrapper">
<form autocomplete="off">
<div class="SettingContainer">
<input type="hidden" name="SettingName" value="[% Setting.Name | html %]" />
<fieldset class="TableLike FixedLabel" role="region" aria-live="polite" id="fieldset[% Setting.DefaultID | html %]">
[% Setting.HTMLStrg %]
</fieldset>
</div>
</form>
<div class="SettingDescription">
[% Translate(Setting.Description) | html %]
</div>
</div>
</div>
</div>
</li>
[% END %]
</ul>
[% ELSE %]
<div class="WidgetSimple">
<div class="Content">
<p class="Center">[% Translate("This group doesn't contain any settings. Please try navigating to one of its sub groups or another group.") | html %]</p>
</div>
</div>
[% END %]

View File

@@ -0,0 +1,69 @@
# --
# Copyright (C) 2001-2019 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.
# --
<ul class="SettingsList Compare [% IF Env("Subaction") == 'Deployment' %]Deployment[% END %]">
[% FOREACH Setting IN Data.SettingList %]
<li>
<div class="SettingContainer Selected">
<div class="SettingOld">
<div class="WidgetSimple Expanded Setting">
<div class="Header">
<h2>
[% Setting.PreviousName | html %]
<span class="Label">[% Translate("Now") | html %]</span>
</h2>
</div>
<div class="Content">
<div class="WidgetMessage Top">
<p class="UserModification">[% Translate("User modification") | html %]: <strong>[% IF Setting.PreviousUserModificationActive %][% Translate("enabled") | html %][% ELSE %][% Translate("disabled") | html %][% END %]</strong></p>
<p class="SettingState">[% Translate("Setting state") | html %]: <strong>[% IF Setting.PreviousIsValid %][% Translate("enabled") | html %][% ELSE %][% Translate("disabled") | html %][% END %]</strong></p>
</div>
<div class="SettingWrapper">
<div class="SettingContainer">
<fieldset class="TableLike FixedLabel" id="fieldset[% Setting.DefaultID | html %]">
[% Setting.PreviousHTMLStrg %]
</fieldset>
</div>
</div>
</div>
</div>
</div>
<div class="SettingNew">
<div class="WidgetSimple Expanded Setting">
<div class="Header">
<h2>
<input type="checkbox" checked="checked" value="[% Setting.CurrentName | html %]" />
<a href="[% Env("Baselink") | html %]Action=AdminSystemConfiguration;Subaction=View;Setting=[% Setting.CurrentName | uri %];DeploymentID=[% Data.DeploymentID | uri %]" target="_parent">[% Setting.CurrentName | html %]</a>
<span class="Label">[% Translate("New") | html %]</span>
</h2>
<p class="HeaderMessage">[% Setting.Navigation | html %]</p>
<div class="ActionMenu Visible">
<div class="WidgetAction Compare">
<a href=""><i class="fa fa-exchange"></i></a>
</div>
</div>
</div>
<div class="Content">
<div class="WidgetMessage Top">
<p class="UserModification">[% Translate("User modification") | html %]: <strong>[% IF Setting.CurrentUserModificationActive %][% Translate("enabled") | html %][% ELSE %][% Translate("disabled") | html %][% END %]</strong></p>
<p class="SettingState">[% Translate("Setting state") | html %]: <strong>[% IF Setting.CurrentIsValid %][% Translate("enabled") | html %][% ELSE %][% Translate("disabled") | html %][% END %]</strong></p>
</div>
<div class="SettingWrapper">
<div class="SettingContainer">
<fieldset class="TableLike FixedLabel" id="fieldset[% Setting.DefaultID | html %]">
[% Setting.HTMLStrg %]
</fieldset>
</div>
</div>
</div>
</div>
</div>
</div>
</li>
[% END %]
</ul>

View File

@@ -0,0 +1,52 @@
# --
# Copyright (C) 2001-2019 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.
# --
<div class="WidgetSimple [% IF Env("UserWidgetState_SystemConfiguration_Actions") == 0 %]Collapsed[% END %]" id="UserWidgetState_SystemConfiguration_Actions">
<div class="Header">
<div class="WidgetAction Toggle">
<a href="#" title="[% Translate("Toggle this widget") | html %]"><i class="fa fa-caret-right"></i><i class="fa fa-caret-down"></i></a>
</div>
<h2>[% Translate("Actions") | html %]</h2>
</div>
<div class="Content">
<ul class="ActionList">
[% IF Env("Action") == 'AdminSystemConfiguration' && Env("Subaction") == 'SearchLocked' %]
<li>
<a href="[% Env("Baselink") %]Action=AdminSystemConfiguration" class="GoBackButton CallForAction Fullsize Center"><span><i class="fa fa-caret-left"></i>[% Translate("Go back") | html %]</span></a>
</li>
[% END %]
[% IF Env("Action") == 'AdminSystemConfiguration' && Env("Subaction") == 'Search' %]
<li>
<a href="[% Env("Baselink") %]Action=AdminSystemConfiguration;Subaction=SearchDialog" data-term="[% Data.Search | html %]" data-category="[% Data.Category | html %]" id="SystemConfigurationEditSearch" class="CallForAction Fullsize Center"><span><i class="fa fa-search"></i>[% Translate("Edit search") | html %]</span></a>
</li>
[% END %]
[% IF Env("LastEntityType") %]
<li>
<a href="[% Env("Baselink") %][% Env("LastScreenEntity") %]" class="CallForAction Fullsize Center"><span><i class="fa fa-caret-left"></i>[% Translate("Go back to admin: ") | html %][% Translate( Env("LastEntityType") ) | html %]</span></a>
</li>
[% END %]
<li>
<a href="[% Env("Baselink") %]Action=AdminSystemConfigurationDeployment;Subaction=Deployment" class="CallForAction Fullsize Center"><span><i class="fa fa-rocket"></i>[% Translate("Deployment") | html %]</span></a>
</li>
<li>
<a href="[% Env("Baselink") %]Action=AdminSystemConfiguration;Subaction=SearchLocked" class="CallForAction Fullsize Center"><span><i class="fa fa-edit"></i>[% Translate("Settings I'm currently editing") | html %]</span></a>
</li>
<li>
<a href="[% Env("Baselink") %]Action=AdminSystemConfiguration;Subaction=Favourites" class="CallForAction Fullsize Center"><span><i class="fa fa-star"></i>[% Translate("My favourite settings") | html %]</span></a>
</li>
[% IF Data.InvalidSettings %]
<li>
<a href="[% Env("Baselink") %]Action=AdminSystemConfiguration;Subaction=Invalid" class="CallForAction Fullsize Center"><span><i class="fa fa-ban"></i>[% Translate("Invalid settings") | html %]</span></a>
</li>
[% END %]
<li>
<a href="[% Env("Baselink") %]Action=AdminSystemConfiguration;Subaction=ImportExport" class="CallForAction Fullsize Center"><span><i class="fa fa-exchange"></i>[% IF Config("ConfigImportAllowed") %][% Translate("Import & Export") | html %][% ELSE %][% Translate("Export") | html %][% END %]</span></a>
</li>
</ul>
</div>
</div>

View File

@@ -0,0 +1,33 @@
# --
# Copyright (C) 2001-2019 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.
# --
[% IF !Data.Readonly %]
<div class="Hidden WidgetSimple StickyElement [% IF Env("UserWidgetState_SystemConfiguration_Sticky") == 0 %]Collapsed[% END %]" id="UserWidgetState_SystemConfiguration_Sticky">
<div class="Header">
<div class="WidgetAction Toggle">
<a href="#" title="[% Translate("Toggle this widget") | html %]"><i class="fa fa-caret-right"></i><i class="fa fa-caret-down"></i></a>
</div>
<h2>[% Translate("Dynamic Actions") | html %]</h2>
</div>
<div class="Content">
<input type="text" autocomplete="off" id="FilterSettings" class="FilterBox" placeholder="[% Translate("Filter visible settings...") | html %]" name="FilterSettings" value="" title="[% Translate("Filter for settings") | html %]">
<ul class="ActionList">
<li>
<a href="#" id="EditAll" class="CallForAction Fullsize Center"><span><i class="fa fa-edit"></i>[% Translate("Enable edit mode for all settings") | html %]</span></a>
</li>
<li>
<a href="#" id="SaveAll" class="CallForAction Fullsize Center"><span><i class="fa fa-check"></i>[% Translate("Save all edited settings") | html %]</span></a>
</li>
<li>
<a href="#" id="CancelAll" class="CallForAction Fullsize Center"><span><i class="fa fa-times"></i>[% Translate("Cancel editing for all settings") | html %]</span></a>
</li>
</ul>
<p class="WidgetInformation"><i class="fa fa-info"></i> [% Translate("All actions from this widget apply to the visible settings on the right only.") | html %]</p>
</div>
</div>
[% END %]

View File

@@ -0,0 +1,30 @@
# --
# Copyright (C) 2001-2019 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.
# --
[% IF !Data.Readonly %]
<div class="Hidden WidgetSimple [% IF Env("UserWidgetState_SystemConfiguration_Help") == 0 %]Collapsed[% END %]" id="UserWidgetState_SystemConfiguration_Help">
<div class="Header">
<div class="WidgetAction Toggle">
<a href="#" title="[% Translate("Toggle this widget") | html %]"><i class="fa fa-caret-right"></i><i class="fa fa-caret-down"></i></a>
</div>
<h2>[% Translate("Help") | html %]</h2>
</div>
<div class="Content">
<ul class="Legend">
<li><span class="IsLockedByMe"></span> [% Translate("Currently edited by me.") | html %]</li>
<li><span class="IsDirty"></span> [% Translate("Modified but not yet deployed.") | html %]</li>
<li><span class="IsLockedByAnotherUser"></span> [% Translate("Currently edited by another user.") | html %]</li>
<li><span class="IsModified"></span> [% Translate("Different from its default value.") | html %]</li>
</ul>
<ul class="ShortCuts">
<li><em><span>Enter</span></em><em>[% Translate("Save current setting.") | html %]</em></li>
<li><em><span>Esc</span></em><em>[% Translate("Cancel editing current setting.") | html %]</em></li>
</ul>
</div>
</div>
[% END %]

View File

@@ -0,0 +1,23 @@
# --
# Copyright (C) 2001-2019 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.
# --
<div class="WidgetSimple SystemConfigurationTree [% IF Env("UserWidgetState_SystemConfiguration_Navigation") == 0 %]Collapsed[% END %]" id="UserWidgetState_SystemConfiguration_Navigation">
<div class="Header">
<div class="WidgetAction Toggle">
<a href="#" title="[% Translate("Toggle this widget") | html %]"><i class="fa fa-caret-right"></i><i class="fa fa-caret-down"></i></a>
</div>
<h2>[% Translate("Navigation") | html %]</h2>
</div>
<div class="Content">
<span class="SystemConfigurationCategories">[% Data.CategoriesStrg %]</span> <a href="#" class="CallForAction Inline"><span><i class="fa fa-question"></i></span></a>
<input type="hidden" id="SelectedNode" value="[% Data.RootNavigation | html %]"/>
<div id="ConfigTree">
<p class="Center"><i class="fa fa-spinner fa-spin"></i></p>
</div>
</div>
</div>

View File

@@ -0,0 +1,19 @@
# --
# Copyright (C) 2001-2019 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.
# --
[% IF !Data.OTRSBusinessIsInstalled %]
<div class="WidgetSimple">
<div class="Header"><h2>[% Translate("Did you know?") | html %]</h2></div>
<div class="Content">
[% SET OTRSBusinessLabel = '<strong><a href="#" class="OTRSBusinessRequired">OTRS Business Solution</a></strong>™'; %]
<p class="FieldExplanation">
[% Translate("With %s, System Configuration supports versioning, rollback and user-specific configuration settings.") | html | ReplacePlaceholders(OTRSBusinessLabel) %]
</p>
</div>
</div>
[% END %]