from django import forms

from apps.orgs.models import Organisation


class OrganisationForm(forms.ModelForm):
    class Meta:
        model = Organisation
        fields = ["name", "logo"]

        labels = {
            'name': "Organisation Name",
        }


class SignupForm(forms.Form):
    first_name = forms.CharField(label='First Name', max_length=100, widget=forms.TextInput())
    last_name = forms.CharField(label='Last Name', max_length=100, widget=forms.TextInput())
    email = forms.EmailField(label='Email Address', max_length=255, widget=forms.EmailInput())
    org_name = forms.CharField(label='Organization Name', max_length=100, widget=forms.TextInput())
    password = forms.CharField(widget=forms.PasswordInput)