cryptonas-branches/pythonrewrite/plugins/user_manager/user_list.cs
lars 1dc0da0382 unittests added to some plugins
added "name" tag to all form elements
2006-10-26 12:25:12 +00:00

80 lines
3 KiB
C#

<?cs # $Id$ ?>
<style type="text/css">
td.left_column {
text-align:right;
padding-left:30px;
padding-right:5px;
}
</style>
<h1><?cs var:html_escape(Lang.Plugins.user_manager.Title.UserManager) ?></h1>
<h2><?cs var:html_escape(Lang.Plugins.user_manager.Title.AddUser) ?></h2>
<p>
<?cs call:print_form_header("add_user", "plugins/user_manager") ?>
<table>
<tr><td class="left_column">
<label for="new_user"><?cs var:html_escape(Lang.Plugins.user_manager.Text.NewUser) ?>:</label></td>
<td><input id="new_user" type="text" name="user" size="12" /></td>
<td></td></tr>
<tr><td class="left_column">
<label for="new_pw"><?cs var:html_escape(Lang.Text.EnterNewPassword) ?>:</label></td>
<td><input id="new_pw" type="password" name="new_pw" size="12" /></td>
<td></td></tr>
<tr><td class="left_column">
<label for="new_pw2"><?cs var:html_escape(Lang.Text.EnterSamePassword) ?>:</label></td>
<td><input id="new_pw2" type="password" name="new_pw2" size="12" /></td>
<td>
<input type="hidden" name="store" value="add_user" />
<button type="submit"><?cs var:html_escape(Lang.Plugins.user_manager.Button.AddUser) ?></button></td></tr>
</table>
</form>
</p>
<h2><?cs var:html_escape(Lang.Plugins.user_manager.Title.ChangePassword) ?></h2>
<p>
<?cs call:print_form_header("change_password", "plugins/user_manager") ?>
<table>
<tr><td class="left_column">
<label for="chpw_user"><?cs var:html_escape(Lang.Plugins.user_manager.Text.ChangePasswordUser) ?>:</label></td>
<td style="text-align:left"><select id="user" name="user" size="0">
<?cs each:x=Data.Plugins.user_manager.Users ?>
<option><?cs var:html_escape(x) ?></option>
<?cs /each ?></select></td>
<td></td></tr>
<tr><td class="left_column">
<label for="new_pw"><?cs var:html_escape(Lang.Text.EnterNewPassword) ?>:</label></td>
<td><input id="new_pw" type="password" name="new_pw" size="12" /></td>
<td></td></tr>
<tr><td class="left_column">
<label for="new_pw2"><?cs var:html_escape(Lang.Text.EnterSamePassword) ?>:</label></td>
<td><input id="new_pw2" type="password" name="new_pw2" size="12" /></td>
<td>
<input type="hidden" name="store" value="change_password" />
<button type="submit"><?cs var:html_escape(Lang.Plugins.user_manager.Button.ChangePassword) ?></button></td></tr>
</table>
</form>
</p>
<?cs if:subcount(Data.Plugins.user_manager.Users) > 1 ?>
<h2><?cs var:html_escape(Lang.Plugins.user_manager.Title.DelUser) ?></h2>
<p>
<table><tr><td class="left_column">
<?cs call:print_form_header("del_user", "plugins/user_manager") ?>
<label for="user"><?cs var:html_escape(Lang.Plugins.user_manager.Text.DelUser) ?>: </label><select id="user" name="user" size="0">
<?cs each:x=Data.Plugins.user_manager.Users ?><?cs if:x != "admin" ?>
<option><?cs var:html_escape(x) ?></option>
<?cs /if ?><?cs /each ?>
</select>
<input type="hidden" name="store" value="del_user" />
<button type="submit"><?cs var:html_escape(Lang.Plugins.user_manager.Button.DelUser) ?></button>
</form></td></tr></table>
</p>
<?cs /if ?>