root/branches/release-29/tmpl/wizard/start.tmpl @ 1309

Revision 1309, 7.9 kB (checked in by ddavis, 23 months ago)

standarize js comment tag escape. BugzID:58265

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 #C60;*/
75/*            color: #C60;*/
76/*            background: #feffb4;*/
77            border: 1px solid #cfdde5;
78/*            color: #666;*/
79            background: #fff;
80            padding: 10px;
81            margin-bottom: 1em;
82        }
83        .no-static-path h3 {
84            margin-top: 0;
85        }
86        #footer {
87            color: #999;
88            font-size: 85%;
89            text-align: center;
90        }
91        #footer a {
92            color: #999;
93        }
94        label {
95            font-weight: bold;
96        }
97        .hint {
98            color: #666;
99            font-size: 85%;
100        }
101        .msg {
102            margin: 0 0 10px 0;
103            padding: 16px 10px 16px 46px;
104        }
105        .msg-error {
106            background-color: #FF9;
107        }
108        </style>
109
110<script type="text/javascript">
111/* <![CDATA[ */
112function getByID(n, d) {
113    if (!d) d = document;
114    if (d.getElementById)
115        return d.getElementById(n);
116    else if (d.all)
117        return d.all[n];
118}
119
120function hide(id, d) {
121    var el = getByID(id, d);
122    if (!el) return;
123    el.style.display = 'none';
124}
125/* ]]> */
126</script>
127    </mt:setvarblock>
128<mt:else>
129<mt:setvarblock name="js_include" append="1">
130<style type="text/css">
131.msg {
132    margin: 0 0 10px 0;
133    padding: 16px 10px 16px 10px;
134}
135.msg-error {
136    background-color: #FF9;
137}
138#container  div.no-static-path,
139#container #static_webpath_config {
140    display: none;
141}
142#container.bad-static-path div.no-static-path,
143#container.bad-static-path #static_webpath_config {
144    display: block;
145}
146</style>
147<script type="text/javascript">
148/* <![CDATA[ */
149function js_check() {
150    if (! openManual ) {
151        // mt.js not loading properly; static path incorrect
152        var c = getByID("container");
153        c.className = "bad-static-path";
154    }
155}
156window.onload = js_check;
157/* ]]> */
158</script>
159</mt:setvarblock>
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
240    <div class="right"><input type="submit" class="sb" value="<__trans phrase="Begin">" /></div>
241
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.