cryptonas/plugins/user_manager/user_list.cs
lars fdff598a29 moved message handling back to each plugin
adapted plugin interface specification
replaced some more transparent png files with gif
added "Get help" links to all plugins
2006-11-15 11:46:32 +00:00

76 lines
3.1 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>
<?cs call:handle_messages() ?>
<h2><?cs var:html_escape(Lang.Plugins.user_manager.Title.AddUser) ?></h2>
<?cs call:print_form_header("add_user", "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>
<h2><?cs var:html_escape(Lang.Plugins.user_manager.Title.ChangePassword) ?></h2>
<?cs call:print_form_header("change_password", "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="ch_pw"><?cs var:html_escape(Lang.Text.EnterNewPassword) ?>:</label></td>
<td><input id="ch_pw" type="password" name="new_pw" size="12" /></td>
<td></td></tr>
<tr><td class="left_column">
<label for="ch_pw2"><?cs var:html_escape(Lang.Text.EnterSamePassword) ?>:</label></td>
<td><input id="ch_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>
<?cs if:subcount(Data.Plugins.user_manager.Users) > 1 ?>
<h2><?cs var:html_escape(Lang.Plugins.user_manager.Title.DelUser) ?></h2>
<table><tr><td class="left_column">
<?cs call:print_form_header("del_user", "user_manager") ?>
<label for="user2del"><?cs var:html_escape(Lang.Plugins.user_manager.Text.DelUser) ?>: </label><select id="user2del" 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>
<?cs /if ?>
<?cs call:help_link("CryptoBoxUserConfiguration") ?>