Add label for application scopes (#4691)
* Add label for application scopes * hint
This commit is contained in:
		
				
					committed by
					
						
						Eugen Rochko
					
				
			
			
				
	
			
			
			
						parent
						
							409051c22c
						
					
				
				
					commit
					b88635202f
				
			@@ -13,9 +13,9 @@
 | 
				
			|||||||
    collection: Doorkeeper.configuration.scopes,
 | 
					    collection: Doorkeeper.configuration.scopes,
 | 
				
			||||||
    wrapper: :with_label,
 | 
					    wrapper: :with_label,
 | 
				
			||||||
    include_blank: false,
 | 
					    include_blank: false,
 | 
				
			||||||
 | 
					    label_method: lambda { |scope| safe_join([scope, content_tag(:span, t("doorkeeper.scopes.#{scope}"), class: 'hint')]) },
 | 
				
			||||||
    selected: f.object.scopes.all,
 | 
					    selected: f.object.scopes.all,
 | 
				
			||||||
    required: false,
 | 
					    required: false,
 | 
				
			||||||
    as: :check_boxes,
 | 
					    as: :check_boxes,
 | 
				
			||||||
    collection_wrapper_tag: 'ul',
 | 
					    collection_wrapper_tag: 'ul',
 | 
				
			||||||
    item_wrapper_tag: 'li'
 | 
					    item_wrapper_tag: 'li'
 | 
				
			||||||
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user