package sources import ( "git.jamestombleson.com/jtom38/newsbot-portal/components/bulma" "git.jamestombleson.com/jtom38/newsbot-portal/components/bulma/form" "git.jamestombleson.com/jtom38/newsbot-portal/internal/models" "git.jamestombleson.com/jtom38/newsbot-portal/internal/views/layout" ) var ( p = form.NewParam{ HxPost: "/sources/add", } ) templ Add(model models.AddSourcePayloadModel) { @layout.WithTemplate() { @bulma.H2("New Source", false)

At this time only direct RSS links are allowed to be provided.

@form.New(p) { @form.TextInput("", "name", form.InputTypeText, "Name of the site") @form.TextInput("", "url", form.InputTypeText, "RSS URL") @form.Submit("Submit", bulma.ColorPrimary) } } }