Feature #169
Sorting users/Mass remove feature request with few lines of ready code
| Status: | Drafting | Start: | 2009-08-04 | |
|---|---|---|---|---|
| Priority: | Medium | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | TangoCMS::Interface | |||
| Target version: | - |
Description
Some notes on users module for tree 2.3.X.
Quite a simple thing missing.
There is no confirmation on pressing "Delete Selected" button(i maybe hit it occasionally?): can be added as something like that:
<input type="submit" value="Delete Selected" onclick="return confirm('{L_['Are you sure to remove selected accounts?']}')">
And also, sorting should be present i guess. When i have many users i need to sort them not by id but by name, date registered, etc.
And one more tweak: mass select/deselect by using simple javascript code and checkbox on top of table.
Like this:
function CheckAll(frm,ename)
{
for (var i = 0; i < document.frm.elements.length; i++) {
if(document.frm.elements[i].type =='checkbox') {
if(document.frm.elements[i].name==ename) {
document.frm.elements[i].checked = !(document.frm.elements[i].checked);
}
}
}
}
where frm is a form's name attribute and ename is checkbox's name(which in your case will be user_ids[]).
it could be implemented in checkbox as
<th class="checkcol"><input type=checkbox class="blah_blah" onclick="CheckAll('formname','user_ids[]')"></th>
on top of table.
History
Updated by Alex Cartwright about 1 year ago
- Status changed from New to Drafting
- Target version changed from 12 to 13
Sounds like a good idea to me, I've set it to 2.4.0 since 2.3.0 is already released. The JavaScript would need to move over to using jQuery, but other than that it would be fine.
Updated by Alex Cartwright about 1 year ago
- Estimated time deleted (
1.00)
Updated by Alex Cartwright 11 months ago
- Target version changed from 13 to 16
Updated by Alex Cartwright 8 months ago
- Target version changed from 16 to 20
Updated by Alex Cartwright 8 months ago
- Target version changed from 20 to 2.6.0
Updated by Alex Cartwright 19 days ago
- Target version deleted (
2.6.0)