comparison src/admin/index.html.luan @ 10:a7187a447835

restrict repo names
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 12 Jul 2022 19:40:50 -0600
parents 028e74c8889d
children
comparison
equal deleted inserted replaced
9:338ab58d91f2 10:a7187a447835
45 <hr> 45 <hr>
46 <h2>Add Repository</h2> 46 <h2>Add Repository</h2>
47 <form action="add.html"> 47 <form action="add.html">
48 <p> 48 <p>
49 <label prompt>Repo name</label> 49 <label prompt>Repo name</label>
50 <input type=text name=repo required> 50 <input type=text name=repo required pattern="[a-z0-9_][a-z0-9_-]*">
51 <label prompt>Must match regex: [a-z0-9_][a-z0-9_-]*</label>
51 </p> 52 </p>
52 <p> 53 <p>
53 <input type=submit value="Add Repo"> 54 <input type=submit value="Add Repo">
54 </p> 55 </p>
55 </form> 56 </form>