OLD | NEW |
(Empty) | |
| 1 [define title]User Group: [groupname][end] |
| 2 [define category_css]css/ph_list.css[end] |
| 3 [include "../framework/master-header.ezt" "showusergrouptabs"] |
| 4 [include "../framework/js-placeholders.ezt"] |
| 5 |
| 6 <form method="POST" action="edit.do"> |
| 7 <div id="colcontrol"> |
| 8 <div class="list"> |
| 9 [if-any pagination.visible] |
| 10 <div class="pagination"> |
| 11 [if-any pagination.prev_url]<a href="[pagination.prev_url]"><b>&lsaquo
;</b> Prev</a>[end] |
| 12 Members [pagination.start] - [pagination.last] of [pagination.total_co
unt] |
| 13 [if-any pagination.next_url]<a href="[pagination.next_url]">Next <b>&r
saquo;</b></a>[end] |
| 14 </div> |
| 15 [end] |
| 16 <b>User Group: [groupname]</b> |
| 17 [if-any offer_membership_editing] |
| 18 <input type="button" value="Add members" style="font-size:80%; margin-left:
1em" |
| 19 id="add_members_button"> |
| 20 <input type="submit" value="Remove members" style="font-size:80%; margin-le
ft:1em" |
| 21 id="removebtn" name="removebtn" disabled="disabled"> |
| 22 [# TODO(jrobbins): extra confirmation when removing yourself as group owner
.] |
| 23 [end] |
| 24 </div> |
| 25 |
| 26 <table cellspacing="0" cellpadding="2" border="0" class="results striped vt" i
d="resultstable" width="100%"> |
| 27 <tbody> |
| 28 <tr id="headingrow"> |
| 29 [if-any offer_membership_editing] |
| 30 <th style="border-right:0; padding-right:2px"> </th> |
| 31 [end] |
| 32 <th style="white-space:nowrap">Member</th> |
| 33 <th style="white-space:nowrap">Role</th> |
| 34 </tr> |
| 35 |
| 36 [if-any pagination.visible_results] |
| 37 [for pagination.visible_results] |
| 38 <tr> |
| 39 [if-any offer_membership_editing] |
| 40 <td style="padding-right:2px"> |
| 41 <input type="checkbox" name="remove" |
| 42 value="[pagination.visible_results.email]"> |
| 43 </td> |
| 44 [end] |
| 45 <td class="id" style="text-align:left"> |
| 46 [include "../framework/user-link.ezt" pagination.visible_results] |
| 47 </td> |
| 48 <td style="text-align:left" width="90%"> |
| 49 <a href="[pagination.visible_results.profile_url]">[pagination.visib
le_results.role]</a> |
| 50 </td> |
| 51 </tr> |
| 52 [end] |
| 53 [else] |
| 54 <tr><td colspan="40"> |
| 55 This user group has no members. |
| 56 </td></tr> |
| 57 [end] |
| 58 |
| 59 |
| 60 </tbody> |
| 61 </table> |
| 62 </div> |
| 63 |
| 64 [include "../project/people-add-members-form.ezt" "group"] |
| 65 |
| 66 </form> |
| 67 |
| 68 |
| 69 [if-any offer_membership_editing] |
| 70 <script type="text/javascript" nonce="[nonce]"> |
| 71 runOnLoad(function() { |
| 72 function _countChecked(opt_className) { |
| 73 var numChecked = 0; |
| 74 var inputs = document.getElementsByTagName('input'); |
| 75 for (var i = 0; i < inputs.length; i++) { |
| 76 var el = inputs[[]i]; |
| 77 if (el.type == 'checkbox' && el.name == 'remove' && el.checked && |
| 78 (!opt_className || opt_className == el.className)) { |
| 79 numChecked++; |
| 80 } |
| 81 } |
| 82 return numChecked; |
| 83 } |
| 84 |
| 85 function _enableRemoveButton() { |
| 86 var removeButton = document.getElementById('removebtn'); |
| 87 if (_countChecked() > 0) { |
| 88 removeButton.disabled = false; |
| 89 } else { |
| 90 removeButton.disabled = true; |
| 91 } |
| 92 } |
| 93 |
| 94 setInterval(_enableRemoveButton, 700); |
| 95 |
| 96 $("add_members_button").addEventListener("click", _openAddMembersForm); |
| 97 }); |
| 98 </script> |
| 99 [end] |
| 100 |
| 101 |
| 102 [include "../framework/footer-script.ezt"] |
| 103 [include "../framework/master-footer.ezt"] |
OLD | NEW |