package sources import ( "git.jamestombleson.com/jtom38/newsbot-portal/components/bulma" bf "git.jamestombleson.com/jtom38/newsbot-portal/components/bulma/form" bl "git.jamestombleson.com/jtom38/newsbot-portal/components/bulma/layout" "git.jamestombleson.com/jtom38/newsbot-portal/internal/models" "git.jamestombleson.com/jtom38/newsbot-portal/internal/views/layout" ) var ( p = bf.NewParam{ HxPost: "/sources/add", } ) templ Add(model models.AddSourcePayloadModel) { @layout.WithTemplate(model.HeaderMetaTags) { @bl.Hero("New Source", "") @bulma.Block() { At this time only direct RSS links are allowed to be provided. } @bf.New(p) { @bf.TextInput("name", bf.InputTypeText, "Name of the site") @bf.TextInput("url", bf.InputTypeText, "RSS URL") @bf.Submit("Submit", bulma.ColorPrimary) } } }