aboutsummaryrefslogtreecommitdiffstats
path: root/view/install_db.tpl
diff options
context:
space:
mode:
authorFabio Comuni <fabio@krik.localdomain>2012-01-02 20:16:28 +0100
committerFabio Comuni <fabio@krik.localdomain>2012-01-02 20:16:28 +0100
commitc7bfd1e1bae28f2305e2d1d3425052a864a6e251 (patch)
treecb213f0657d8e949d2a43156b8080085567fa7d0 /view/install_db.tpl
parent1fbffc76b18e94ecda86452fe16609295976c619 (diff)
downloadvolse-hubzilla-c7bfd1e1bae28f2305e2d1d3425052a864a6e251.tar.gz
volse-hubzilla-c7bfd1e1bae28f2305e2d1d3425052a864a6e251.tar.bz2
volse-hubzilla-c7bfd1e1bae28f2305e2d1d3425052a864a6e251.zip
install: fix install procedure
install procedure as a wizard graphical rappresentation of passed/unpassed system checks db connection test don't try anymore to create the db admin email and timezone are asked in a separate pass fix loading of database.sql, removing comments from phpmyadmin export fix check for .htconfig.php writability ask for php-cli path if not found in PATH install_db.tpl use field_* templates to render the form
Diffstat (limited to 'view/install_db.tpl')
-rw-r--r--view/install_db.tpl44
1 files changed, 15 insertions, 29 deletions
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>