Commit a71944a8 authored by Anya Habana's avatar Anya Habana

Created forms file for homepage

parent ffaa1bd1
from django import forms
from .models import Department
class WidgetUserForm(forms.Form):
first_name = forms.CharField(label='First Name', max_length=100)
middle_name = forms.CharField(label='Middle Name', max_length=50)
last_name = forms.CharField(label='Last Name', max_length=50)
id_num = forms.CharField(label='ID Number', max_length=7, default="")
email = forms.EmailField(label='Email Address', default="")
department = forms.ChoiceField(Department.objects)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment