]> git.koha-community.org Git - koha.git/commit
Fix for Bug 6695 - Layout of patron category add/edit form slightly broken
authorOwen Leonard <oleonard@myacpl.org>
Wed, 10 Aug 2011 15:16:42 +0000 (11:16 -0400)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Fri, 2 Sep 2011 18:45:24 +0000 (14:45 -0400)
commit1cc389269cf536c9ca580199c1dc1f878b4af555
treeea1f6d1fbcfa3684be031723a1e0fd12f6c5ce8f
parent503bed73705c124c76b66de0539bb1608b94bb48
Fix for Bug 6695 - Layout of patron category add/edit form slightly broken

The markup for the fields for enrollment period "in months" and "until date"
was non-standard I think because the two fields are supposed to be visually
and functionally linked (having the same purpose and being mutually
exclusive).

This patch changes the markup so that the two fields share a fieldset
having "choose one" as the legend. The "hint" is now hidden unless
it is triggered by the javascript validation on submit.

I wanted to trigger the validation of the two fields onblur instead
of just onsubmit, but found that the datepicker widget doesn't
consistently trigger a change or a blur event on that field.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
- Layout problems are fixed
- Layout is more clear about choosing either 'In months' or 'Until date'
- Clear error message shows when you enter values in both fields

Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 54e0667b23466043de2ddd73b0b0e37f9632ea06)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt