@@ -129,13 +129,20 @@ def form_generator(state: State):
129129 class TestForm0 (FormPage ):
130130 model_config = ConfigDict (title = "Form Title Page 0" )
131131
132- firstnumber : NumberExample = 3
132+ text0 : Annotated [ int , Ge ( 18 ), Le ( 99 )] = 17
133133
134134 form_data_0 = yield TestForm0
135135
136136 class TestForm1 (FormPage ):
137137 model_config = ConfigDict (title = "Form Title Page 1" )
138138
139+ text1 : Annotated [int , Ge (18 ), Le (99 )] = 17
140+
141+ form_data_1 = yield TestForm1
142+
143+ class TestForm2 (FormPage ):
144+ model_config = ConfigDict (title = "Form Title Page 2" )
145+
139146 number : NumberExample = 3
140147 text : Annotated [str , Field (min_length = 3 , max_length = 12 )] = "Default text"
141148 textArea : LongText = "Text area default"
@@ -154,13 +161,6 @@ class TestForm1(FormPage):
154161
155162 person : Person
156163
157- form_data_1 = yield TestForm1
158-
159- class TestForm2 (FormPage ):
160- model_config = ConfigDict (title = "Form Title Page 2" )
161-
162- anothernumber : NumberExample = 3
163-
164164 form_data_2 = yield TestForm2
165165
166166 class TestSubmitForm (SubmitFormPage ):
0 commit comments