{{ define "base" }} {{block "title" .}}{{end}} - SaaS Web App {{block "style" .}} {{end}} {{ template "partials/app-wrapper" . }} {{ if HasAuth $._Ctx }} {{ end }} {{block "js" .}} {{end}} {{end}} {{ define "invalid-feedback" }}
{{ if ValidationErrorHasField .validationErrors .fieldName }} {{ range $verr := (ValidationFieldErrors .validationErrors .fieldName) }}{{ $verr.Display }}
{{ end }} {{ else }} {{ range $verr := (ValidationFieldErrors .validationDefaults .fieldName) }}{{ $verr.Display }}
{{ end }} {{ end }}
{{ end }} {{ define "app-flashes" }} {{ if .flashes }} {{ range $f := .flashes }} {{ end }} {{ end }} {{ if .error }} {{ $errMsg := (ErrorMessage $._Ctx .error) }} {{ $errDetails := (ErrorDetails $._Ctx .error) }} {{ if or ($errMsg) ($errDetails) }} {{ end }} {{ end }} {{ end }} {{ define "validation-error" }} {{ if .validationErrors }} {{ $errMsg := (ErrorMessage $._Ctx .validationErrors) }} {{ if $errMsg }} {{ end }} {{ end }} {{ end }}