part.userlist.php 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <table id="userlist" class="hascontrols grid" data-groups="<?php p($_['allGroups']);?>">
  2. <thead>
  3. <tr>
  4. <?php if ($_['enableAvatars']): ?>
  5. <th id="headerAvatar" scope="col"></th>
  6. <?php endif; ?>
  7. <th id="headerName" scope="col"><?php p($l->t('Username'))?></th>
  8. <th id="headerDisplayName" scope="col"><?php p($l->t( 'Full name' )); ?></th>
  9. <th id="headerPassword" scope="col"><?php p($l->t( 'Password' )); ?></th>
  10. <th class="mailAddress" scope="col"><?php p($l->t( 'Email' )); ?></th>
  11. <th id="headerGroups" scope="col"><?php p($l->t( 'Groups' )); ?></th>
  12. <?php if(is_array($_['subadmins']) || $_['subadmins']): ?>
  13. <th id="headerSubAdmins" scope="col"><?php p($l->t('Group admin for')); ?></th>
  14. <?php endif;?>
  15. <th id="headerQuota" scope="col"><?php p($l->t('Quota')); ?></th>
  16. <th class="storageLocation" scope="col"><?php p($l->t('Storage location')); ?></th>
  17. <th class="userBackend" scope="col"><?php p($l->t('User backend')); ?></th>
  18. <th class="lastLogin" scope="col"><?php p($l->t('Last login')); ?></th>
  19. <th id="headerRemove">&nbsp;</th>
  20. </tr>
  21. </thead>
  22. <tbody>
  23. <!-- the following <tr> is used as a template for the JS part -->
  24. <tr style="display:none">
  25. <?php if ($_['enableAvatars']): ?>
  26. <td class="avatar"><div class="avatardiv"></div></td>
  27. <?php endif; ?>
  28. <th class="name" scope="row"></th>
  29. <td class="displayName"><span></span> <img class="action"
  30. src="<?php p(image_path('core', 'actions/rename.svg'))?>"
  31. alt="<?php p($l->t("change full name"))?>" title="<?php p($l->t("change full name"))?>"/>
  32. </td>
  33. <td class="password"><span>●●●●●●●</span> <img class="action"
  34. src="<?php print_unescaped(image_path('core', 'actions/rename.svg'))?>"
  35. alt="<?php p($l->t("set new password"))?>" title="<?php p($l->t("set new password"))?>"/>
  36. </td>
  37. <td class="mailAddress"><span></span><div class="loading-small hidden"></div> <img class="action"
  38. src="<?php p(image_path('core', 'actions/rename.svg'))?>"
  39. alt="<?php p($l->t('change email address'))?>" title="<?php p($l->t('change email address'))?>"/>
  40. </td>
  41. <td class="groups"><div class="groupsListContainer multiselect button"
  42. ><span class="title groupsList"></span><span class="icon-triangle-s"></span></div>
  43. </td>
  44. <?php if(is_array($_['subadmins']) || $_['subadmins']): ?>
  45. <td class="subadmins"><div class="groupsListContainer multiselect button"
  46. ><span class="title groupsList"></span><span class="icon-triangle-s"></span></div>
  47. </td>
  48. <?php endif;?>
  49. <td class="quota">
  50. <select class="quota-user" data-inputtitle="<?php p($l->t('Please enter storage quota (ex: "512 MB" or "12 GB")')) ?>">
  51. <option value='default'>
  52. <?php p($l->t('Default'));?>
  53. </option>
  54. <option value='none'>
  55. <?php p($l->t('Unlimited'));?>
  56. </option>
  57. <?php foreach($_['quota_preset'] as $preset):?>
  58. <option value='<?php p($preset);?>'>
  59. <?php p($preset);?>
  60. </option>
  61. <?php endforeach;?>
  62. <option value='other' data-new>
  63. <?php p($l->t('Other'));?> ...
  64. </option>
  65. </select>
  66. </td>
  67. <td class="storageLocation"></td>
  68. <td class="userBackend"></td>
  69. <td class="lastLogin"></td>
  70. <td class="remove"></td>
  71. </tr>
  72. </tbody>
  73. </table>