From 35fb3c005fa4870eaa22c2271c0403ba05484c28 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Tue, 22 Jul 2025 16:29:10 +0200 Subject: [PATCH] add form --- content/docs/form/_index.md | 9 --------- 1 file changed, 9 deletions(-) diff --git a/content/docs/form/_index.md b/content/docs/form/_index.md index 7e0621c..7ae565c 100644 --- a/content/docs/form/_index.md +++ b/content/docs/form/_index.md @@ -25,21 +25,12 @@ type Person struct { ```golang myForm := form.NewForm( form.NewFieldText("Name"). - WithOptions( - form.NewOption("label", "Person"), - form.NewOption("required", true), - ). WithConstraints( validation.NewNotBlank(), ), form.NewFieldNumber("Age"). - WithOptions( - form.NewOption("label", "Age"), - form.NewOption("required", true), - ). WithConstraints( validation.NewNotBlank(), - validation.New(), validation.NewRange().WithMin(18), ), ).End()