htman/templates/manage_users.html

61 lines
2.1 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html xml:lang="de" lang="de"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:py="http://genshi.edgewall.org/">
<xi:include href="layout.html" />
<head/>
<body>
<h2>Manage user access for <i>${htname}</i></h2>
<div py:if="error" class="error">${error}</div>
<h3>Add user</h3>
<form name="add-passwd" action="" method="POST">
<label for="username_add">User name:</label>
<input type="text" size="20" name="username" id="username_add" />
<br/>
<label for="password_add">Password:</label>
<input type="text" size="20" name="password" id="password_add" />
<input type="hidden" name="action" value="new" />
<input type="hidden" name="htname" value="${htname}"/>
<input type="submit" name="submit" value="Add user" />
</form>
<py:if test="usernames">
<hr/>
<h3>Change password</h3>
<form name="update-passwd" action="" method="POST">
<label for="username_update">User name:</label>
<select name="username" id="username_update" size="1">
<option py:for="username in usernames">${username}</option>
</select>
<br/>
<label for="password_update">New password:</label>
<input type="text" size="20" name="password" id="password_update" />
<input type="hidden" name="action" value="update" />
<input type="hidden" name="htname" value="${htname}"/>
<input type="submit" name="submit" value="Change password" />
</form>
<hr/>
<h3>Delete user</h3>
<form name="del-passwd" action="" method="POST">
<label for="username_del">User name:</label>
<select name="username" id="username_del" size="1">
<option py:for="username in usernames">${username}</option>
</select>
<input type="hidden" name="action" value="del" />
<input type="hidden" name="htname" value="${htname}"/>
<input type="submit" name="submit" value="Delete user" />
</form>
</py:if>
</body>
</html>