1
0
Fork 0

Merge remote-tracking branch 'friendica/master'

This commit is contained in:
Fabio Comuni 2012-01-03 21:14:48 +01:00
commit 93563370c9
14 changed files with 569 additions and 229 deletions

View file

@ -0,0 +1,8 @@
<div class='field select'>
<label for='id_$field.0'>$field.1</label>
<select name='$field.0' id='id_$field.0'>
$field.4
</select>
<span class='field_help'>$field.3</span>
</div>

10
view/install.tpl Normal file
View file

@ -0,0 +1,10 @@
<h1>$title</h1>
<h2>$pass</h2>
{{ if $status }}
<h3 class="error-message">$status</h3>
{{ endif }}
$text

24
view/install_checks.tpl Normal file
View file

@ -0,0 +1,24 @@
<h1>$title</h1>
<h2>$pass</h2>
<form action="$baseurl/install" method="POST">
<table>
{{ for $checks as $check }}
<tr><td>$check.title </td><td><span class="icon s22 {{if $check.status}}on{{else}}off{{endif}}"></td><td>{{if $check.required}}(required){{endif}}</td></tr>
{{if $check.help }}
<tr><td colspan="3">$check.help</td></tr>
{{endif}}
{{ endfor }}
</table>
{{ if $phpath }}
<input type="hidden" name="phpath" value="$phpath">
{{ endif }}
{{ if $passed }}
<input type="hidden" name="pass" value="2">
<input type="submit" value="$next">
{{ else }}
<input type="hidden" name="pass" value="1">
<input type="submit" value="$reload">
{{ endif }}
</form>

View file

@ -1,44 +1,30 @@
<h3>$lbl_01</h3>
<h3>$lbl_02</h3>
<h1>$title</h1>
<h2>$pass</h2>
<p>
$lbl_03 $lbl_04 $lbl_05
$info_01<br>
$info_02<br>
$info_03
</p>
{{ if $status }}
<h3 class="error-message">$status</h3>
{{ endif }}
<form id="install-form" action="$baseurl/install" method="post">
<input type="hidden" name="phpath" value="$phpath" />
<input type="hidden" name="pass" value="3" />
<label for="install-dbhost" id="install-dbhost-label">$lbl_06</label>
<input type="text" name="dbhost" id="install-dbhost" value="$dbhost" />
<div id="install-dbhost-end"></div>
{{ inc field_input.tpl with $field=$dbhost }}{{endinc}}
{{ inc field_input.tpl with $field=$dbuser }}{{endinc}}
{{ inc field_input.tpl with $field=$dbpass }}{{endinc}}
{{ inc field_input.tpl with $field=$dbdata }}{{endinc}}
<label for="install-dbuser" id="install-dbuser-label">$lbl_07</label>
<input type="text" name="dbuser" id="install-dbuser" value="$dbuser" />
<div id="install-dbuser-end"></div>
<label for="install-dbpass" id="install-dbpass-label">$lbl_08</label>
<input type="password" name="dbpass" id="install-dbpass" value="$dbpass" />
<div id="install-dbpass-end"></div>
<label for="install-dbdata" id="install-dbdata-label">$lbl_09</label>
<input type="text" name="dbdata" id="install-dbdata" value="$dbdata" />
<div id="install-dbdata-end"></div>
<label for="install-admin" id="install-admin-label">$lbl_11</label>
<input type="text" name="adminmail" id="install-admin" value="$adminmail" />
<div id="install-admin-end"></div>
<div id="install-tz-desc">
$lbl_10
</div>
$tzselect
<div id="install-tz-end" ></div>
<input id="install-submit" type="submit" name="submit" value="$submit" />
</form>
<div id="install-end" ></div>

25
view/install_settings.tpl Normal file
View file

@ -0,0 +1,25 @@
<h1>$title</h1>
<h2>$pass</h2>
{{ if $status }}
<h3 class="error-message">$status</h3>
{{ endif }}
<form id="install-form" action="$baseurl/install" method="post">
<input type="hidden" name="phpath" value="$phpath" />
<input type="hidden" name="dbhost" value="$dbhost" />
<input type="hidden" name="dbuser" value="$dbuser" />
<input type="hidden" name="dbpass" value="$dbpass" />
<input type="hidden" name="dbdata" value="$dbdata" />
<input type="hidden" name="pass" value="4" />
{{ inc field_input.tpl with $field=$adminmail }}{{endinc}}
$timezone
<input id="install-submit" type="submit" name="submit" value="$submit" />
</form>