# -- # 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. # -- [% SET OTRSBusinessLabel = 'OTRS Business Solution™' %] [% RenderBlockStart("EditMask") %]
[% Translate("Basic information") | html %]
[% IF Data.TicketAppointmentRuleID %]

[% Data.Title | html %]

[% ELSE %] [% IF Data.PermissionLevel < 2 %]

[% Data.Title | html %]

[% ELSE %]

[% Translate("This field is required.") | html %]

[% Translate("This field is required.") | html %]

[% END %] [% END %]
[% IF Data.PermissionLevel < 2 %]

[% Data.Description || "-" | html %]

[% ELSE %] [% END %]
[% IF Data.PermissionLevel < 2 %]

[% Data.Location || "-" | html %]

[% ELSE %] [% END %] [% RenderBlockStart("LocationLink") %] [% RenderBlockEnd("LocationLink") %]
[% IF Data.TicketAppointmentRuleID || Data.PermissionLevel < 3 %]

[% Data.CalendarName | html %]

[% ELSE %] [% Data.CalendarIDStrg %]

[% Translate("This field is required.") | html %]

[% Translate("This field is required.") | html %]

[% END %]
[% Translate("Resource") | html %] [% IF Data.TeamIDStrg %]
[% IF Data.PermissionLevel < 2 %]

[% Data.TeamNames %]

[% ELSE %] [% Data.TeamIDStrg %] [% END %]
[% IF Data.PermissionLevel < 2 %]

[% Data.ResourceNames %]

[% ELSE %] [% Data.ResourceIDStrg %] [% END %]
[% ELSE %]

[% Translate("This feature is currently not available.") | html %]

[% END %]
[% Translate("Date/Time") | html %]
[% IF ( Data.TicketAppointmentRuleID && Data.ReadOnlyStart ) || Data.PermissionLevel < 2 %]

[% Data.StartDate | Localize("TimeLong") %]

[% ELSE %]

[% Translate("Invalid date!") | html %]

[% Translate("Please set this to value before End date.") | html %]

[% Data.StartDateString %] [% END %]
[% IF ( Data.TicketAppointmentRuleID && Data.ReadOnlyDuration ) || Data.PermissionLevel < 2 %]

[% Data.EndDate | Localize("TimeLong") %]

[% ELSE %]

[% Translate("Invalid date!") | html %]

[% Translate("Please set this to value after Start date.") | html %]

[% Data.EndDateString %] [% END %]
[% IF Data.TicketAppointmentRuleID || Data.PermissionLevel < 2 %]

[% Translate(Data.AllDayString) | html %]

[% ELSE %] [% END %]
[% IF Data.TicketAppointmentRuleID || Data.PermissionLevel < 2 %]
[% IF Data.ParentID %] [% Translate("This an occurrence of a repeating appointment.") | html %]
[% Translate("Click here to see the parent appointment.") | html %] [% ELSE %]

[% Data.RecurrenceValue | html %]

[% END %]
[% ELSE %] [% IF Data.ParentID %]
[% Translate("This an occurrence of a repeating appointment.") | html %]
[% Translate("Click here to edit the parent appointment.") | html %]
[% ELSE %]
[% Data.RecurrenceTypeString %]
[% Translate("Frequency") | html %]:
[% Data.RecurrenceCustomTypeString %]
[% Translate("Every") | html %]:
[% Data.RecurrenceIntervalString %]
[% Translate("On") | html %]: # Weekly table start
# Weekly table end
[% Translate("On") | html %]: # Monthly table start [% Count = 1 %] [% WHILE Count < 32 %] [% IF Count % 7 == 1 %] [% END %] # join strings (Monthly1, Monthly2,...) [% MonthlyCount = "Monthly" _ Count %] [% IF Count % 7 == 0 %] [% END %] [% Count = Count + 1 %] [% END %]
# Monthly table end
[% Translate("On") | html %]: # Yearly table start
# Yearly table end
[% END %] [% END %]
[% Translate("Notification") | html %]
[% IF Data.PermissionLevel < 2 %]

[% Data.NotificationValue | html %]

[% ELSE %] [% Data.NotificationStrg %] [% END %]
[% Data.NotificationCustomUnitsStrg %]
[% Data.NotificationCustomUnitsPointOfTimeStrg %]
[% Data.NotificationCustomDateTimeStrg %]
[% IF Data.PluginList %]
[% Translate("Link") | html %] [% FOREACH Key IN Data.PluginList.keys %]
[% IF Data.PermissionLevel >= 2 %] [% ELSE %] [% IF Data.PluginData.$Key.size == 0 %]

-

[% END %] [% END %] # keep following block on a single line, so :empty CSS selector would work!
= 2 %] class="PluginContainer"[% END %]>[% FOREACH Link IN Data.PluginData.$Key %][% END %]
[% END %]
[% END %]
[% IF !Data.PermissionLevel || Data.PermissionLevel > 1 %] [% END %] [% IF Data.AppointmentID && !Data.TicketAppointmentRuleID && Data.PermissionLevel > 2 %] [% END %] [% IF Data.AppointmentID && !Data.TicketAppointmentRuleID && Data.PermissionLevel > 2 %] [% END %]
[% RenderBlockEnd("EditMask") %]