Skip to content

Instantly share code, notes, and snippets.

@robzor
Created July 10, 2012 09:53
Show Gist options
  • Save robzor/3082389 to your computer and use it in GitHub Desktop.
Save robzor/3082389 to your computer and use it in GitHub Desktop.
Authenticate: Check on both types of errors
{if '{total_global_errors}' > 0 OR '{total_field_errors}' > 0}
<div id="flash-message">
{if total_global_errors > 0}
{global_errors}
<p>{error}</p>
{/global_errors}
{/if}
{if total_field_errors > 0}
{field_errors}
<p>{error}</p>
{/field_errors}
{/if}
</div>
{/if}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment