root/branches/release-41/tmpl/wizard/start.tmpl @ 2704

Revision 2704, 8.4 kB (checked in by bsmith, 17 months ago)

bugzid:80449 - fixing IE javascript issues in Wizard

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