add regex validation to pronouns on the frontend

master
Aevann1 2022-07-11 20:31:38 +02:00
parent 74cceb248b
commit b8185d21d5
1 changed files with 1 additions and 1 deletions

View File

@ -466,7 +466,7 @@
<div class="w-lg-100">
<form id="profile-settings" action="/settings/pronouns_change" method="post">
<input type="hidden" name="formkey" value="{{v.formkey}}">
<input maxlength=11 autocomplete="off" id="pronounbody" type="text" name="pronouns" class="form-control" placeholder='Enter pronouns here' value="{% if v.pronouns %}{{v.pronouns}}{% endif %}">
<input minlength=3 maxlength=11 pattern="[a-zA-Z]{1,5}/[a-zA-Z]{1,5}" autocomplete="off" id="pronounbody" type="text" name="pronouns" class="form-control" placeholder='Enter pronouns here' value="{% if v.pronouns %}{{v.pronouns}}{% endif %}">
<div class="d-flex mt-2">
<small>{1-5 characters} / {1-5 characters}</small>
<input autocomplete="off" class="btn btn-primary ml-auto" id="pronounsSave" type="submit" onclick="disable(this)" value="Change Pronouns">