saasitone/templ/components/forms.templ

12 lines
212 B
Plaintext
Raw Permalink Normal View History

2024-07-14 18:48:40 -07:00
package components
templ CSRF(csrf string) {
<input type="hidden" name="csrf" value={ csrf }/>
}
templ FieldErrors(errors []string) {
for _, err := range errors {
<p class="help is-danger">{ err }</p>
}
}