Add an input pattern to the web UI for patron-load
authorDan Scott <dan@coffeecode.net>
Mon, 9 Sep 2019 14:51:32 +0000 (10:51 -0400)
committerDan Scott <dan@coffeecode.net>
Mon, 9 Sep 2019 14:51:32 +0000 (10:51 -0400)
Signed-off-by: Dan Scott <dan@coffeecode.net>
tools/patron-load/templates/index.html

index d9e51c0..21e953f 100644 (file)
@@ -29,7 +29,7 @@ $if uid:
 
 <h2>Create an account</h2>
 <form action="/patron-load">
-    <label>Laurentian ID: <input name="uid"></label>
+    <label>Laurentian ID: <input name="uid" title="7-digit number starting with 0" pattern="0[0-8]\d{5}"></label>
     <input type="submit">
 </form>
 <h3>About this form</h3>