summaryrefslogtreecommitdiffstats
path: root/web/template
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2016-06-02 08:51:29 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2016-06-08 22:23:57 +0200
commite3670ef1888a3f030452b229e8d48b83bb83b240 (patch)
treea781f46adae963a5b19112e2928e87088394781b /web/template
parent9fec03d65598cf13d0efda6b9361d7b9e0ee7e36 (diff)
downloadaurweb-e3670ef1888a3f030452b229e8d48b83bb83b240.tar.xz
Add a homepage field to accounts
Allow users to add a link to their homepage to their profile. Implements FS#22774. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/template')
-rw-r--r--web/template/account_details.php4
-rw-r--r--web/template/account_edit_form.php5
2 files changed, 9 insertions, 0 deletions
diff --git a/web/template/account_details.php b/web/template/account_details.php
index 59a6a63..0ac85a5 100644
--- a/web/template/account_details.php
+++ b/web/template/account_details.php
@@ -42,6 +42,10 @@
<td><?= htmlspecialchars($row["RealName"], ENT_QUOTES) ?></td>
</tr>
<tr>
+ <th><?= __("Homepage") . ":" ?></th>
+ <td><?= htmlspecialchars($row["Homepage"], ENT_QUOTES) ?></td>
+ </tr>
+ <tr>
<th><?= __("IRC Nick") . ":" ?></th>
<td><?= htmlspecialchars($row["IRCNick"], ENT_QUOTES) ?></td>
</tr>
diff --git a/web/template/account_edit_form.php b/web/template/account_edit_form.php
index b4f0192..6c2b8fb 100644
--- a/web/template/account_edit_form.php
+++ b/web/template/account_edit_form.php
@@ -99,6 +99,11 @@
</p>
<p>
+ <label for="id_homepage"><?= __("Homepage") ?>:</label>
+ <input type="text" size="30" name="HP" id="id_homepage" value="<?= htmlspecialchars($HP,ENT_QUOTES) ?>" />
+ </p>
+
+ <p>
<label for="id_irc"><?= __("IRC Nick") ?>:</label>
<input type="text" size="30" maxlength="32" name="I" id="id_irc" value="<?= htmlspecialchars($I,ENT_QUOTES) ?>" />
</p>