I added the entry to my blog, it looks like this...

This is done with a little bit of javascript.

The view code looks like...


	 <a href="#" onclick="checkAll('permissions_<%= controller_id %>[]'); return false;"\>all&lt;/a>
	 <a href="#" onclick="uncheckAll('permissions_<%= controller_id %>[]'); return false;"\>none&lt;/a>

The java script is...

	function checkAll(name)
	{
		boxes = document.getElementsByName(name)
		for (i = 0; i < boxes.length; i++)
			boxes[i].checked = true ;
	}

	function uncheckAll(name)
	{
		boxes = document.getElementsByName(name)
		for (i = 0; i < boxes.length; i++)
			boxes[i].checked = false ;
	}


mike courtney wrote:
> Jim Morris wrote:
>> I did something like this, which I describe in this blog entry.
>>
>> http://blog.wolfman.com/articles/2006/05/20/role-based-authentication-admin-page
>>
>> It is simple, and I have seen the set all and clear all implemented in 
>> java script,
>> I'll try to dig that up and add it to the blog.
> 
> Thank you for the information Jim. Pls let me know if/when you add it to 
> the blog.
> 
> Cheers.
> 

-- 
Jim Morris, http://blog.wolfman.com