12
12
function toggleConfig() {
13
13
var manually = getByID('manually');
14
var retry = getByID('retry');
15
var automatic = getByID('automatic');
14
var retry = getByID('retry-buttons');
15
var automatic = getByID('automatic-buttons');
17
17
if (manually.checked == true) {
18
retry.style.display = 'none';
19
automatic.style.display = 'block';
18
21
retry.style.display = 'block';
19
22
automatic.style.display = 'none';
21
retry.style.display = 'none';
22
automatic.style.display = 'block';
74
74
<mt:unless name="config_created">
76
<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="I will create the mt-config.cgi file manually."></label>
76
<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>
81
<div id="automatic" <mt:if name="FILE_NOT_FOUND">style="display:none;"</mt:if>>
83
<input type="submit" class="sb" value="<__trans phrase="Back">" onclick="go('previous_step')" />
86
<mt:unless name=CONFIG_CREATED>
87
<input name="retry" type="submit" class="sb" value="<__trans phrase="Retry">" onclick="go('retry')" />
80
<div id="retry-buttons" class="action-buttons" <mt:if name="file_not_found">style="display:none;"</mt:if>>
82
<input type="submit" class="sb" value="<__trans phrase="Back">" onclick="go('previous_step')" />
85
<mt:unless name="config_created">
86
<input name="retry" type="submit" class="sb" value="<__trans phrase="Retry">" onclick="go('retry')" />
89
<input name="continue" type="submit" class="sb" value="<__trans phrase="Continue">" onclick="document.location.href='<mt:var name="mt_script">'; return false" />
88
<input name="continue" type="submit" class="sb" value="<__trans phrase="Continue">" onclick="document.location.href='<mt:var name="mt_script">'; return false" />
93
<div id="retry" <mt:unless name="file_not_found">style="display:none;"</mt:unless>>
95
<input type="submit" class="sb" value="<__trans phrase="Back">" onclick="go('retry')" />
98
<input name="retry" type="submit" class="sb" value="<__trans phrase="Continue">" onclick="go('retry')" />
92
<div id="automatic-buttons" class="action-buttons" <mt:unless name="file_not_found">style="display:none;"</mt:unless>>
94
<input type="submit" class="sb" value="<__trans phrase="Back">" onclick="go('retry')" />
97
<input name="retry" type="submit" class="sb" value="<__trans phrase="Continue">" onclick="go('retry')" />