Update registration form

- Change input name from 'username' to 'phone_number'
- Add inputmode and pattern attributes for better validation
This commit is contained in:
Taukir Ahmed 2024-10-25 14:58:02 +06:00 committed by GitHub
parent 01c2808e43
commit 00081d40e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,8 +25,8 @@
<div class="input-group"> <div class="input-group">
<span class="input-group-addon" id="basic-addon1"><i <span class="input-group-addon" id="basic-addon1"><i
class="glyphicon glyphicon-phone-alt"></i></span> class="glyphicon glyphicon-phone-alt"></i></span>
<input type="text" class="form-control" name="username" <input type="text" class="form-control" name="phone_number"
placeholder="{if $_c['country_code_phone']!= '' || $_c['registration_username'] == 'phone'}{$_c['country_code_phone']} {Lang::T('Phone Number')}{else}{Lang::T('Phone Number')}{/if}"> placeholder="{if $_c['country_code_phone']!= '' || $_c['registration_username'] == 'phone'}{$_c['country_code_phone']} {Lang::T('Phone Number')}{else}{Lang::T('Phone Number')}{/if}"inputmode="numeric" pattern="[0-9]*">
</div> </div>
</div> </div>
<div class="btn-group btn-group-justified mb15"> <div class="btn-group btn-group-justified mb15">