saasitone/templ/components/forms.templ

12 lines
212 B
Plaintext

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>
}
}