Bug 5685: [OPAC follow-up] Validation of email address field
commitcf5df6590d16e5d78f031fa276d888c91e5367e6
authorOwen Leonard <oleonard@myacpl.org>
Thu, 23 Oct 2014 13:50:38 +0000 (23 09:50 -0400)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 24 Jul 2015 16:47:57 +0000 (24 13:47 -0300)
tree1f291f21554616685b0260501ff693b45a2b15c9
parent342a7a120593092ca33d15dfe07c9e5d06d8f0a5
Bug 5685: [OPAC follow-up] Validation of email address field

This patch makes a few changes to the way errors are handled in the
OPAC:

- The validation plugin has been moved from the global include file to
  the template itself. Since we aren't doing form validation on any
  other page yet it doesn't make sense to include it globally at this
  time.

- The error message which appears if you have JavaScript disabled and
  have submitted invalid emails was styled in a non-standard way.

- I have added in-page links to the error message which appears if you
  have JavaScript disabled so that you can click to jump to the field
  which contains the error.

- I have modified the error message language slightly to make it (I
  hope) read better.

Signed-off-by: Nicole Engard <nengard@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt