Added search form.

This commit is contained in:
retoor 2025-02-08 17:33:02 +01:00
parent d7b943dc8c
commit 49eb76dc8b

View 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"
)