File: AgentTicketBounce.tt

package info (click to toggle)
otrs2 6.0.32-6
  • links: PTS
  • area: non-free
  • in suites: bullseye
  • size: 197,336 kB
  • sloc: perl: 1,003,018; javascript: 75,060; xml: 70,883; php: 51,819; sql: 22,361; sh: 379; makefile: 51
file content (132 lines) | stat: -rw-r--r-- 8,249 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# --
# Copyright (C) 2001-2021 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.
# --

<!-- start bounce form -->
<form action="[% Env("CGIHandle") %]" method="post" name="bounce" class="Validate PreventMultipleSubmits">
    <input type="hidden" name="Action"     value="[% Env("Action") %]"/>
    <input type="hidden" name="Subaction"  value="Store"/>
    <input type="hidden" name="QueueID"    value="[% Data.QueueID | html %]"/>
    <input type="hidden" name="TicketID"   value="[% Data.TicketID | html %]"/>
    <input type="hidden" name="ArticleID"  value="[% Data.ArticleID | html %]"/>
    <input type="hidden" name="NextScreen" value="[% Data.NextScreen | html %]"/>

    <div class="LayoutPopup ARIARoleMain">

        <div class="Header">
            <h1>[% Translate("Bounce %s%s%s", Config('Ticket::Hook'), Config('Ticket::HookDivider'), Data.TicketNumber) | html %] &mdash; [% 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 %][% IF Data.PreviousOwner %];PreviousOwner=[% Data.PreviousOwner %][% END %];[% Env("ChallengeTokenParam") | html %]">
                    [% Translate("Undo & close") | html %]
                </a>
            </p>
[% RenderBlockEnd("PropertiesLock") %]

        </div>

        <div class="Content">

            <fieldset class="TableLike FixedLabel">
                <label class="Mandatory" for="BounceTo"><span class="Marker">*</span>[% Translate("Bounce to") | html %]:</label>
                <div class="Field">
                    <input type="[% Env("EmailFieldType") | html %]" name="BounceTo" id="BounceTo" value="[% Data.BounceTo | html %]" class="W50pc Validate_Required [% Data.BounceToInvalid | html %]"/>
                    <div id="BounceToError" class="TooltipErrorMessage" ><p>[% Translate("You need a email address.") | html %]</p></div>
                    <div id="BounceToServerError" class="TooltipErrorMessage">
[% RenderBlockStart("BounceToCustomerGenericServerErrorMsg") %]
                        <p>[% Translate("Need a valid email address or don't use a local email address.") | html %]</p>
[% RenderBlockEnd("BounceToCustomerGenericServerErrorMsg") %]
[% RenderBlockStart("BounceToInvalidConfigServerErrorMsg") %]
                        <p>[% Translate("This email address is not allowed due to the system configuration.") | html %]</p>
[% RenderBlockEnd("BounceToInvalidConfigServerErrorMsg") %]
[% RenderBlockStart("BounceToInvalidMXServerErrorMsg") %]
                        <p>[% Translate("This email address failed MX check.") | html %]</p>
[% RenderBlockEnd("BounceToInvalidMXServerErrorMsg") %]
[% RenderBlockStart("BounceToInvalidDNSServerErrorMsg") %]
                        <p>[% Translate("DNS problem, please check your configuration and the error log.") | html %]</p>
[% RenderBlockEnd("BounceToInvalidDNSServerErrorMsg") %]
[% RenderBlockStart("BounceToInvalidSyntaxServerErrorMsg") %]
                        <p>[% Translate("The syntax of this email address is incorrect.") | html %]</p>
[% RenderBlockEnd("BounceToInvalidSyntaxServerErrorMsg") %]
                    </div>
                </div>
                <div class="Clear"></div>

                <label for="BounceStateID">[% Translate("Next ticket state") | html %]:</label>
                <div class="Field">
                    [% Data.NextStatesStrg %]
                </div>
                <div class="Clear"></div>

                <label for="InformSender">[% Translate("Inform sender") | html %]:</label>
                <div class="Field">
                    <input type="checkbox" name="InformSender" id="InformSender" value="1" [% Data.InformSenderChecked | html %]/>
                </div>
                <div class="Clear"></div>

                <label>[% Translate("From") | html %]:</label>
                <div class="Field">
                    [% Data.From | html %]
                </div>
                <div class="Clear"></div>

                <label for="To"><span class="Marker Hidden">*</span>[% Translate("To") | html %]:</label>
                <div class="Field">
                    <input type="text" name="To" id="To" value="[% Data.To | html %]" class="W50pc Validate_DependingRequiredAND Validate_Depending_InformSender [% Data.ToInvalid | html %]"/>
                    <div id="ToError" class="TooltipErrorMessage" ><p>[% Translate("This field is required.") | html %]</p></div>
                    <div id="ToServerError" class="TooltipErrorMessage">
[% RenderBlockStart("ToCustomerGenericServerErrorMsg") %]
                        <p>[% Translate("This field is required.") | html %]</p>
[% RenderBlockEnd("ToCustomerGenericServerErrorMsg") %]
[% RenderBlockStart("ToInvalidConfigServerErrorMsg") %]
                        <p>[% Translate("This email address is not allowed due to the system configuration.") | html %]</p>
[% RenderBlockEnd("ToInvalidConfigServerErrorMsg") %]
[% RenderBlockStart("ToInvalidMXServerErrorMsg") %]
                        <p>[% Translate("This email address failed MX check.") | html %]</p>
[% RenderBlockEnd("ToInvalidMXServerErrorMsg") %]
[% RenderBlockStart("ToInvalidDNSServerErrorMsg") %]
                        <p>[% Translate("DNS problem, please check your configuration and the error log.") | html %]</p>
[% RenderBlockEnd("ToInvalidDNSServerErrorMsg") %]
[% RenderBlockStart("ToInvalidSyntaxServerErrorMsg") %]
                        <p>[% Translate("The syntax of this email address is incorrect.") | html %]</p>
[% RenderBlockEnd("ToInvalidSyntaxServerErrorMsg") %]
                    </div>
                </div>
                <div class="Clear"></div>

                <label for="Subject"><span class="Marker Hidden">*</span>[% Translate("Subject") | html %]:</label>
                <div class="Field">
                    <input type="text" name="Subject" id="Subject" value="[% Data.Subject | html %]" class="W50pc Validate_DependingRequiredAND Validate_Depending_InformSender [% Data.SubjectInvalid | html %]"/>
                    <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>

                <label for="RichText"><span class="Marker Hidden">*</span>[% Translate("Text") | html %]:</label>
                <div class="RichTextField">
                    <textarea id="RichText" class="RichText Validate_DependingRequiredAND Validate_Depending_InformSender [% Data.BodyInvalid | html %]" name="Body" rows="15" cols="[% Config("Ticket::Frontend::TextAreaEmail") %]">[% Data.InformationFormat %]</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>

            </fieldset>
        </div>
        <div class="Footer">
            <button class="CallForAction Primary" id="submitRichText" accesskey="g" title="[% Translate("Send mail") | html %] (g)" type="submit" value="[% Translate("Send mail") | html %]" ><span><i class="fa fa-envelope-o"></i> [% Translate("Send mail") | html %]</span></button>
        </div>
    </div>
</form>
<!-- end bounce form -->