Monorepo for Tangled tangled.org

appview/pages: pattern validation for pronouns field

Signed-off-by: oppiliappan <me@oppi.li>

Changed files
+8 -1
appview
pages
templates
user
fragments
+8 -1
appview/pages/templates/user/fragments/editBio.html
··· 26 26 {{ if and .Profile .Profile.Pronouns }} 27 27 {{ $pronouns = .Profile.Pronouns }} 28 28 {{ end }} 29 - <input type="text" class="py-1 px-1 w-full" name="pronouns" value="{{ $pronouns }}"> 29 + <input 30 + type="text" 31 + class="py-1 px-1 w-full" 32 + name="pronouns" 33 + placeholder="they/them" 34 + pattern="[a-zA-Z]{1,6}[\/\s\-][a-zA-Z]{1,6}" 35 + value="{{ $pronouns }}" 36 + > 30 37 </div> 31 38 </div> 32 39