264 lines
14 KiB
Plaintext
264 lines
14 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.
|
|
# --
|
|
|
|
<form action="[% Env("CGIHandle") %]" method="post" enctype="multipart/form-data" name="MoveTicketToQueue" class="Validate PreventMultipleSubmits" id="MoveTicketToQueue">
|
|
<input type="hidden" name="Action" value="[% Env("Action") %]"/>
|
|
<input type="hidden" name="Subaction" value="MoveTicket"/>
|
|
<input type="hidden" name="FormID" value="[% Data.FormID | html %]"/>
|
|
<input type="hidden" name="TicketID" value="[% Data.TicketID | html %]"/>
|
|
<input type="hidden" name="TicketUnlock" value="[% Data.TicketUnlock | html %]"/>
|
|
<input type="hidden" name="OwnerAll" id="OwnerAll" value="[% Data.OwnerAll | html %]"/>
|
|
<input type="hidden" name="NoSubmit" value=""/>
|
|
<input type="hidden" name="FormDraftTitle" value="[% Data.FormDraftTitle | html %]"/>
|
|
<input type="hidden" name="FormDraftID" value="[% Data.FormDraftID | html %]"/>
|
|
<input type="hidden" name="FormDraftAction" id="FormDraftAction" />
|
|
|
|
<div class="LayoutPopup ARIARoleMain">
|
|
<div class="Header">
|
|
<h1>[% Translate("Move %s%s%s", Config('Ticket::Hook'), Config('Ticket::HookDivider'), Data.TicketNumber) | html %] — [% Data.Title | html %]</h1>
|
|
<p class="AsteriskExplanation">[% Translate("All fields marked with an asterisk (*) are mandatory.") | html %]</p>
|
|
|
|
[% RenderBlockStart("TicketBack") %]
|
|
<p>
|
|
<a class="CancelClosePopup" href="#">[% Translate("Cancel & close") | html %]</a>
|
|
</p>
|
|
[% RenderBlockEnd("TicketBack") %]
|
|
[% RenderBlockStart("PropertiesLock") %]
|
|
<p>
|
|
[% Translate("The ticket has been locked") | html %].
|
|
<a class="UndoClosePopup" href="[% Env("Baselink") %]Action=AgentTicketLock;Subaction=Unlock;TicketID=[% Data.TicketID | uri %][% IF Data.PreviousOwner %];PreviousOwner=[% Data.PreviousOwner %][% END %];[% Env("ChallengeTokenParam") | html %]">
|
|
[% Translate("Undo & close") | html %]
|
|
</a>
|
|
</p>
|
|
[% RenderBlockEnd("PropertiesLock") %]
|
|
|
|
|
|
</div>
|
|
<div class="Content">
|
|
[% INCLUDE "FormElements/DraftNotifications.tt" %]
|
|
<div class="WidgetSimple Expanded">
|
|
<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("Ticket Settings") | html %]</h2>
|
|
</div>
|
|
<div class="Content">
|
|
<fieldset class="TableLike FixedLabel">
|
|
|
|
[% RenderBlockStart("Queue") %]
|
|
<label class="Mandatory" for="DestQueueID"><span class="Marker">*</span> [% Translate("New Queue") | html %]:</label>
|
|
<div class="Field">
|
|
[% Data.MoveQueuesStrg %]
|
|
<div id="DestQueueIDError" class="TooltipErrorMessage" ><p>[% Translate("This field is required.") | html %]</p></div>
|
|
<div id="DestQueueIDServerError" class="TooltipErrorMessage"><p>[% Translate("This field is required.") | html %]</p></div>
|
|
</div>
|
|
<div class="Clear"></div>
|
|
[% RenderBlockEnd("Queue") %]
|
|
|
|
[% RenderBlockStart("Owner") %]
|
|
<label for="NewUserID">[% Translate("New Owner") | html %]:</label>
|
|
<div class="Field">
|
|
[% Data.OwnerStrg %]
|
|
<a href="#" id="OwnerSelectionGetAll" class="GetAllAJAX" title="[% Translate("Get all") | html %]">
|
|
<span>[% Translate("Get all") | html %]</span>
|
|
<i class="fa fa-refresh"></i>
|
|
</a>
|
|
</div>
|
|
<div class="Clear"></div>
|
|
[% RenderBlockEnd("Owner") %]
|
|
|
|
[% RenderBlockStart("State") %]
|
|
[% IF Data.StateMandatory %]
|
|
<label class="Mandatory" for="NewStateID"><span class="Marker">*</span>[% Translate("Next ticket state") | html %]:</label>
|
|
[% ELSE %]
|
|
<label for="NewStateID">[% Translate("Next ticket state") | html %]:</label>
|
|
[% END %]
|
|
<div class="Field">
|
|
[% Data.NextStatesStrg %]
|
|
[% IF Data.StateMandatory %]
|
|
<div id="NewStateIDError" class="TooltipErrorMessage"><p>[% Translate("This field is required.") | html %]</p></div>
|
|
<div id="NewStateIDServerError" class="TooltipErrorMessage"><p>[% Translate("State invalid.") | html %]</p></div>
|
|
[% END %]
|
|
|
|
</div>
|
|
<div class="Clear"></div>
|
|
[% RenderBlockEnd("State") %]
|
|
|
|
[% RenderBlockStart("StatePending") %]
|
|
<label>[% Translate("Pending date") | html %]:</label>
|
|
<div class="Field">
|
|
[% Data.DateString %]
|
|
<div id="DayServerError" class="TooltipErrorMessage"><p>[% Translate("Date invalid!") | html %]</p></div>
|
|
<div id="HourServerError" class="TooltipErrorMessage"><p>[% Translate("Date invalid!") | html %]</p></div>
|
|
<p class="FieldExplanation">[% Translate("For all pending* states.") | html %]</p>
|
|
</div>
|
|
<div class="Clear"></div>
|
|
[% RenderBlockEnd("StatePending") %]
|
|
|
|
[% RenderBlockStart("Priority") %]
|
|
<label for="NewPriorityID">[% Translate("Priority") | html %]:</label>
|
|
<div class="Field">
|
|
[% Data.NextPrioritiesStrg %]
|
|
</div>
|
|
<div class="Clear"></div>
|
|
[% RenderBlockEnd("Priority") %]
|
|
</fieldset>
|
|
</div>
|
|
</div>
|
|
[% RenderBlockStart("WidgetDynamicFields") %]
|
|
<div class="WidgetSimple Expanded">
|
|
<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 Fields") | html %]</h2>
|
|
</div>
|
|
<div class="Content">
|
|
<fieldset class="TableLike FixedLabel">
|
|
|
|
[% RenderBlockStart("DynamicField") %]
|
|
<div class="Row Row_DynamicField_[% Data.Name | html %]">
|
|
[% Data.Label %]
|
|
<div class="Field">
|
|
[% Data.Field %]
|
|
</div>
|
|
<div class="Clear"></div>
|
|
</div>
|
|
[% RenderBlockEnd("DynamicField") %]
|
|
|
|
# example of how to use fixed dynamic field blocks for customizations
|
|
# Note: Field1 and Field2 are the names of the fields and had to be replaced with the actual
|
|
# field names
|
|
#[% RenderBlockStart("DynamicField_Field1") %]
|
|
# <div class="Row Row_DynamicField_[% Data.Name | html %]">
|
|
# [% Data.Label %]
|
|
# <div class="Field">
|
|
# [% Data.Field %]
|
|
# </div>
|
|
# <div class="Clear"></div>
|
|
# </div>
|
|
#[% RenderBlockEnd("DynamicField_Field1") %]
|
|
#[% RenderBlockStart("DynamicField_Field2") %]
|
|
# <div class="Row Row_DynamicField_[% Data.Name | html %]">
|
|
# [% Data.Label %]
|
|
# <div class="Field">
|
|
# [% Data.Field %]
|
|
# </div>
|
|
# <div class="Clear"></div>
|
|
# </div>
|
|
#[% RenderBlockEnd("DynamicField_Field2") %]
|
|
|
|
</fieldset>
|
|
</div>
|
|
</div>
|
|
[% RenderBlockEnd("WidgetDynamicFields") %]
|
|
|
|
[% RenderBlockStart("WidgetArticle") %]
|
|
<div class="WidgetSimple [% Data.WidgetStatus | html %]" id="WidgetArticle">
|
|
<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("Add Article") | html %]</h2>
|
|
</div>
|
|
<div class="Content">
|
|
<fieldset class="TableLike FixedLabel">
|
|
[% IF Data.WidgetStatus == 'Expanded' %]
|
|
<input type="hidden" id="CreateArticle" name="CreateArticle" value="1" />
|
|
[% ELSE %]
|
|
<label for="CreateArticle">[% Translate("Create an Article") | html %]:</label>
|
|
<div class="Field">
|
|
<input type="checkbox" id="CreateArticle" name="CreateArticle" value="1" />
|
|
</div>
|
|
<div class="Clear"></div>
|
|
[% END %]
|
|
[% RenderBlockStart("Note") %]
|
|
[% RenderBlockStart("SubjectLabel") %]
|
|
<label for="Subject">[% Translate("Subject") | html %]:</label>
|
|
[% RenderBlockEnd("SubjectLabel") %]
|
|
[% RenderBlockStart("SubjectLabelMandatory") %]
|
|
<label class="Mandatory" for="Subject"><span class="Marker">*</span>[% Translate("Subject") | html %]:</label>
|
|
[% RenderBlockEnd("SubjectLabelMandatory") %]
|
|
<div class="Field">
|
|
<input type="text" id="Subject" name="Subject" value="[% Data.Subject | html %]" class="Validate Validate_DependingRequiredAND Validate_Depending_CreateArticle [% Data.SubjectRequired %] [% Data.SubjectInvalid %] W75pc"/>
|
|
<div id="SubjectError" class="TooltipErrorMessage"><p>[% Translate("This field is required.") | html %]</p></div>
|
|
<div id="SubjectServerError" class="TooltipErrorMessage"><p>[% Translate("This field is required.") | html %]</p></div>
|
|
</div>
|
|
<div class="Clear"></div>
|
|
[% RenderBlockStart("TicketOptions") %]
|
|
<label>[% Translate("Options") | html %]:</label>
|
|
<div class="Field">
|
|
<!-- OutputFilterHook_TicketOptionsBegin -->
|
|
<!-- OutputFilterHook_TicketOptionsEnd -->
|
|
|
|
</div>
|
|
<div class="Clear"></div>
|
|
[% RenderBlockEnd("TicketOptions") %]
|
|
|
|
<!-- OutputFilterHook_NoTicketOptionsFallback -->
|
|
|
|
[% RenderBlockStart("StandardTemplate") %]
|
|
<label for="StandardTemplateID">[% Translate("Text Template") | html %]:</label>
|
|
<div class="Field">
|
|
[% Data.StandardTemplateStrg %]
|
|
<p class="FieldExplanation">[% Translate("Setting a template will overwrite any text or attachment.") | html %]</p>
|
|
</div>
|
|
<div class="Clear"></div>
|
|
[% RenderBlockEnd("StandardTemplate") %]
|
|
|
|
[% RenderBlockStart("RichTextLabel") %]
|
|
<label for="RichText">[% Translate("Text") | html %]:</label>
|
|
[% RenderBlockEnd("RichTextLabel") %]
|
|
[% RenderBlockStart("RichTextLabelMandatory") %]
|
|
<label class="Mandatory" for="RichText"><span class="Marker">*</span>[% Translate("Text") | html %]:</label>
|
|
[% RenderBlockEnd("RichTextLabelMandatory") %]
|
|
<div id="RichTextField" class="RichTextField">
|
|
<textarea id="RichText" class="RichText Validate [% Data.BodyRequired %] [% Data.BodyInvalid %]" name="Body" rows="15" cols="[% Config("Ticket::Frontend::TextAreaNote") %]">[% Data.Body | html %]</textarea>
|
|
<div id="RichTextError" class="TooltipErrorMessage"><p>[% Translate("This field is required.") | html %]</p></div>
|
|
<div id="RichTextServerError" class="TooltipErrorMessage"><p>[% Translate("This field is required.") | html %]</p></div>
|
|
</div>
|
|
<div class="Clear"></div>
|
|
|
|
<label>[% Translate("Attachments") | html %]:</label>
|
|
<div class="Field">
|
|
[% INCLUDE "FormElements/AttachmentList.tt" %]
|
|
</div>
|
|
<div class="Clear"></div>
|
|
|
|
[% RenderBlockEnd("Note") %]
|
|
[% RenderBlockStart("TimeUnitsLabel") %]
|
|
<label for="TimeUnits">[% Translate("Time units") | html %] [% Translate(Config("Ticket::Frontend::TimeUnits")) | html %]:</label>
|
|
[% RenderBlockEnd("TimeUnitsLabel") %]
|
|
[% RenderBlockStart("TimeUnitsLabelMandatory") %]
|
|
<label class="Mandatory" for="TimeUnits"><span class="Marker">*</span>[% Translate("Time units") | html %] [% Translate(Config("Ticket::Frontend::TimeUnits")) | html %]:</label>
|
|
[% RenderBlockEnd("TimeUnitsLabelMandatory") %]
|
|
[% RenderBlockStart("TimeUnits") %]
|
|
<div class="Field">
|
|
<input type="text" name="TimeUnits" id="TimeUnits" value="[% Data.TimeUnits | html %]" class="W50pc Validate_TimeUnits [% Data.TimeUnitsRequired | html %] [% Data.TimeUnitsInvalid | html %]"/>
|
|
<div id="TimeUnitsError" class="TooltipErrorMessage"><p>[% Translate("Invalid time!") | html %]</p></div>
|
|
<div id="TimeUnitsServerError" class="TooltipErrorMessage"><p>[% Translate("This field is required.") | html %]</p></div>
|
|
</div>
|
|
<div class="Clear"></div>
|
|
[% RenderBlockEnd("TimeUnits") %]
|
|
</fieldset>
|
|
</div>
|
|
</div>
|
|
[% RenderBlockEnd("WidgetArticle") %]
|
|
</div>
|
|
<div class="Footer">
|
|
<button class="CallForAction Primary" id="submitRichText" accesskey="g" title="[% Translate("Move") | html %] (g)" type="submit" value="[% Translate("Move") | html %]">
|
|
<span>[% Translate("Move") | html %]</span>
|
|
</button>
|
|
[% INCLUDE "FormElements/DraftButtons.tt" %]
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
#Layers
|