root/branches/release-39/tmpl/wizard/optional.tmpl @ 2484

Revision 2484, 5.6 kB (checked in by bsmith, 18 months ago)

bugzid:79490 - Fixing Config Wizard js errors on mail settings screen

Line 
1<mt:setvarblock name="page_title"><__trans phrase="Mail Configuration"></mt:setvarblock>
2<mt:include name="../cms/include/chromeless_header.tmpl">
3
4<form method="post">
5<input type="hidden" name="__mode" value="" />
6<input type="hidden" name="step" value="optional" />
7<input type="hidden" name="set_static_uri_to" id="set_static_uri_to" value="<mt:var name="static_uri" escape="html">" />
8<input type="hidden" name="config" value="<mt:var name="config" escape="html">" />
9
10<script type="text/javascript">
11/* <![CDATA[ */
12function go(mode) {
13    var f = document.forms[0];
14    f['__mode'].value = mode;
15}
16function mail_select(sel) {
17    var type = sel.options[sel.selectedIndex].value;
18    if ((type == "smtp")) {
19        hideByID("sendmail_path");
20        hideByID("goback");
21        showByID("smtp_server");
22        showByID("submit");
23        showByID("params");
24        document.forms[0].smtp_server.focus();
25    } else if (type == "sendmail") {
26        showByID("sendmail_path");
27        hideByID("goback");
28        hideByID("smtp_server");
29        showByID("submit");
30        showByID("params");
31        document.forms[0].sendmail_path.focus();
32    } else {
33        showByID("goback");
34        hideByID("submit");
35        hideByID("params");
36    }
37    return true;
38}
39/* ]]> */
40</script>
41
42
43<mt:if name="success">
44<p class="intro"><span class="ready"><__trans phrase="Your mail configuration is complete."></span> <__trans phrase="Check your email to confirm receipt of a test email from Movable Type and then proceed to the next step."></p>
45
46<div id="buttons" class="pkg">
47<div class="left">
48<input name="back" class="sb" type="submit" value="<__trans phrase="Back">" onclick="this.form.reset(); go('previous_step');" />
49</div>
50<div class="right">
51<input name="continue" class="sb" type="submit" value="<__trans phrase="Continue">" name="continue" onclick="go('next_step')" />
52</div>
53</div>
54
55<br /><p id="more"><a href="javascript:void(0)" onclick="hideByID('buttons'); hideByID('more'); showByID('settings');"><__trans phrase="Show current mail settings"></a></p>
56</mt:if>
57
58<div id="settings"<mt:if name="success"> style="display: none;"</mt:if>>
59
60<p class="intro">
61<__trans phrase="Periodically Movable Type will send email to inform users of new comments as well as other other events. For these emails to be sent properly, you must instruct Movable Type how to send email.">
62</p>
63
64<mt:if name="send_error">
65    <mtapp:statusmsg
66        id="send_error"
67        class="error">
68        <__trans phrase="An error occurred while attempting to send mail: "><mt:var name="error">
69    </mtapp:statusmsg>
70<mt:else>
71<mt:if name="error">
72    <mtapp:statusmsg
73        id="error"
74        class="error">
75        <mt:var name="error">
76    </mtapp:statusmsg>
77</mt:if>
78</mt:if>
79
80<fieldset>
81
82<!-- MailTransfer -->
83
84    <mtapp:setting
85        id="mail_transfer"
86        label="<__trans phrase="Send email via:">"
87        label_class="top-label">
88<select id="mail_transfer" name="mail_transfer" onchange="mail_select(this)">
89<option value=""><__trans phrase="Select One..."></option>
90<mt:loop name="mail_loop">
91<option value="<mt:var name=ID>" <mt:if name="selected">selected="selected"</mt:if>><mt:var name="name"></option>
92</mt:loop>
93</select>
94    </mtapp:setting>
95
96<div id="params" <mt:unless name="mail_transfer">style="display: none"</mt:unless>>
97<!-- SendMailPath -->
98<div id="sendmail_path" <mt:unless name="use_sendmail">style="display: none"</mt:unless>>
99
100    <mtapp:setting
101        id="sendmail_path"
102        label="<__trans phrase="sendmail Path">"
103        label_class="top-label"
104        hint="<__trans phrase="The physical file path for your sendmail binary.">">
105<input type="text" id="sendmail_path" class="ti" name="sendmail_path" value="<mt:if name="sendmail_path"><mt:var name="sendmail_path" escape="html"></mt:if>" /><br />
106    </mtapp:setting>
107
108</div>
109
110<!-- SMTPServer -->
111<div id="smtp_server" <mt:unless name="use_smtp">style="display: none"</mt:unless>>
112
113    <mtapp:setting
114        id="smtp_server"
115        label="<__trans phrase="Outbound Mail Server (SMTP)">"
116        label_class="top-label"
117        hint="<__trans phrase="Address of your SMTP Server.">">
118<input type="text" id="smtp_server" class="ti" name="smtp_server" value="<mt:if name="smtp_server"><mt:var name="smtp_server" escape="html"></mt:if>" /><br />
119    </mtapp:setting>
120
121</div>
122
123<!-- Test Address -->
124
125    <mtapp:setting
126        id="test_email_address"
127        label="<__trans phrase="Mail address for test sending">"
128        label_class="top-label">
129<input type="text" id="test_mail_address" class="ti" name="test_mail_address" value="<mt:if name="test_mail_address"><mt:var name="test_mail_address" escape="html"></mt:if>" /><br />
130    </mtapp:setting>
131
132</div>
133
134<div id="goback" <mt:if name=mail_transfer>style="display: none"</mt:if>>
135<div class="left">
136<input name="back" type="submit" class="sb" value="<__trans phrase="Back">" onclick="this.form.reset(); go('previous_step');" />
137</div>
138<div class="right">
139<input name="continue" type="submit" class="sb" value="<__trans phrase="Continue">" name="continue" onclick="go('next_step')" />
140</div>
141</div>
142
143<div id="submit" <mt:unless name=mail_transfer>style="display: none"</mt:unless>>
144<div class="left">
145<input name="back" type="submit" class="sb" value="<__trans phrase="Back">" onclick="this.form.reset(); go('previous_step')" />
146</div>
147<div class="right">
148<input name="test" type="submit" class="sb" value="<__trans phrase="Send Test Email">" onclick="go('test')" />
149<input name="continue" type="submit" class="sb" value="<__trans phrase="Continue">" name="continue" onclick="go('next_step')" />
150</div>
151</div>
152
153</div> <!-- settings -->
154
155
156</fieldset>
157</form>
158<mt:include name="../cms/include/chromeless_footer.tmpl">
Note: See TracBrowser for help on using the browser.