File: InstallerConfigureMail.tt

package info (click to toggle)
otrs2 5.0.16-1%2Bdeb9u6
  • links: PTS
  • area: non-free
  • in suites: stretch
  • size: 141,108 kB
  • sloc: perl: 746,356; xml: 54,469; sql: 10,505; sh: 430; makefile: 64
file content (170 lines) | stat: -rw-r--r-- 8,238 bytes parent folder | download | duplicates (2)
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
# --
# Copyright (C) 2001-2017 OTRS AG, http://otrs.com/
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

[% RenderBlockStart("ConfigureMail") %]
<div class="W950px SpacingTop SpacingBottom CenterBox">
    <form action="[% Env("CGIHandle") %]" method="post" id="FormMail" class="PreventMultipleSubmits">
        <input type="hidden" name="Action" value="Installer">
        <input type="hidden" name="Subaction" value="Finish">
        <input type="hidden" name="Skip" value="0">

        <div class="WidgetSimple">
            <div class="Header">
                <h2>[% Translate(Data.Item) | html %] ([% Data.Step %])</h2>
            </div>

            <div class="Content">
                <fieldset class="TableLike">
                    <h4>
                        [% Translate("Configure Outbound Mail") | html %]
                    </h4>
                    <div class="Clear"></div>

                    <label for="OutboundMailType">[% Translate("Outbound mail type") | html %]:</label>
                    <div class="Field">
                        [% Data.OutboundMailType %]
                        [% Data.OutboundPorts %]
                        <p class="FieldExplanation">
                            [% Translate("Select outbound mail type.") | html %]
                        </p>
                    </div>
                    <div class="Clear"></div>

                    <label for="SMTPPort">[% Translate("Outbound mail port") | html %]:</label>
                    <div class="Field">
                        <input type="text" id="SMTPPort" name="SMTPPort" value="[% Data.SMTPPort | html %]" class="W25pc">
                        <p class="FieldExplanation">
                            [% Translate("Select outbound mail port.") | html %]
                        </p>
                    </div>
                    <div class="Clear"></div>
                </fieldset>

                <fieldset class="TableLike" id="InfoSMTP">
                    <label for="SMTPHost">[% Translate("SMTP host") | html %]:</label>
                    <div class="Field">
                        <input type="text" id="SMTPHost" name="SMTPHost" value="[% Data.SMTPHost | html %]" class="W33pc">
                        <p class="FieldExplanation">
                            [% Translate("SMTP host.") | html %]
                        </p>
                    </div>
                    <div class="Clear"></div>

                    <label for="SMTPAuth">[% Translate("SMTP authentication") | html %]:</label>
                    <div class="Field">
                        <input type="checkbox" id="SMTPAuth" name="SMTPAuth">
                        <p class="FieldExplanation">
                            [% Translate("Does your SMTP host need authentication?") | html %]
                        </p>
                    </div>
                    <div class="Clear"></div>
                </fieldset>

                <fieldset class="TableLike Hidden" id="InfoSMTPAuth">
                    <label for="SMTPAuthUser">[% Translate("SMTP auth user") | html %]:</label>
                    <div class="Field">
                        <input type="text" id="SMTPAuthUser" name="SMTPAuthUser" value="[% Data.SMTPAuthUser | html %]" disabled="disabled" class="W33pc" autocomplete="off">
                        <p class="FieldExplanation">
                            [% Translate("Username for SMTP auth.") | html %]
                        </p>
                    </div>
                    <div class="Clear"></div>

                    <label for="SMTPAuthPassword">[% Translate("SMTP auth password") | html %]:</label>
                    <div class="Field">
                        <input type="password" id="SMTPAuthPassword" name="SMTPAuthPassword" value="[% Data.SMTPAuthPassword | html %]" disabled="disabled" class="W33pc" autocomplete="off">
                        <p class="FieldExplanation">
                            [% Translate("Password for SMTP auth.") | html %]
                        </p>
                    </div>
                    <div class="Clear"></div>
                </fieldset>

                <fieldset class="TableLike">
                    <h4>
                        [% Translate("Configure Inbound Mail") | html %]
                    </h4>
                    <div class="Clear"></div>

                    <label for="InboundMailType">[% Translate("Inbound mail type") | html %]:</label>
                    <div class="Field">
                        [% Data.InboundMailType %]
                        <p class="FieldExplanation">
                            [% Translate("Select inbound mail type.") | html %]
                        </p>
                    </div>
                    <div class="Clear"></div>

                    <label for="InboundHost">[% Translate("Inbound mail host") | html %]:</label>
                    <div class="Field">
                        <input type="text" id="InboundHost" name="InboundHost" value="[% Data.InboundHost | html %]" class="W33pc">
                        <p class="FieldExplanation">
                            [% Translate("Inbound mail host.") | html %]
                        </p>
                    </div>
                    <div class="Clear"></div>

                    <label for="InboundUser">[% Translate("Inbound mail user") | html %]:</label>
                    <div class="Field">
                        <input type="text" id="InboundUser" name="InboundUser" value="[% Data.InboundUser | html %]" class="W33pc" autocomplete="off">
                        <p class="FieldExplanation">
                            [% Translate("User for inbound mail.") | html %]
                        </p>
                    </div>
                    <div class="Clear"></div>

                    <label for="InboundPassword">[% Translate("Inbound mail password") | html %]:</label>
                    <div class="Field">
                        <input type="password" id="InboundPassword" name="InboundPassword" value="[% Data.InboundPassword | html %]" class="W33pc" autocomplete="off">
                        <p class="FieldExplanation">
                            [% Translate("Password for inbound mail.") | html %]
                        </p>
                    </div>
                    <div class="Clear"></div>
                </fieldset>

                <fieldset class="TableLike Hidden ErrorMsg">
                    <h4>
                        [% Translate("Result of mail configuration check") | html %]
                    </h4>
                    <div class="Clear"></div>

                    <div class="Field">
                        <p class="Error" id="FormMailResultMessage"></p>
                    </div>
                    <div class="Clear"></div>

                </fieldset>

                <div id="InstallerContinueWithJS" class="SpacingTop Right">
                    <button class="Primary CallForAction" type="button" id="ButtonCheckMail" value="[% Translate("Check mail configuration") | html %]"><span>[% Translate("Check mail configuration") | html %]</span></button>
                    [% Translate("or") | html %]
                    <button type="button" id="ButtonSkipMail" class="CallForAction" value="[% Translate("Skip this step") | html %]"><span>[% Translate("Skip this step") | html %]</span></button>
                </div>

            </div>
        </div>
    </form>
</div>
[% WRAPPER JSOnDocumentComplete %]
<script type="text/javascript">//<![CDATA[
    $('#ButtonCheckMail').bind('click', Core.Installer.CheckMailConfig);
    $('#ButtonSkipMail').bind('click', function() {
        Core.Installer.SkipMailConfig();
        return false;
    });
    $('#SMTPAuth').bind('change', function () {
        Core.Installer.CheckSMTPAuth($(this));
    });
    $('#OutboundMailType').bind('change', function () {
        Core.Installer.SelectOutboundMailType($(this));
    });
    $('#OutboundMailType').trigger('change');
//]]></script>
[% END %]
[% RenderBlockEnd("ConfigureMail") %]