Skip to content

Commit fd44ac0

Browse files
authored
Merge pull request #75 from admin-golang/infinity-scrolling-changes
main: consolidates form fields
2 parents 4420d85 + c231839 commit fd44ac0

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

examples/infinity-scrolling/main.go

+5-10
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,22 @@ func NewSubscribeFormPage() (admin.Pager, error) {
2323
Type: icon.Email,
2424
},
2525
IsDefault: true,
26-
ID: "Subscribe",
27-
URL: "/subscribe",
26+
ID: "Home",
27+
URL: "/",
2828
Type: admin.SideFormPage,
2929
},
3030
Form: admin.Form{
31-
ID: "subscribe",
31+
ID: "Text",
3232
Fields: admin.Fields{
3333
admin.Field{
34-
ID: "email",
34+
ID: "Text",
3535
Type: admin.InputText,
36-
Label: "Email",
36+
Label: "Text ...",
3737
IsRequired: true,
3838
Value: "",
3939
FullWidth: true,
4040
},
4141
},
42-
Submit: admin.Submit{
43-
Label: "Subscribe",
44-
URL: "/subscribe",
45-
Method: "POST",
46-
},
4742
},
4843
}), nil
4944
}

0 commit comments

Comments
 (0)