1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-06-01 07:07:48 +02:00
jfa-go/html/form-base.html
Harvey Tindall 8af1c13d7e
Display error messages on form
two new strings need translating in lang/form.
2021-01-25 18:01:18 +00:00

12 lines
417 B
HTML

{{ define "form-base" }}
<script>
window.usernameEnabled = {{ .username }};
window.validationStrings = JSON.parse({{ .validationStrings }});
window.invalidPassword = "{{ .strings.reEnterPasswordInvalid }}";
window.URLBase = "{{ .urlBase }}";
window.code = "{{ .code }}";
window.messages = JSON.parse({{ .notifications }});
</script>
<script src="js/form.js" type="module"></script>
{{ end }}