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

class EditProfileForm(UserChangeForm):
    email = forms.EmailField(widget=forms.EmailInput(attrs={'class':'form-control'}))
    first_name = forms.CharField(max_length = 100,widget = forms.TextInput(attrs={'class':'form-control'}))
    last_name = forms.CharField(max_length = 100,widget = forms.TextInput(attrs={'class':'form-control'}))
    username =  forms.CharField(max_length = 100,widget = forms.TextInput(attrs={'class':'form-control'}))
    last_login = forms.CharField(max_length = 100,widget = forms.TextInput(attrs={'class':'form-control'}))
    is_superuser = forms.CharField(max_length = 100,widget = forms.CheckboxInput(attrs={'class':'form-check'}))
    is_staff = forms.CharField(max_length = 100,widget = forms.CheckboxInput(attrs={'class':'form-check'}))
    is_active = forms.CharField(max_length = 100,widget = forms.CheckboxInput(attrs={'class':'form-check'}))
    date_joined = forms.CharField(max_length = 100,widget = forms.TextInput(attrs={'class':'form-control'}))









    class Meta:
        model = User
        # fields = ('first_name','last_name','email')
        fields = ('username', 'first_name','last_name','email','password','last_login','is_superuser','is_staff','is_active','date_joined')