from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserChangeForm
from .models import *




class ClinicForm(forms.ModelForm):
    class Meta:
        model = Clinic
        fields = ['username', 'name', 'email', 'phone', 'info', 'photo']

class CategoryForm(forms.ModelForm):
    class Meta:
        model = Category
        fields = ['name']

class DoctorForm(forms.ModelForm):
    class Meta:
        model = Doctor
        fields = ['name', 'surname', 'age', 'email', 'phone', 'carrier', 'picture']

class ReserveForm(forms.ModelForm):
    class Meta:
        model = Reserve
        fields = ['name', 'surname','comment',
                  'age', 'date', 'timeslot', 'contact_number']

