summaryrefslogtreecommitdiff
path: root/htroot/ConfigAccounts_p.html
diff options
context:
space:
mode:
authororbiter <orbiter@6c8d7289-2bf4-0310-a012-ef5d649a1542>2008-05-15 20:13:43 +0000
committerorbiter <orbiter@6c8d7289-2bf4-0310-a012-ef5d649a1542>2008-05-15 20:13:43 +0000
commit30356ec9802e7560cfdad72f09a8edbc7070b820 (patch)
tree4cfee946c79ba9bd44e8c3e15f2d401415c87251 /htroot/ConfigAccounts_p.html
parent3bd1db776ad9ef596e51986a278d6ae3858f3dc0 (diff)
The basic configuration is now very very easy! New users will not be confronted with account settings.
- moved account definition from Basic Configuration into the User_p servlet which was renamed to ConficAccounts_p - moved and renamed submenu entries on Status page. git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4805 6c8d7289-2bf4-0310-a012-ef5d649a1542
Diffstat (limited to 'htroot/ConfigAccounts_p.html')
-rw-r--r--htroot/ConfigAccounts_p.html113
1 files changed, 113 insertions, 0 deletions
diff --git a/htroot/ConfigAccounts_p.html b/htroot/ConfigAccounts_p.html
new file mode 100644
index 000000000..1e93e51e3
--- /dev/null
+++ b/htroot/ConfigAccounts_p.html
@@ -0,0 +1,113 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>YaCy '#[clientname]#': User Page</title>
+ #%env/templates/metas.template%#
+ </head>
+<body>
+ #%env/templates/header.template%#
+ #%env/templates/submenuConfig.template%#
+ <h2>User Administration</h2>
+
+ <!-- Page 1: Results -->
+ #(text)#
+ ::
+ <p>User created: #[username]#</p>
+ ::
+ <p>User changed: #[username]#</p>
+ #(/text)#
+ #(error)#
+ ::
+ <p class="error">Generic error.</p>
+ ::
+ <p class="error">Passwords do not match.</p>
+ ::
+ <p class="error">Username too short. Username must be >= 4 Characters.</p>
+ #(/error)#
+
+ <fieldset><legend>Admin Account</legend>
+ <form action="ConfigAccounts_p.html" method="post">
+ <fieldset>
+ <legend>
+ <input type="radio" name="access" id="access" value="localhost"#(localhost.checked)#:: checked="checked"#(/localhost.checked)# />
+ <label for="localhost">Access from localhost without account</label>
+ </legend>
+ Access to your peer from your own computer (localhost access) is granted. No need to configure an administration account.
+ </fieldset>
+
+ <fieldset>
+ <legend>
+ <input type="radio" name="access" id="access" value="account"#(account.checked)#:: checked="checked"#(/account.checked)# />
+ <label for="account">Access only with qualified account</label>
+ </legend>
+ You need this only if you want a remote access to your peer.
+ <dl class="userConfig">
+ <dt><label for="adminuser">Peer User:</label></dt>
+ <dd><input type="text" name="adminuser" id="adminuser" value="#[defaultUser]#" size="16" maxlength="32" /></dd>
+ <dt><label for="adminpw1">New Peer Password:</label></dt>
+ <dd><input type="password" name="adminpw1" id="adminpw1" value="" size="16" maxlength="32" /></dd>
+ <dt><label for="adminpw2">Repeat Peer Password:</label></dt>
+ <dd><input type="password" name="adminpw2" id="adminpw2" value="" size="16" maxlength="32" /></dd>
+ </dl>
+ </fieldset>
+ <input type="submit" name="setAdmin" value="Define Administrator" />
+ </form>
+ </fieldset>
+
+ <fieldset><legend>User Accounts</legend>
+ <form action="User_p.html">
+ <fieldset><legend>Select user</legend>
+ <dl>
+ <dt><label for="user">Select user</label>:</dt>
+ <dd>
+ <select name="user" id="user">
+ <option value="newuser">New user</option>#{users}#
+ <option>#[user]#</option>#{/users}#
+ </select>
+ </dd>
+ <dt>&nbsp;</dt>
+ <dd>
+ <input type="submit" name="change_user" value="Edit User" />
+ <input type="submit" name="delete_user" value="Delete User" />
+ </dd>
+ </dl>
+ </fieldset>
+ </form>
+
+ <form action="ConfigAccounts_p.html" method="post">
+ <fieldset><legend>Edit current user: #[username]#</legend>
+ <!-- Hidden(text for debugging): <input type="text" name="current_user" value="#[current_user]#" readonly> -->
+ <input type="hidden" name="current_user" value="#[current_user]#" />
+ <dl>
+ <dt><label for="username">Username</label>:</dt>
+ <dd><input type="text" id="username" name="username" value="#[username]#" /></dd>
+ <dt><label for="password">Password</label>:</dt>
+ <dd><input type="password" id="password" name="password" /></dd>
+ <dt><label for="password2">Repeat password</label>:</dt>
+ <dd><input type="password" id="password2" name="password2" /></dd>
+ <dt><label for="firstname">First name</label>:</dt>
+ <dd><input type="text" id="firstname" name="firstname" value="#[firstname]#" /></dd>
+ <dt><label for="lastname">Last name</label>:</dt>
+ <dd><input type="text" id="lastname" name="lastname" value="#[lastname]#" /></dd>
+ <dt><label for="address">Address</label>:</dt>
+ <dd><input type="text" id="address" name="address" value="#[address]#" /></dd>
+ <dt>Rights:</dt>
+ <dd>
+ #{rights}#
+ <input type="checkbox" id="#[name]#" name="#[name]#"#(set)#:: checked="checked"#(/set)# /><label for="#[name]#">#[friendlyName]# right</label><br />
+ #{/rights}#
+ </dd>
+ <dt><label for="tlimit">Timelimit</label>:</dt>
+ <dd><input type="text" id="tlimit" name="timelimit" value="#[timelimit]#" /></dd>
+ <dt><label for="tused">Time used</label>:</dt>
+ <dd><input type="text" id="tused" name="timeused" value="#[timeused]#" /></dd>
+ <dt>&nbsp;</dt>
+ <dd><input type="submit" name="change" value="Save User" /></dd>
+ </dl>
+ </fieldset>
+ </form>
+ </fieldset>
+
+#%env/templates/footer.template%#
+</body>
+</html>