Redo student № placeholder, validate min 8 chars

This commit is contained in:
Midgard 2020-07-25 13:47:39 +02:00
parent 6d6e12a999
commit a764d21e73
Signed by: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -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,}'})
}