Skip to content

Commit 4acec46

Browse files
committed
more main.py fixes
1 parent 9dd5fb3 commit 4acec46

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

backend/main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def form_generator(state: State):
118118
class TestForm(FormPage):
119119
model_config = ConfigDict(title="Form Title")
120120

121-
number: NumberExample = 1
121+
number: NumberExample = 3
122122
text: Annotated[str, Field(min_length=3, max_length=12)] = "Default text"
123123
textArea: LongText = "Default text area"
124124
divider: Divider
@@ -129,7 +129,8 @@ class TestForm(FormPage):
129129
# When there are <= 3 choices a radio group will be rendered
130130
radio: RadioChoices = "3"
131131
checkbox: bool = True
132-
multicheckbox: choice_list(MultiCheckBoxChoices) = "1"
132+
# When there are <= 5 choices in a list a set of checkboxes are rendered
133+
multicheckbox: choice_list(MultiCheckBoxChoices) = ["1", "2"]
133134
list: choice_list(ListChoices) = [0, 1]
134135

135136
form_data_1 = yield TestForm

0 commit comments

Comments
 (0)