File: complete.tmpl

package info (click to toggle)
movabletype-opensource 4.2.3-1%2Blenny3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 21,268 kB
  • ctags: 15,862
  • sloc: perl: 178,892; php: 26,178; sh: 161; makefile: 82
file content (103 lines) | stat: -rw-r--r-- 4,493 bytes parent folder | download
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
<mt:setvarblock name="page_title"><__trans phrase="Configuration File"></mt:setvarblock>
<mt:setvar name="complete" value="1">
<mt:include name="../cms/include/chromeless_header.tmpl">

<script type="text/javascript">
/* <![CDATA[ */
function go(mode) {
    var f = document.forms[0];
    f['__mode'].value = mode;
}

function toggleConfig() {
    var manually = getByID('manually');
    var retry = getByID('retry-buttons');
    var automatic = getByID('automatic-buttons');
    if (manually) {
        if (manually.checked == true) {
            retry.style.display = 'none';
            automatic.style.display = 'block';
        } else {
            retry.style.display = 'block';
            automatic.style.display = 'none';
        }
    }
}
/* ]]> */
</script>

<form method="post">
<input type="hidden" name="__mode" value="" />
<input type="hidden" name="step" value="seed" />
<input type="hidden" name="config" value="<mt:var name="config" escape="html">" />
<input type="hidden" name="set_static_uri_to" id="set_static_uri_to" value="<mt:var name=static_uri escape="html">">

<mt:if name="file_not_found">
    <mtapp:statusmsg
        id="file_not_found"
        class="error">
        <__trans phrase="The [_1] configuration file can't be located." params="<mt:var name=MT_PRODUCT_NAME>">
    </mtapp:statusmsg>
    <p><em><__trans phrase="Please use the configuration text below to create a file named 'mt-config.cgi' in the root directory of [_1] (the same directory in which mt.cgi is found)." params="<mt:var name=MT_PRODUCT_NAME>"></em></p>
<mt:else>
    <mt:unless name="config_created">
        <mtapp:statusmsg
            id="config_error"
            class="error">
            <__trans phrase="The wizard was unable to save the [_1] configuration file." params="<mt:var name=MT_PRODUCT_NAME>">
        </mtapp:statusmsg>

        <p><em><__trans phrase="Confirm your [_1] home directory (the directory that contains mt.cgi) is writable by your web server and then click 'Retry'." params="<mt:var name=MT_PRODUCT_NAME>"></em></p>
    <mt:else>
        <mtapp:statusmsg
            id="config_success"
            class="success">
            <__trans phrase="Congratulations! You've successfully configured [_1]." params="<mt:var name=MT_PRODUCT_NAME>">
        </mtapp:statusmsg>

        <p><__trans phrase="Your configuration settings have been written to the following file:"></p>
        <div class="mt-config-file-path">
            <mt:var name="config_file">
        </div>
        <p><__trans phrase="To reconfigure the settings, click the 'Back' button below."></p>
    </mt:unless>
</mt:if>

<mt:unless name="config_created">
<p id="config_settings_toggle"><a href="javascript:void(0)" onclick="showByID('config_settings'); hideByID('config_settings_toggle')"><__trans phrase="Show the mt-config.cgi file generated by the wizard"></a></p>
</mt:unless>

<p id="config_settings" style="display: none;">
    <textarea style="width: 100%; height: 300px; font-family: monospace" onclick="this.select()"><mt:include name="mt-config.tmpl"></textarea>
</p>

<mt:unless name="config_created">
<p>
    <input id="manually" class="cb" type="checkbox" name="manually" value="1" onclick="toggleConfig()" <mt:if name="manually">checked="checked"</mt:if>> <label for="manually"><__trans phrase="The mt-config.cgi file has been created manually."></label>
</p>
</mt:unless>

<div id="retry-buttons" class="action-buttons" <mt:if name="file_not_found">style="display:none;"</mt:if>>
    <div class="left">
        <input type="submit" class="sb" value="<__trans phrase="Back">" onclick="go('previous_step')" />
    </div>
    <div class="right">
<mt:unless name="config_created">
        <input name="retry" type="submit" class="sb" value="<__trans phrase="Retry">" onclick="go('retry')" />
<mt:else>
        <input name="continue" type="submit" class="sb" value="<__trans phrase="Continue">" onclick="document.location.href='<mt:var name="mt_script">'; return false" />
</mt:unless>
    </div>
</div>
<div id="automatic-buttons" class="action-buttons" <mt:unless name="file_not_found">style="display:none;"</mt:unless>>
    <div class="left">
        <input type="submit" class="sb" value="<__trans phrase="Back">" onclick="go('retry')" />
    </div>
    <div class="right">
        <input name="retry" type="submit" class="sb" value="<__trans phrase="Continue">" onclick="go('retry')" />
    </div>
</div>

</form>

<mt:include name="../cms/include/chromeless_footer.tmpl">