mirror of
				https://github.com/searxng/searxng.git
				synced 2025-10-31 10:37:06 -04:00 
			
		
		
		
	[mod] checkbox macro
This commit is contained in:
		
							parent
							
								
									88aee611f7
								
							
						
					
					
						commit
						359dfc5ebb
					
				| @ -59,3 +59,11 @@ | ||||
|     </div> | ||||
|     {% endif %} | ||||
| {%- endmacro %} | ||||
| 
 | ||||
| {% macro checkbox_toggle(id, blocked) -%} | ||||
|     <div class="checkbox"> | ||||
|         <input class="hidden" type="checkbox" id="{{ id }}" name="{{ id }}"{% if blocked %} checked="checked"{% endif %} /> | ||||
|         <label class="btn btn-success label_hide_if_checked" for="{{ id }}">{{ _('Block') }}</label> | ||||
|         <label class="btn btn-danger label_hide_if_not_checked" for="{{ id }}">{{ _('Allow') }}</label> | ||||
|     </div> | ||||
| {%- endmacro %} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user