Fossil

Diff
Login

Diff

Differences From Artifact [af6eb3641f]:

To Artifact [0d207d983f]:


489
490
491
492
493
494
495
496

497
498
499
500
501
502
503
504
505
506
507
508
509
510
511

512
513
514
515
516
517
518
489
490
491
492
493
494
495

496
497
498
499
500
501
502
503
504
505
506
507
508
509
510

511
512
513
514
515
516
517
518







-
+














-
+







  if( login_is_special(zLogin) ){
    @ <input type="hidden" name="login" value="%s(zLogin)">
    @ <input type="hidden" name="info" value="">
    @ <input type="hidden" name="pw" value="*">
  }
  @ <script type='text/javascript'>
  @ function fossilUpdatePermissionsList(){
  @   /* updates #currentPermissionsString with current permissions string based on checkboxes */
  @   /* updates #usetupEditCapability with current permissions string based on checkboxes */
  @ try {
  @   var inputs = document.getElementsByTagName('input'),  i, x = 0, e, permsIds = [];
  @   if(inputs && inputs.length){
  @     for( i = 0; i < inputs.length; ++i ){
  @      e = inputs[i];
  @      if(e.name && e.type && ('checkbox' === e.type.toLowerCase()) && 2===e.name.length && 'a'===e.name[0]){
  @       // looks like a permissions checkbox
  @       if(e.checked){
  @         permsIds[x++] = e.name[1];
  @       }
  @      }
  @     }
  @   }
  @  permsIds.sort();
  @  document.getElementById('currentPermissionsString').innerHTML = permsIds.join('');  
  @  document.getElementById('usetupEditCapability').innerHTML = permsIds.join('');  
  @ }catch(e){/*ignore errors*/}
  @ }</script>
  @ <table>
  @ <tr>
  @   <td class="usetupEditLabel">User ID:</td>
  if( uid ){
    @   <td>%d(uid) <input type="hidden" name="id" value="%d(uid)" /></td>
588
589
590
591
592
593
594
595
596
597
598






599
600
601
602
603
604
605
588
589
590
591
592
593
594

595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610







-



+
+
+
+
+
+







  @  <label><input type="checkbox" name="at"%s(oa['t']) onchange="fossilUpdatePermissionsList()" />
  @  Ticket Report%s(B('t'))</label><br />
  @  <label><input type="checkbox" name="ax"%s(oa['x']) onchange="fossilUpdatePermissionsList()" />
  @  Private%s(B('x'))</label><br />
  @  <label><input type="checkbox" name="az"%s(oa['z']) onchange="fossilUpdatePermissionsList()" />
  @  Download Zip%s(B('z'))</label>
  @ </td></tr>
  @ <tr><td colspan='7'>Selected capabilities: <span id="currentPermissionsString">(missing JS?)</span></td></tr>
  @ </table>
  @   </td>
  @ </tr>
  @ <tr>
  @   <td class="usetupEditLabel">Selected Capabilities:</td>
  @   <td>
  @     <span id="usetupEditCapability">(missing JS?)</span>
  @   </td>
  @ </tr>
  if( !login_is_special(zLogin) ){
    @ <tr>
    @   <td align="right">Password:</td>
    if( zPw[0] ){
      /* Obscure the password for all users */
      @   <td><input type="password" name="pw" value="**********" /></td>
    }else{