aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorfabrixxm <fabrix.xm@gmail.com>2012-01-02 13:35:23 -0800
committerfabrixxm <fabrix.xm@gmail.com>2012-01-02 13:35:23 -0800
commitbbf491d52b73ff8152ecdf6700842eaa7a8d3bb8 (patch)
treecb213f0657d8e949d2a43156b8080085567fa7d0 /view
parent4b095665791424bd2f5c4c494a2d14ec6c07aeba (diff)
parentc7bfd1e1bae28f2305e2d1d3425052a864a6e251 (diff)
downloadvolse-hubzilla-bbf491d52b73ff8152ecdf6700842eaa7a8d3bb8.tar.gz
volse-hubzilla-bbf491d52b73ff8152ecdf6700842eaa7a8d3bb8.tar.bz2
volse-hubzilla-bbf491d52b73ff8152ecdf6700842eaa7a8d3bb8.zip
Merge pull request #21 from fabrixxm/fixinstall
Fix install procedure
Diffstat (limited to 'view')
-rw-r--r--view/field_select_raw.tpl8
-rw-r--r--view/install.tpl10
-rw-r--r--view/install_checks.tpl24
-rw-r--r--view/install_db.tpl44
-rw-r--r--view/install_settings.tpl25
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>
+