1# -- 2# Copyright (C) 2001-2020 OTRS AG, https://otrs.com/ 3# -- 4# This software comes with ABSOLUTELY NO WARRANTY. For details, see 5# the enclosed file COPYING for license information (GPL). If you 6# did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt. 7# -- 8 9<div class="MainBox ARIARoleMain LayoutFixedSidebar SidebarFirst"> 10 11 <h1 class="InvisibleText">[% Translate("System configuration") | html %]</h1> 12 13 [% IF Config("ConfigImportAllowed") %] 14 [% ImportExportName = Translate('Import & Export') %] 15 [% ELSE %] 16 [% ImportExportName = Translate('Export') %] 17 [% END %] 18 19 [% BreadcrumbPath = [ 20 { 21 Name => Translate('System Configuration'), 22 Link => 'AdminSystemConfiguration', 23 }, 24 { 25 Name => ImportExportName, 26 Link => Env("Action") _ ';Subaction=' _ Env("Subaction") 27 }, 28 ] 29 %] 30 31 [% INCLUDE "Breadcrumb.tt" Path = BreadcrumbPath %] 32 33 <div class="SidebarColumn"> 34 <div class="WidgetSimple"> 35 <div class="Header"> 36 <h2>[% Translate("Actions") | html %]</h2> 37 </div> 38 <div class="Content"> 39 <ul class="ActionList"> 40 <li> 41 <a href="[% Env("Baselink") %]Action=AdminSystemConfiguration" class="CallForAction Fullsize Center"><span><i class="fa fa-caret-left"></i>[% Translate("Go back") | html %]</span></a> 42 </li> 43 </ul> 44 </div> 45 </div> 46 </div> 47 48 <div class="ContentColumn LayoutGrid ColumnsWithSpacing"> 49 [% IF Config("ConfigImportAllowed") %] 50 <div class="Size1of2"> 51 <div class="WidgetSimple"> 52 <div class="Header"> 53 <h2>[% Translate("Import") | html %]</h2> 54 </div> 55 <div class="Content"> 56 <form action="[% Env("CGIHandle") %]" method="post" enctype="multipart/form-data" class="Validate PreventMultipleSubmits ImportExport"> 57 <fieldset class="Separated"> 58 <input type="hidden" name="Action" value="[% Env("Action") %]"/> 59 <input type="hidden" name="Subaction" value="ConfigurationImport"/> 60 <input type="hidden" name="FormID" value="[% Data.FormID | html %]"/> 61 <p class="FieldExplanation"> 62 [% Translate("Upload a file to be imported to your system (.yml format as exported from the System Configuration module).") | html %] 63 </p> 64 <input name="FileUpload" id="FileUpload" type="file" size="18" class="Fixed W100pc Validate_Required [% Data.FileUploadInvalid | html %]"/> 65 <div id="FileUploadError" class="TooltipErrorMessage"><p>[% Translate("This field is required.") | html %]</p></div> 66 <div id="FileUploadServerError" class="TooltipErrorMessage"><p>[% Translate("This field is required.") | html %]</p></div> 67 <button id="ImportButton" class="CallForAction" type="submit" value="[% Translate("Upload system configuration") | html %]"> 68 <span><i class="fa fa-upload"></i> [% Translate("Import system configuration") | html %]</span> 69 </button> 70 </fieldset> 71 </form> 72 </div> 73 </div> 74 </div> 75 [% END %] 76 <div class="Size1of2"> 77 <div class="WidgetSimple"> 78 <div class="Header"> 79 <h2>[% Translate("Export") | html %]</h2> 80 </div> 81 <div class="Content"> 82 <form action="[% Env("CGIHandle") %]" method="post" enctype="multipart/form-data" class="Validate ImportExport"> 83 <fieldset class="Separated"> 84 <input type="hidden" name="Action" value="[% Env("Action") %]"/> 85 <input type="hidden" name="Subaction" value="ConfigurationExport"/> 86 <p class="FieldExplanation"> 87 [% Translate("Download current configuration settings of your system in a .yml file.") | html %] 88 </p> 89 90 [% IF Data.OTRSBusinessIsInstalled %] 91 <input type="checkbox" id="SkipUserSettings" name="SkipUserSettings" value="1" checked="checked" /> 92 <label for="SkipUserSettings">[% Translate("Include user settings") | html %]</label> 93 <div class="Clear"> </div> 94 [% END %] 95 96 <button id="ExportButton" class="CallForAction" type="submit" value="[% Translate("Upload system configuration") | html %]"> 97 <span><i class="fa fa-download"></i> [% Translate("Export current configuration") | html %]</span> 98 </button> 99 </fieldset> 100 </form> 101 </div> 102 </div> 103 </div> 104 </div> 105 <div class="Clear"></div> 106</div> 107