107 lines
5.3 KiB
Plaintext
107 lines
5.3 KiB
Plaintext
# --
|
|
# 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="MainBox ARIARoleMain LayoutFixedSidebar SidebarFirst">
|
|
|
|
<h1 class="InvisibleText">[% Translate("Appointment Import") | html %]</h1>
|
|
|
|
[% BreadcrumbPath = [
|
|
{
|
|
Name => Translate('Calendar Management'),
|
|
Link => 'AdminAppointmentCalendarManage',
|
|
},
|
|
{
|
|
Name => Translate('Import Appointments'),
|
|
},
|
|
]
|
|
%]
|
|
|
|
[% INCLUDE "Breadcrumb.tt" Path = BreadcrumbPath %]
|
|
|
|
<div class="SidebarColumn">
|
|
<div class="WidgetSimple">
|
|
<div class="Header">
|
|
<h2>[% Translate("Actions") | html %]</h2>
|
|
</div>
|
|
<div class="Content">
|
|
[% IF Data.ModulePermissions.AdminAppointmentCalendarManage %]
|
|
<ul class="ActionList">
|
|
<li>
|
|
<a id="Back" href="[% Env("Baselink") %]Action=AdminAppointmentCalendarManage" class="CallForAction Fullsize Center" title="[% Translate("Go back") | html %]">
|
|
<span><i class="fa fa-caret-left"></i>[% Translate("Go back") | html %]</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
[% END %]
|
|
</div>
|
|
</div>
|
|
<div class="WidgetSimple">
|
|
<div class="Header">
|
|
<h2>[% Translate("Description") | html %]</h2>
|
|
</div>
|
|
<div class="Content">
|
|
<p class="FieldExplanation">
|
|
[% Translate("Uploaded file must be in valid iCal format (.ics).") | html %]
|
|
</p>
|
|
<p class="FieldExplanation">
|
|
[% Translate("If desired Calendar is not listed here, please make sure that you have at least 'create' permissions.") | html %]
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="ContentColumn">
|
|
<div class="WidgetSimple">
|
|
<div class="Header">
|
|
<h2>[% Translate("Import Appointments") | html %]</h2>
|
|
</div>
|
|
|
|
<div class="Content">
|
|
<form action="[% Env("CGIHandle") %]" method="post" enctype="multipart/form-data" class="Validate PreventMultipleSubmits">
|
|
<input type="hidden" name="Action" value="[% Env("Action") %]"/>
|
|
<input type="hidden" name="Subaction" value="Import"/>
|
|
<input type="hidden" name="FormID" value="[% Data.FormID | html %]"/>
|
|
<fieldset class="TableLike">
|
|
<label for="FileUpload" class="Mandatory"><span class="Marker">*</span>[% Translate("Upload") | html %]:</label>
|
|
<div class="Field">
|
|
<input name="FileUpload" id="FileUpload" type="file" size="18" class="Fixed W100pc Validate_Required [% Data.FileUploadInvalid | html %]"/>
|
|
<div id="FileUploadError" class="TooltipErrorMessage"><p>[% Translate("This field is required.") | html %]</p></div>
|
|
<div id="FileUploadServerError" class="TooltipErrorMessage"><p>[% Translate("This field is required.") | html %]</p></div>
|
|
</div>
|
|
|
|
<label for="CalendarID" class="Mandatory"><span class="Marker">*</span>[% Translate("Calendar") | html %]:</label>
|
|
<div class="Field">
|
|
[% Data.Calendar %]
|
|
<div id="CalendarIDError" class="TooltipErrorMessage"><p>[% Translate("This field is required.") | html %]</p></div>
|
|
<div id="CalendarIDServerError" class="TooltipErrorMessage"><p>[% Translate("This field is required.") | html %]</p></div>
|
|
</div>
|
|
|
|
<label for="UpdateExistingAppointments">[% Translate("Update existing appointments?") | html %]</label>
|
|
<div class="Field">
|
|
<input type="checkbox" value="1" name="UpdateExistingAppointments" id="UpdateExistingAppointments">
|
|
<p class="FieldExplanation">
|
|
[% Translate("All existing appointments in the calendar with same UniqueID will be overwritten.") | html %]
|
|
</p>
|
|
</div>
|
|
<div class="Field SpacingTop">
|
|
<button class="Primary CallForAction" type="submit" value="[% Translate("Upload calendar") | html %]">
|
|
<span>[% Translate("Import appointments") | html %]</span>
|
|
</button>
|
|
[% Translate("or") | html %]
|
|
<a href="[% Env("Baselink") %]Action=AdminAppointmentCalendarManage" title="[% Translate("Cancel") | html %]">
|
|
<span>[% Translate("Cancel") | html %]</span>
|
|
</a>
|
|
</div>
|
|
<div class="Clear"></div>
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|