1
0
mirror of https://github.com/raseels-repos/golang-saas-starter-kit.git synced 2025-08-08 22:36:41 +02:00

completed flash messages

This commit is contained in:
Lee Brown
2019-08-03 15:01:17 -08:00
parent 0344473c1e
commit 32cb554dfa
22 changed files with 653 additions and 244 deletions

View File

@ -0,0 +1,25 @@
{{define "title"}}Example - Flash Messages{{end}}
{{define "style"}}
{{end}}
{{define "content"}}
<h3>Inline Validation Example</h3>
<p>Any field error that is not displayed inline will still be displayed as apart of the the validation at the top of the page.</p>
<form class="user" method="post" novalidate>
<div class="form-group">
<input type="email" class="form-control form-control-user {{ ValidationFieldClass $.validationErrors "Email" }}" name="Email" value="{{ $.form.Email }}" placeholder="Enter Email Address...">
{{template "invalid-feedback" dict "validationDefaults" $.validationDefaults "validationErrors" $.validationErrors "fieldName" "Email" }}
</div>
<button class="btn btn-primary btn-user btn-block">
Submit Form
</button>
<hr>
</form>
{{end}}
{{define "js"}}
{{end}}