Added search form.
This commit is contained in:
		
							parent
							
								
									d7b943dc8c
								
							
						
					
					
						commit
						49eb76dc8b
					
				
							
								
								
									
										19
									
								
								src/snek/form/search_user.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								src/snek/form/search_user.py
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,19 @@ | |||||||
|  | from snek.system.form import Form, FormButtonElement, FormInputElement, HTMLElement | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | class SearchUserForm(Form): | ||||||
|  | 
 | ||||||
|  |     title = HTMLElement(tag="h1", text="Search user") | ||||||
|  | 
 | ||||||
|  |     username = FormInputElement( | ||||||
|  |         name="username", | ||||||
|  |         required=True, | ||||||
|  |         min_length=1, | ||||||
|  |         max_length=128, | ||||||
|  |         place_holder="Username", | ||||||
|  |     ) | ||||||
|  | 
 | ||||||
|  |     action = FormButtonElement( | ||||||
|  |         name="action", value="submit", text="Search", type="button" | ||||||
|  |     ) | ||||||
|  | 
 | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user