from django import forms

from medwings.models import Profile, RespirationScoreRecord


class ProfileForm(forms.ModelForm):
    class Meta:
        model = Profile
        fields = ['date_of_birth', 'sex']
        widgets = {
            'date_of_birth': forms.DateInput(attrs={'type': 'date'}),
        }


class RespirationScoreForm(forms.ModelForm):
    class Meta:
        model = RespirationScoreRecord
        fields = ['value_severity']
