12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <!--
-
- User edit dialog
- Copyright (C) 2010-2015 Ian Moore (imoore76 at yahoo dot com)
-
- $Id: userEdit.html 595 2015-04-17 09:50:36Z imoore76 $
- -->
- <div id='vboxUserEdit'>
- <form>
- <table class='vboxVertical'>
- <tr class='addUser'>
- <th><span class='translate'>Username</span>:</th>
- <td><input type='text' name='username' class='vboxText' /></td>
- </tr>
- <tr class='editUser'>
- <th><span class='translate'>Username</span>:</th>
- <td><span id='vboxEditUserUsername'></span></td>
- </tr>
-
- <tr class='addUser editUser'>
- <th><span class='translate'>Admin User</span>:</th>
- <td><label><input type='checkbox' name='admin' class='vboxCheckbox' /> <span class='translate'>Can administer users</span></label></td>
- </tr>
- <tr class='changePassword'>
- <th><span class='translate'>Old Password</span>:</th>
- <td><input type='password' name='opass' class='vboxText' /></td>
- </tr>
- <tr class='editUser'>
- <td colspan='2' style='text-align: center; border-top: 1px solid #000'><span style='font-weight: bold' class='translate'>Change Password</span></td>
- </tr>
- <tr class='changePassword addUser editUser'>
- <th><span class='translate'>New Password</span>:</th>
- <td><input type='password' name='npass1' class='vboxText' /></td>
- </tr>
- <tr class='changePassword addUser editUser'>
- <th><span class='translate'>Retype</span>:</th>
- <td><input type='password' name='npass2' class='vboxText' /></td>
- </tr>
- <tr id='vboxUserBtnRow' style='display:none;padding:0px;margin:0px;border:0px'>
- <th style='padding:0px;margin:0px;border:0px'></th>
- <td style='padding:0px;margin:0px;border:0px'><input type='submit' value='' style='border:0px;margin:0px;display:inline;background:#fff;text:#fff;padding:0px;height:1px;' /></td>
- </tr>
-
- </table>
- </form>
- </div>
- <script type='text/javascript'>
-
- $('#vboxUserEdit').find(".translate").html(function(i,h){return trans(h,'UIUsers');}).removeClass('translate');
-
- $('#vboxUserEdit').on('setMode',function(e,mode) {
- $('#vboxUserEdit').find('table').first().find('tr:not(.'+mode+')').css('display','none');
- });
-
- if($.browser.msie || $.browser.webkit) $('#vboxUserBtnRow').css({'display':''});
-
- $('#vboxUserEdit form').on("submit",function(e) {
- $('#vboxUserEdit').parent().find('span:contains("'+trans('OK','QIMessageBox')+'")').trigger('click');
- e.stopPropagation();
- e.preventDefault();
- return false;
- });
-
- </script>
|