| 
									
										
										
										
											2012-01-12 06:13:41 +00:00
										 |  |  | module Admin::AppAuthHelper | 
					
						
							|  |  |  |   def on_off_switch(attribute,attribute_type) | 
					
						
							|  |  |  |     link_to t(:enable), eval("admin_#{attribute_type}_path(attribute, :authenticity_token => form_authenticity_token, :#{attribute_type} => {:disabled => true})"), :remote => true, :method => :put, :id => "disable_#{attribute.id}", :style => "display:#{attribute.is_disabled? ? 'none' : ''}", :class => 'switch'  | 
					
						
							|  |  |  |     link_to t(:disable), eval("admin_#{attribute_type}_path(attribute, :authenticity_token => form_authenticity_token, :#{attribute_type} => {:disabled => false})"), :remote => true, :method => :put, :id => "enable_#{attribute.id}", :style => "display:#{attribute.is_disabled? ? '' : 'none'}", :class => 'switch' | 
					
						
							|  |  |  |   end | 
					
						
							| 
									
										
										
										
											2012-02-15 10:20:44 +00:00
										 |  |  |    | 
					
						
							|  |  |  |   def if_permitted_to(user,role) | 
					
						
							|  |  |  |      | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  |    | 
					
						
							| 
									
										
										
										
											2012-01-12 06:13:41 +00:00
										 |  |  | end |