Bug 28134: Replace use of input type number in onboarding templates
authorOwen Leonard <oleonard@myacpl.org>
Mon, 12 Apr 2021 10:49:45 +0000 (10:49 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 4 May 2021 13:20:46 +0000 (15:20 +0200)
commit19af6f9b37ba5081c4acf35619a614d706804988
treeef5e64649b4389f92913c64d50971eb148ee2fcc
parent5a4d4b9478a58c77bc69cfa764b08c75088ea50f
Bug 28134: Replace use of input type number in onboarding templates

This patch changes the instances of input of type="number" to input
type="text" with attributes inputmode="numeric" and pattern="[0-9]*"

To test, apply the patch and run through the process of installing Koha.
When you reach onboarding step 2, "Create a patron category," check the
enrollment period -> "In months" field. The field should not accept any
input except numbers.

Continue onboarding until step 5, "Create a new circulation rule." On
this page, check that these fields accept only numbers:

 - Current checkouts allowed
 - Loan period
 - Renewals allowed
 - Renewals period
 - Holds allowed (total)
 - Holds allowed (daily)
 - Holds per record (count)

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep2.tt
koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep5.tt