text: from django import forms
  from django.contrib.auth.models import User
  from . import models
  
  #for admin
  class AdminSigupForm(forms.ModelForm):
      class Meta:
          model=User
          fields=['first_name','last_name','username','password']
  
  
  #for student related form
  class StudentUserForm(forms.ModelForm):
      class Meta:
          model=User
          fields=['first_name','last_name','username','password']
  class StudentExtraForm(forms.ModelForm):
      class Meta:
          model=models.StudentExtra
          fields=['roll','cl','mobile','fee','status']
  
  
  
  #for teacher related form
  class TeacherUserForm(forms.ModelForm):
      class Meta:
          model=User
          fields=['first_name','last_name','username','password']
  class TeacherExtraForm(forms.ModelForm):
      class Meta:
          model=models.TeacherExtra
          fields=['salary','mobile','status']
  
  
  
  
  #for Attendance related form
  presence_choices=(('Present','Present'),('Absent','Absent'))
  class AttendanceForm(forms.Form):
      present_status=forms.ChoiceField( choices=presence_choices)
      date=forms.DateField()
  
  class AskDateForm(forms.Form):
      date=forms.DateField()
  
  
  
  
  #for notice related form
  class NoticeForm(forms.ModelForm):
      class Meta:
          model=models.Notice
          fields='__all__'
  
  
  
  #for contact us page
  class ContactusForm(forms.Form):
      Name = forms.CharField(max_length=30)
      Email = forms.EmailField()
      Message = forms.CharField(max_length=500,widget=forms.Textarea(attrs={'rows': 3, 'cols': 30}))
  
  class MyfileUploadForm(forms.Form):
      book_id = forms.CharField(widget=forms.TextInput())
      book_name = forms.CharField(widget=forms.TextInput())
      book_author = forms.CharField(widget=forms.TextInput())
      book_pub_date = forms.CharField(widget=forms.TextInput())
      book_desc = forms.CharField(widget=forms.Textarea)
      book_tag1 = forms.CharField(widget=forms.TextInput())
      book_tag2 = forms.CharField(widget=forms.TextInput())
      book_tag3 = forms.CharField(widget=forms.TextInput())
      book_tag4 = forms.CharField(widget=forms.TextInput())
      book_pic = forms.FileField(widget=forms.FileInput())
      book_file = forms.FileField(widget=forms.FileInput())