from django import forms
from .models import *
class addPatient(forms.ModelForm):
surName = forms.CharField(widget=forms.TextInput(
attrs={'class': 'btn btn-sm btn-outline-primary bg-light text-dark', 'style': 'text-align: left',
'v-model': 'surName', '@keyup': 'checkPatient'}))
firstName = forms.CharField(widget=forms.TextInput(
attrs={'class': 'btn btn-sm btn-outline-primary bg-light text-dark', 'style': 'text-align: left',
'v-model': 'firstName', '@keyup': 'checkPatient'}))
secondName = forms.CharField(widget=forms.TextInput(
attrs={'class': 'btn btn-sm btn-outline-primary bg-light text-dark', 'style': 'text-align: left',
'v-model': 'secondName', '@keyup': 'checkPatient'}))
dateOfBirth = forms.DateField(widget=forms.DateInput(
attrs={'class': 'btn btn-sm btn-outline-primary bg-light text-dark', 'style': 'text-align: left',
'v-model': 'dateOfBirth', '@keyup': 'checkPatient', 'type': 'date'}))
class Meta:
model = Patient
exclude = ['']
class addInsurancePolicy(forms.ModelForm):
numberInsurancePolicy = forms.CharField(widget=forms.TextInput(
attrs={'class': 'btn btn-sm btn-outline-primary bg-light col-4 text-dark', 'style': 'text-align: left'}), required=False)
surName = forms.CharField(widget=forms.TextInput(
attrs={'class': 'btn btn-sm btn-outline-primary bg-light text-dark', 'style': 'text-align: left'}), required=False)
firstName = forms.CharField(widget=forms.TextInput(
attrs={'class': 'btn btn-sm btn-outline-primary bg-light text-dark', 'style': 'text-align: left'}), required=False)
secondName = forms.CharField(widget=forms.TextInput(
attrs={'class': 'btn btn-sm btn-outline-primary bg-light text-dark', 'style': 'text-align: left'}), required=False)
dateOfBirth = forms.DateField(widget=forms.DateInput(
attrs={'class': 'btn btn-sm btn-outline-primary bg-light text-dark', 'style': 'text-align: left'}), required=False)
validity = forms.DateField(widget=forms.DateInput(
attrs={'class': 'btn btn-sm btn-outline-primary bg-light text-dark', 'style': 'text-align: left',
'type': 'date'}), required=False)
insuranceDate = forms.DateField(widget=forms.DateInput(
attrs={'class': 'btn btn-sm btn-outline-primary bg-light text-dark', 'style': 'text-align: left',
'type': 'date'}), required=False)
insuranceOffice = forms.CharField(widget=forms.TextInput(
attrs={'class': 'btn btn-sm btn-outline-primary bg-light col-3 text-dark', 'style': 'text-align: left'}), required=False)
class Meta:
model = InsurancePolicy
fields = '__all__'
exclude = ['']
class addPassport(forms.ModelForm):
serialPassport = forms.CharField(widget=forms.TextInput(
attrs={'class': 'btn btn-sm btn-outline-primary bg-light text-dark', 'style': 'text-align: left'}), required=False)
numberPassport = forms.CharField(widget=forms.TextInput(
attrs={'class': 'btn btn-sm btn-outline-primary bg-light text-dark', 'style': 'text-align: left'}), required=False)
passportOffice = forms.CharField(widget=forms.TextInput(
attrs={'class': 'btn btn-sm btn-outline-primary bg-light col-5 text-dark', 'style': 'text-align: left'}), required=False)
passportOfficeCode = forms.CharField(widget=forms.TextInput(
attrs={'class': 'btn btn-sm btn-outline-primary bg-light text-dark', 'style': 'text-align: left'}), required=False)
surName = forms.CharField(widget=forms.TextInput(
attrs={'class': 'btn btn-sm btn-outline-primary bg-light text-dark', 'style': 'text-align: left'}), required=False)
firstName = forms.CharField(widget=forms.TextInput(
attrs={'class': 'btn btn-sm btn-outline-primary bg-light text-dark', 'style': 'text-align: left'}), required=False)
secondName = forms.CharField(widget=forms.TextInput(
attrs={'class': 'btn btn-sm btn-outline-primary bg-light text-dark', 'style': 'text-align: left'}), required=False)
dateOfBirth = forms.DateField(widget=forms.DateInput(
attrs={'class': 'btn btn-sm btn-outline-primary bg-light text-dark', 'style': 'text-align: left'}), required=False)
region = forms.CharField(widget=forms.TextInput(
attrs={'class': 'btn btn-sm btn-outline-primary bg-light col-4 text-dark', 'style': 'text-align: left'}), required=False)
station = forms.CharField(widget=forms.TextInput(
attrs={'class': 'btn btn-sm btn-outline-primary bg-light col-2 text-dark', 'style': 'text-align: left'}), required=False)
district = forms.CharField(widget=forms.TextInput(
attrs={'class': 'btn btn-sm btn-outline-primary bg-light col-2 text-dark', 'style': 'text-align: left'}), required=False)
street = forms.CharField(widget=forms.TextInput(
attrs={'class': 'btn btn-sm btn-outline-primary bg-light text-dark', 'style': 'text-align: left'}), required=False)
home = forms.CharField(widget=forms.TextInput(
attrs={'class': 'btn btn-sm btn-outline-primary bg-light text-dark', 'style': 'text-align: left'}), required=False)
housing = forms.DateField(widget=forms.DateInput(
attrs={'class': 'btn btn-sm btn-outline-primary bg-light text-dark', 'style': 'text-align: left',
'type': 'date'}), required=False)
flat = forms.CharField(widget=forms.TextInput(
attrs={'class': 'btn btn-sm btn-outline-primary bg-light text-dark', 'style': 'text-align: left'}), required=False)
class Meta:
model = Passport
fields = '__all__'
exclude = ['']