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

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

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

Line 
1<mt:unless name="cfg_exists">
2    <mt:setvarblock name="page_title"><__trans phrase="Welcome to Movable Type"></mt:setvarblock>
3<mt:else>
4    <mt:setvarblock name="page_title"><__trans phrase="Configuration File Exists"></mt:setvarblock>
5</mt:unless>
6<mt:unless name="valid_static_path">
7    <mt:setvarblock name="html_head" append="1">
8        <style type="text/css" media="screen">
9        body {
10            font-family: Candara, "Helvetica Neue", Arial, sans-serif;
11            font-size: 12px;
12            background-color: #fff;
13        }
14
15        .chromeless body {
16            text-align: center;
17            height: 100%;
18        }
19
20        .chromeless #container {
21            position: relative;
22            margin: 0 auto;
23            text-align: left;
24        }
25        .chromeless #container {
26            width: 450px;
27        }
28
29        .chromeless #header {
30            position: relative;
31            height: 34px;
32        }
33
34        .chromeless #footer {
35            padding: 5px 20px 20px;
36            bottom: 0px;
37        }
38        .chromeless body {
39            background-color: #fff;
40        }
41
42        .chromeless #container {
43            margin-top: 50px;
44        }
45
46        .chromeless #content {
47            border: 1px solid #cfdde5;
48            background-color: #fafbfc;
49            padding: 20px;
50        }
51
52        .chromeless #page-title {
53            font-size: 24px;
54            font-weight: normal;
55            margin-top: 10px;
56        }
57
58        .chromeless p.intro {
59            font-size: 14px;
60        }
61
62
63        h1 {
64            margin-top: 0;
65        }
66        #set_static_uri_to {
67            width: 100%;
68        }
69        #set_static_file_to {
70            width: 100%;
71        }
72        .no-static-path,
73        fieldset {
74            border: 1px solid #cfdde5;
75            background: #fff;
76            padding: 10px;
77            margin-bottom: 1em;
78        }
79        .no-static-path h3 {
80            margin-top: 0;
81        }
82        #footer {
83            color: #999;
84            font-size: 85%;
85            text-align: center;
86        }
87        #footer a {
88            color: #999;
89        }
90        label {
91            font-weight: bold;
92        }
93        .hint {
94            color: #666;
95            font-size: 85%;
96        }
97        .msg {
98            margin: 0 0 10px 0;
99            padding: 16px 10px 16px 46px;
100        }
101        .msg-error {
102            background-color: #FF9;
103        }
104        </style>
105
106        <script type="text/javascript">
107        /* <![CDATA[ */
108        function getByID(n, d) {
109            if (!d) d = document;
110            if (d.getElementById)
111                return d.getElementById(n);
112            else if (d.all)
113                return d.all[n];
114        }
115        /* ]]> */
116        </script>
117    </mt:setvarblock>
118<mt:else>
119    <mt:setvarblock name="js_include" append="1">
120        <style type="text/css">
121        .msg {
122            margin: 0 0 10px 0;
123            padding: 16px 10px 16px 10px;
124        }
125        .msg-error {
126            background-color: #FF9;
127        }
128        #container  div.no-static-path,
129        #container #static_webpath_config {
130            display: none;
131        }
132        #container.bad-static-path div.no-static-path,
133        #container.bad-static-path #static_webpath_config {
134            display: block;
135        }
136        </style>
137        <script type="text/javascript">
138        /* <![CDATA[ */
139        function js_check() {
140            if (! openManual ) {
141                // mt.js not loading properly; static path incorrect
142                var c = getByID("container");
143                c.className = "bad-static-path";
144            }
145        }
146        window.onload = js_check;
147        /* ]]> */
148        </script>
149    </mt:setvarblock>
150</mt:unless>
151
152<mt:include name="../cms/include/chromeless_header.tmpl">
153
154<mt:if name="cfg_exists">
155    <p><__trans phrase="A configuration (mt-config.cgi) file already exists, <a href="[_1]">sign in</a> to Movable Type." params="mt.cgi"></p>
156    <p><__trans phrase="To create a new configuration file using the Wizard, remove the current configuration file and then refresh this page"></p>
157<mt:else>
158<form method="post">
159    <input type="hidden" name="__mode" value="next_step" />
160    <input type="hidden" name="step" value="pre_start" />
161    <input type="hidden" name="config" value="<mt:var name="config" escape="html">" />
162
163    <noscript>
164        <p><__trans phrase="Movable Type requires that you enable JavaScript in your browser. Please enable it and refresh this page to proceed."></p>
165    </noscript>
166
167    <p class="intro"><__trans phrase="This wizard will help you configure the basic settings needed to run Movable Type."></p>
168
169    <mt:if name="uri_invalid">
170        <mtapp:statusmsg
171            id="uri_invalid"
172            can_close="0"
173            class="error">
174            <__trans phrase="<strong>Error: '[_1]' could not be found.</strong>  Please move your static files to the directory first or correct the setting if it is incorrect." params="<$mt:var name="set_static_uri_to"$>">
175        </mtapp:statusmsg>
176    </mt:if>
177    <mt:if name="file_invalid">
178        <mtapp:statusmsg
179            id="file_invalid"
180            can_close="0"
181            class="error">
182            <__trans phrase="<strong>Error: '[_1]' could not be found.</strong>  Please move your static files to the directory first or correct the setting if it is incorrect." params="<$mt:var name="set_static_file_to"$>">
183        </mtapp:statusmsg>
184    </mt:if>
185
186    <div class="no-static-path">
187
188        <h3><__trans phrase="Configure Static Web Path"></h3>
189
190        <p><__trans phrase="Movable Type ships with directory named [_1] which contains a number of important files such as images, javascript files and stylesheets." params="<strong>mt-static</strong>"></p>
191
192        <mt:if name="mt_static_exists">
193        <p><__trans phrase="The [_1] directory is in the main Movable Type directory which this wizard script resides, but due to your web server's configuration, the [_1] directory is not accessible in this location and must be moved to a web-accessible location (e.g., your web document root directory)." params="<strong>mt-static</strong>"></p>
194        <mt:else>
195        <p><__trans phrase="This directory has either been renamed or moved to a location outside of the Movable Type directory."></p>
196        </mt:if>
197
198        <p><__trans phrase="Once the [_1] directory is in a web-accessible location, specify the location below." params="<strong>mt-static</strong>"></p>
199    </div>
200
201    <div id="static_webpath_config">
202        <fieldset>
203            <mt:setvarblock name="hintfoo">
204                <__trans phrase="This URL path can be in the form of [_1] or simply [_2]" params="<strong>http://example.com/mt-static/</strong>%%<strong>/mt-static</strong>">
205            </mt:setvarblock>
206            <mt:setvarblock name="hintfp">
207                <__trans phrase="This path must be in the form of [_1]" params="<strong>/absolute/path/to/mt-static/</strong>">
208            </mt:setvarblock>
209
210            <mtapp:setting
211                id="set_static_uri_to"
212                label="<__trans phrase="Static web path">"
213                label_class="top-label"
214                show_hint="1"
215                hint="$hintfoo">
216                <input type="text" name="set_static_uri_to" id="set_static_uri_to" class="ti" value="<$mt:var name="set_static_uri_to" default="$static_uri"$>" size="">
217            </mtapp:setting>
218            <br/>
219            <mtapp:setting
220                id="set_static_file_to"
221                label="<__trans phrase="Static file path">"
222                label_class="top-label"
223                show_hint="1"
224                hint="$hintfp">
225                <input type="text" name="set_static_file_to" id="set_static_file_to" class="ti" value="<$mt:var name="set_static_file_to" default="$static_file_path"$>" size="">
226            </mtapp:setting>
227        </fieldset>
228    </div>
229
230    <div class="right"><input type="submit" class="sb" value="<__trans phrase="Begin">" /></div>
231
232</form>
233
234</mt:if>
235
236<mt:include name="../cms/include/chromeless_footer.tmpl">
Note: See TracBrowser for help on using the browser.