Index: trunk/phase3/includes/SpecialUserrights.php |
— | — | @@ -158,17 +158,37 @@ |
159 | 159 | Xml::openElement( 'fieldset' ) . |
160 | 160 | Xml::element( 'legend', array(), wfMsg( 'userrights-editusergroup' ) ) . |
161 | 161 | $wgOut->parse( wfMsg( 'editinguser', $username ) ) . |
162 | | - "<table border='0' align='center'> |
| 162 | + "<table border='0'> |
163 | 163 | <tr> |
164 | | - <td>" . HTMLSelectGroups( 'member', $this->mName.'-groupsmember', $groups, true, 6 ) . "</td> |
165 | | - <td align='right'>" . HTMLSelectGroups( 'available', $this->mName.'-groupsavailable', $groups, true, 6, true) . "</td> |
166 | | - </tr><tr> |
167 | | - <td>" . $wgOut->parse( wfMsg( 'userrights-reason' ) ) . "</td> |
168 | | - <td align='right'>" . Xml::input( 'user-reason', 30 ) . "</td> |
| 164 | + <td></td> |
| 165 | + <td> |
| 166 | + <table width='400'> |
| 167 | + <tr> |
| 168 | + <td width='50%'>" . HTMLSelectGroups( 'member', $this->mName.'-groupsmember', $groups, true, 6 ) . "</td> |
| 169 | + <td width='50%'>" . HTMLSelectGroups( 'available', $this->mName.'-groupsavailable', $groups, true, 6, true) . "</td> |
| 170 | + </tr> |
| 171 | + </table> |
169 | 172 | </tr> |
170 | | - </table> \n" . |
171 | | - $wgOut->parse( wfMsg('userrights-groupshelp') ) . |
172 | | - Xml::submitButton( wfMsg( 'saveusergroups' ), array( 'name' => 'saveusergroups' ) ) . |
| 173 | + <tr> |
| 174 | + <td colspan='2'>" . |
| 175 | + $wgOut->parse( wfMsg('userrights-groupshelp') ) . |
| 176 | + "</td> |
| 177 | + </tr> |
| 178 | + <tr> |
| 179 | + <td>" . |
| 180 | + Xml::label( wfMsg( 'userrights-reason' ), 'wpReason' ) . |
| 181 | + "</td> |
| 182 | + <td>" . |
| 183 | + Xml::input( 'user-reason', 60, false, array( 'id' => 'wpReason' ) ) . |
| 184 | + "</td> |
| 185 | + </tr> |
| 186 | + <tr> |
| 187 | + <td></td> |
| 188 | + <td>" . |
| 189 | + Xml::submitButton( wfMsg( 'saveusergroups' ), array( 'name' => 'saveusergroups' ) ) . |
| 190 | + "</td> |
| 191 | + </tr> |
| 192 | + </table>\n" . |
173 | 193 | Xml::closeElement( 'fieldset' ) . |
174 | 194 | Xml::closeElement( 'form' ) . "\n" |
175 | 195 | ); |
Index: trunk/phase3/includes/HTMLForm.php |
— | — | @@ -123,6 +123,7 @@ |
124 | 124 | function HTMLSelectGroups($selectname, $selectmsg, $selected=array(), $multiple=false, $size=6, $reverse=false) { |
125 | 125 | $groups = User::getAllGroups(); |
126 | 126 | $out = htmlspecialchars( wfMsg( $selectmsg ) ); |
| 127 | + $out .= "<br />"; |
127 | 128 | |
128 | 129 | if( $multiple ) { |
129 | 130 | $attribs = array( |
— | — | @@ -132,6 +133,7 @@ |
133 | 134 | } else { |
134 | 135 | $attribs = array( 'name' => $selectname ); |
135 | 136 | } |
| 137 | + $attribs['style'] = 'width: 100%'; |
136 | 138 | $out .= wfElement( 'select', $attribs, null ); |
137 | 139 | |
138 | 140 | foreach( $groups as $group ) { |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -1265,7 +1265,7 @@ |
1266 | 1266 | 'userrights-groupsavailable' => 'Available groups:', |
1267 | 1267 | 'userrights-groupshelp' => 'Select groups you want the user to be removed from or added to. |
1268 | 1268 | Unselected groups will not be changed. You can deselect a group with CTRL + Left Click', |
1269 | | -'userrights-reason' => 'Reason:', |
| 1269 | +'userrights-reason' => 'Reason for change:', |
1270 | 1270 | |
1271 | 1271 | # Groups |
1272 | 1272 | 'group' => 'Group:', |