diff options
author | Fabio Comuni <fabrix.xm@gmail.com> | 2012-01-03 21:14:48 +0100 |
---|---|---|
committer | Fabio Comuni <fabrix.xm@gmail.com> | 2012-01-03 21:14:48 +0100 |
commit | 93563370c96848948d28ed39e13284ebaf7f430a (patch) | |
tree | 701c29133372625f54a098026d8570f191727a24 /view | |
parent | be2fd56aae51ee02b6e40dedd4383e1ebddc752e (diff) | |
parent | 184230e06826117b1d87241e3acdf19935470e8f (diff) | |
download | volse-hubzilla-93563370c96848948d28ed39e13284ebaf7f430a.tar.gz volse-hubzilla-93563370c96848948d28ed39e13284ebaf7f430a.tar.bz2 volse-hubzilla-93563370c96848948d28ed39e13284ebaf7f430a.zip |
Merge remote-tracking branch 'friendica/master'
Diffstat (limited to 'view')
-rw-r--r-- | view/field_select_raw.tpl | 8 | ||||
-rw-r--r-- | view/install.tpl | 10 | ||||
-rw-r--r-- | view/install_checks.tpl | 24 | ||||
-rw-r--r-- | view/install_db.tpl | 44 | ||||
-rw-r--r-- | view/install_settings.tpl | 25 |
5 files changed, 82 insertions, 29 deletions
diff --git a/view/field_select_raw.tpl b/view/field_select_raw.tpl new file mode 100644 index 000000000..765b285d9 --- /dev/null +++ b/view/field_select_raw.tpl @@ -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> diff --git a/view/install.tpl b/view/install.tpl new file mode 100644 index 000000000..b3a5f46ff --- /dev/null +++ b/view/install.tpl @@ -0,0 +1,10 @@ + +<h1>$title</h1> +<h2>$pass</h2> + + +{{ if $status }} +<h3 class="error-message">$status</h3> +{{ endif }} + +$text diff --git a/view/install_checks.tpl b/view/install_checks.tpl new file mode 100644 index 000000000..538bdf0ba --- /dev/null +++ b/view/install_checks.tpl @@ -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> diff --git a/view/install_db.tpl b/view/install_db.tpl index ff4e11ab1..7e2acdca5 100644 --- a/view/install_db.tpl +++ b/view/install_db.tpl @@ -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> - -<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> +{{ 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}} -$tzselect -<div id="install-tz-end" ></div> <input id="install-submit" type="submit" name="submit" value="$submit" /> </form> -<div id="install-end" ></div> diff --git a/view/install_settings.tpl b/view/install_settings.tpl new file mode 100644 index 000000000..05b87f904 --- /dev/null +++ b/view/install_settings.tpl @@ -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> + |