-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathforms.py
More file actions
13 lines (10 loc) · 755 Bytes
/
forms.py
File metadata and controls
13 lines (10 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
from django import forms
class OfficialInfoForm(forms.Form):
official_register_number = forms.CharField(widget=forms.TextInput(attrs={'placeholder': 'LM10'}))
official_register_date = forms.CharField(widget=forms.DateInput(attrs={'placeholder': '22-07-1990'}))
class PersonalInfo(forms.Form):
full_name = forms.CharField(widget=forms.TextInput(attrs={'placeholder': 'John Doe'}))
dob = forms.CharField(widget=forms.DateInput(attrs={'placeholder': '22-07-1990'}))
another_fullname = forms.CharField(widget=forms.TextInput(attrs={'placeholder': 'John Doe'}))
national_id = forms.CharField(widget=forms.NumberInput(attrs={'placeholder': ''}))
employee_avatar = forms.CharField(widget=forms.FileInput(attrs={'placeholder': ''}))