from django.forms.widgets import TextInput, Select, Textarea


class TextInputWidget(TextInput):
    def __init__(self):
        self.attrs = {"class": "form-control form-control-sm"}


class SelectWidget(Select):
    """
    not used, this widget does work, but we cannot order the choices by name
    """

    def __init__(self):
        attrs = {"class": "form-control custom-select custom-select-sm"}
        super().__init__(attrs=attrs)
        # super().choices = choices
        # self.choices = super().choices


class TextAreaWidget(Textarea):
    def __init__(self):
        self.attrs = {"class": "form-control", "rows": "3"}


class VolpianoAreaWidget(Textarea):
    def __init__(self):
        self.attrs = {
            "class": "form-control",
            "rows": "1.5",
            "style": "font-family: Volpiano; font-size: xx-large",
        }


class VolpianoInputWidget(TextInput):
    def __init__(self):
        self.attrs = {
            "class": "form-control form-control-sm",
            "style": "font-family: Volpiano; font-size: xx-large",
        }


from django.forms.widgets import TextInput, Select, Textarea


class TextInputWidget(TextInput):
    def __init__(self):
        self.attrs = {"class": "form-control form-control-sm"}


class SelectWidget(Select):
    """
    not used, this widget does work, but we cannot order the choices by name
    """

    def __init__(self):
        attrs = {"class": "form-control custom-select custom-select-sm"}
        super().__init__(attrs=attrs)
        # super().choices = choices
        # self.choices = super().choices


class TextAreaWidget(Textarea):
    def __init__(self):
        self.attrs = {"class": "form-control", "rows": "3"}


class VolpianoAreaWidget(Textarea):
    def __init__(self):
        self.attrs = {
            "class": "form-control",
            "rows": "1.5",
            "style": "font-family: Volpiano; font-size: xx-large",
        }


class VolpianoInputWidget(TextInput):
    def __init__(self):
        self.attrs = {
            "class": "form-control form-control-sm",
            "style": "font-family: Volpiano; font-size: xx-large",
        }


not used, this widget does work, but we cannot order the choices by name # super().choices = choices # self.choices = super().choices