Redo student № placeholder, validate min 8 chars
This commit is contained in:
parent
6d6e12a999
commit
a764d21e73
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ class UserMetaForm(ModelForm):
|
|||
fields = ['real_name', 'student_number']
|
||||
widgets = {
|
||||
'real_name': TextInput(attrs={'placeholder': 'Robbe Van Herck'}),
|
||||
'student_number': TextInput(attrs={'placeholder': '001700000', 'pattern': '[0-9]*'})
|
||||
'student_number': TextInput(attrs={'placeholder': '01701111', 'pattern': '[0-9]{8,}'})
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue