from django import forms
from .models import Request_student, Request_hostel_owner,Request_teacher

 
class StudentForm(forms.ModelForm):
  class Meta:
    model = Request_student
    fields = ["roll_num", "email_std","message","document"]
    labels = {'roll_num': "Roll number", "email_std": "Email Address",'message': "Enter Message",'document':"Upload a doc"}

class HostelownerForm(forms.ModelForm):
  class Meta:
    model = Request_hostel_owner
    fields = ["hostel_id", "owner_name","message","document"]
    labels = {'hostel_id': "Unique Hostel ID", "owner_name": "Owner Name",'message': "Enter Message",'document':"Upload a doc"}

class TeacherForm(forms.ModelForm):
  class Meta:
    model = Request_teacher
    fields = ["teacher_id", "teacher_subject","message","document"]
    labels = {'teacher_id': "Unique Teacher ID", "teacher_subject": "Subject",'message': "Enter Message",'document':"Upload a doc"}
de003661071705867964ca0bd0f3053719b16d1a
<mask token>


class TeacherForm(forms.ModelForm):


    class Meta:
        model = Request_teacher
        fields = ['teacher_id', 'teacher_subject', 'message', 'document']
        labels = {'teacher_id': 'Unique Teacher ID', 'teacher_subject':
            'Subject', 'message': 'Enter Message', 'document': 'Upload a doc'}

<mask token>


class HostelownerForm(forms.ModelForm):


    class Meta:
        model = Request_hostel_owner
        fields = ['hostel_id', 'owner_name', 'message', 'document']
        labels = {'hostel_id': 'Unique Hostel ID', 'owner_name':
            'Owner Name', 'message': 'Enter Message', 'document':
            'Upload a doc'}


class TeacherForm(forms.ModelForm):


    class Meta:
        model = Request_teacher
        fields = ['teacher_id', 'teacher_subject', 'message', 'document']
        labels = {'teacher_id': 'Unique Teacher ID', 'teacher_subject':
            'Subject', 'message': 'Enter Message', 'document': 'Upload a doc'}

<mask token>


class StudentForm(forms.ModelForm):


    class Meta:
        model = Request_student
        fields = ['roll_num', 'email_std', 'message', 'document']
        labels = {'roll_num': 'Roll number', 'email_std': 'Email Address',
            'message': 'Enter Message', 'document': 'Upload a doc'}


class HostelownerForm(forms.ModelForm):


    class Meta:
        model = Request_hostel_owner
        fields = ['hostel_id', 'owner_name', 'message', 'document']
        labels = {'hostel_id': 'Unique Hostel ID', 'owner_name':
            'Owner Name', 'message': 'Enter Message', 'document':
            'Upload a doc'}


class TeacherForm(forms.ModelForm):


    class Meta:
        model = Request_teacher
        fields = ['teacher_id', 'teacher_subject', 'message', 'document']
        labels = {'teacher_id': 'Unique Teacher ID', 'teacher_subject':
            'Subject', 'message': 'Enter Message', 'document': 'Upload a doc'}

from django import forms
from .models import Request_student, Request_hostel_owner, Request_teacher


class StudentForm(forms.ModelForm):


    class Meta:
        model = Request_student
        fields = ['roll_num', 'email_std', 'message', 'document']
        labels = {'roll_num': 'Roll number', 'email_std': 'Email Address',
            'message': 'Enter Message', 'document': 'Upload a doc'}


class HostelownerForm(forms.ModelForm):


    class Meta:
        model = Request_hostel_owner
        fields = ['hostel_id', 'owner_name', 'message', 'document']
        labels = {'hostel_id': 'Unique Hostel ID', 'owner_name':
            'Owner Name', 'message': 'Enter Message', 'document':
            'Upload a doc'}


class TeacherForm(forms.ModelForm):


    class Meta:
        model = Request_teacher
        fields = ['teacher_id', 'teacher_subject', 'message', 'document']
        labels = {'teacher_id': 'Unique Teacher ID', 'teacher_subject':
            'Subject', 'message': 'Enter Message', 'document': 'Upload a doc'}

from django import forms
from .models import Request_student, Request_hostel_owner,Request_teacher

 
class StudentForm(forms.ModelForm):
  class Meta:
    model = Request_student
    fields = ["roll_num", "email_std","message","document"]
    labels = {'roll_num': "Roll number", "email_std": "Email Address",'message': "Enter Message",'document':"Upload a doc"}

class HostelownerForm(forms.ModelForm):
  class Meta:
    model = Request_hostel_owner
    fields = ["hostel_id", "owner_name","message","document"]
    labels = {'hostel_id': "Unique Hostel ID", "owner_name": "Owner Name",'message': "Enter Message",'document':"Upload a doc"}

class TeacherForm(forms.ModelForm):
  class Meta:
    model = Request_teacher
    fields = ["teacher_id", "teacher_subject","message","document"]
    labels = {'teacher_id': "Unique Teacher ID", "teacher_subject": "Subject",'message': "Enter Message",'document':"Upload a doc"}