forked from rDrama/rDrama
add regex validation to pronouns on the frontend
parent
74cceb248b
commit
b8185d21d5
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue