https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10848
--- Comment #44 from Jacek Ablewicz <[email protected]> --- > > Note that there is a JS validation plugin available in the OPAC if you want > > to use it. See opac-memberentry.tt for an example. The plugin can be set up > > to validate a form based on the markup (requiring fields which are , so it's > > not necessary to dynamically configure the fields in the JS if you don't > > want to. > > Hm, would it be as simple as adding jquery.validate.min.js include and one > jquery call > > $('#add_suggestion_form').validate(); > > to the template? Let me see how it works ( please do not adjust your set).. So far so good, it's working (almost) fine, apart from two small issues: 1) for 'pattern' rule to work I guess additional include (additional-methods.js or pattern.js ?) may be needed, but neither seems to be anywhere in the code tree yet (?) - or maybe there is some other bug report waiting in the queue which includes one of them, that I can test and sign instead? 2) translateability - no matter what I try to add to the .po files etc., "This field is required" still appears only in english (but so is the "Please enter a valid email address." message in opac-memberentry.tt ?). Perhaps it's just my test install which is missing something, or in order for this message to be translateable some additional trickery may be needed.. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
